github.com/newrelic/newrelic-client-go@v1.1.0/pkg/entities/types.go (about) 1 // Code generated by tutone: DO NOT EDIT 2 package entities 3 4 import ( 5 "encoding/json" 6 "fmt" 7 8 "github.com/newrelic/newrelic-client-go/pkg/accounts" 9 "github.com/newrelic/newrelic-client-go/pkg/ai" 10 "github.com/newrelic/newrelic-client-go/pkg/common" 11 "github.com/newrelic/newrelic-client-go/pkg/nrdb" 12 "github.com/newrelic/newrelic-client-go/pkg/nrtime" 13 "github.com/newrelic/newrelic-client-go/pkg/servicelevel" 14 "github.com/newrelic/newrelic-client-go/pkg/users" 15 ) 16 17 type AccountStatus string 18 19 var AccountStatusTypes = struct { 20 ACTIVE AccountStatus 21 AWAITING_USER_FROM_API AccountStatus 22 CANCELLED AccountStatus 23 DOWNGRADED AccountStatus 24 NEW AccountStatus 25 PAID_ACTIVE AccountStatus 26 PAID_NEW AccountStatus 27 PAID_PENDING AccountStatus 28 PENDING AccountStatus 29 UPGRADED AccountStatus 30 }{ 31 ACTIVE: "ACTIVE", 32 AWAITING_USER_FROM_API: "AWAITING_USER_FROM_API", 33 CANCELLED: "CANCELLED", 34 DOWNGRADED: "DOWNGRADED", 35 NEW: "NEW", 36 PAID_ACTIVE: "PAID_ACTIVE", 37 PAID_NEW: "PAID_NEW", 38 PAID_PENDING: "PAID_PENDING", 39 PENDING: "PENDING", 40 UPGRADED: "UPGRADED", 41 } 42 43 // AgentApplicationSettingsBrowserLoader - Determines which Browser Loader will be configured. Some allowed return values are specified for backwards-compatibility and do not represent currently allowed values for new applications. 44 // See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for further information. 45 type AgentApplicationSettingsBrowserLoader string 46 47 var AgentApplicationSettingsBrowserLoaderTypes = struct { 48 // "full" maps to "FULL". 49 FULL AgentApplicationSettingsBrowserLoader 50 // "lite" maps to "LITE". 51 LITE AgentApplicationSettingsBrowserLoader 52 // "none" maps to "NONE". 53 NONE AgentApplicationSettingsBrowserLoader 54 // "spa" maps to "SPA". 55 SPA AgentApplicationSettingsBrowserLoader 56 // "xhr" maps to "XHR". 57 XHR AgentApplicationSettingsBrowserLoader 58 }{ 59 // "full" maps to "FULL". 60 FULL: "FULL", 61 // "lite" maps to "LITE". 62 LITE: "LITE", 63 // "none" maps to "NONE". 64 NONE: "NONE", 65 // "spa" maps to "SPA". 66 SPA: "SPA", 67 // "xhr" maps to "XHR". 68 XHR: "XHR", 69 } 70 71 // AgentApplicationSettingsRecordSqlEnum - Obfuscation level for SQL queries reported in transaction trace nodes. 72 // 73 // When turned on, the New Relic agent will attempt to remove values from SQL qeries. 74 // 75 // For example: 76 // 77 // ``` 78 // SELECT * FROM Table WHERE ssn='123-45-6789' 79 // ``` 80 // 81 // might become: 82 // 83 // ``` 84 // SELECT * FROM Table WHERE ssn=? 85 // ``` 86 // 87 // This can behave differently for differnet applications and frameworks, please test for your specific case. 88 // Note: RAW collection is not campatible with High Security mode and cannot be set if your agent is running in that mode. 89 type AgentApplicationSettingsRecordSqlEnum string 90 91 var AgentApplicationSettingsRecordSqlEnumTypes = struct { 92 // 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=?. 93 OBFUSCATED AgentApplicationSettingsRecordSqlEnum 94 // Query collection is turned off entirely. 95 OFF AgentApplicationSettingsRecordSqlEnum 96 // 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. 97 RAW AgentApplicationSettingsRecordSqlEnum 98 }{ 99 // 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=?. 100 OBFUSCATED: "OBFUSCATED", 101 // Query collection is turned off entirely. 102 OFF: "OFF", 103 // 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. 104 RAW: "RAW", 105 } 106 107 // AgentApplicationSettingsThresholdTypeEnum - Determines whether a threshold is statically configured or dynamically configured. 108 type AgentApplicationSettingsThresholdTypeEnum string 109 110 var AgentApplicationSettingsThresholdTypeEnumTypes = struct { 111 // Configures the threshold to be 4 times the value of APDEX_T 112 APDEX_F AgentApplicationSettingsThresholdTypeEnum 113 // Threshold will be statically configured via the corresponding "value" field. 114 VALUE AgentApplicationSettingsThresholdTypeEnum 115 }{ 116 // Configures the threshold to be 4 times the value of APDEX_T 117 APDEX_F: "APDEX_F", 118 // Threshold will be statically configured via the corresponding "value" field. 119 VALUE: "VALUE", 120 } 121 122 // AgentApplicationSettingsTracer - The type of tracing being done. 123 type AgentApplicationSettingsTracer string 124 125 var AgentApplicationSettingsTracerTypes = struct { 126 // cross application tracing feature enabled 127 CROSS_APPLICATION_TRACER AgentApplicationSettingsTracer 128 // distributed tracing feature enabled 129 DISTRIBUTED_TRACING AgentApplicationSettingsTracer 130 // both cross application & distributed tracing disabled 131 NONE AgentApplicationSettingsTracer 132 }{ 133 // cross application tracing feature enabled 134 CROSS_APPLICATION_TRACER: "CROSS_APPLICATION_TRACER", 135 // distributed tracing feature enabled 136 DISTRIBUTED_TRACING: "DISTRIBUTED_TRACING", 137 // both cross application & distributed tracing disabled 138 NONE: "NONE", 139 } 140 141 // AgentTracesErrorTraceOrderByField - The different error trace fields to order by. 142 type AgentTracesErrorTraceOrderByField string 143 144 var AgentTracesErrorTraceOrderByFieldTypes = struct { 145 // Error count. 146 COUNT AgentTracesErrorTraceOrderByField 147 // Error exception class. 148 EXCEPTION_CLASS AgentTracesErrorTraceOrderByField 149 // Error message. 150 MESSAGE AgentTracesErrorTraceOrderByField 151 // Error trace path. 152 PATH AgentTracesErrorTraceOrderByField 153 // Trace start time. 154 TIMESTAMP AgentTracesErrorTraceOrderByField 155 }{ 156 // Error count. 157 COUNT: "COUNT", 158 // Error exception class. 159 EXCEPTION_CLASS: "EXCEPTION_CLASS", 160 // Error message. 161 MESSAGE: "MESSAGE", 162 // Error trace path. 163 PATH: "PATH", 164 // Trace start time. 165 TIMESTAMP: "TIMESTAMP", 166 } 167 168 // AgentTracesOrderByDirection - Order by diraction 169 type AgentTracesOrderByDirection string 170 171 var AgentTracesOrderByDirectionTypes = struct { 172 // Ascending. 173 ASC AgentTracesOrderByDirection 174 // Descending. 175 DESC AgentTracesOrderByDirection 176 }{ 177 // Ascending. 178 ASC: "ASC", 179 // Descending. 180 DESC: "DESC", 181 } 182 183 // AgentTracesSqlTraceOrderByField - The different SQL trace fields to order by. 184 type AgentTracesSqlTraceOrderByField string 185 186 var AgentTracesSqlTraceOrderByFieldTypes = struct { 187 // Trace duration. 188 DURATION AgentTracesSqlTraceOrderByField 189 // Call time, maximum of all `call_count` traces. 190 MAX_CALL_TIME AgentTracesSqlTraceOrderByField 191 // SQL trace path. 192 PATH AgentTracesSqlTraceOrderByField 193 // Agent generated `sql_id`. 194 SQL_ID AgentTracesSqlTraceOrderByField 195 // Trace start time. 196 TIMESTAMP AgentTracesSqlTraceOrderByField 197 // Call time, as added across all `call_count` traces. 198 TOTAL_CALL_TIME AgentTracesSqlTraceOrderByField 199 }{ 200 // Trace duration. 201 DURATION: "DURATION", 202 // Call time, maximum of all `call_count` traces. 203 MAX_CALL_TIME: "MAX_CALL_TIME", 204 // SQL trace path. 205 PATH: "PATH", 206 // Agent generated `sql_id`. 207 SQL_ID: "SQL_ID", 208 // Trace start time. 209 TIMESTAMP: "TIMESTAMP", 210 // Call time, as added across all `call_count` traces. 211 TOTAL_CALL_TIME: "TOTAL_CALL_TIME", 212 } 213 214 // AgentTracesTransactionTraceOrderByField - The different transaction trace fields to order by. 215 type AgentTracesTransactionTraceOrderByField string 216 217 var AgentTracesTransactionTraceOrderByFieldTypes = struct { 218 // Trace duration. 219 DURATION AgentTracesTransactionTraceOrderByField 220 // Transaction trace path. 221 PATH AgentTracesTransactionTraceOrderByField 222 // Trace start time. 223 TIMESTAMP AgentTracesTransactionTraceOrderByField 224 }{ 225 // Trace duration. 226 DURATION: "DURATION", 227 // Transaction trace path. 228 PATH: "PATH", 229 // Trace start time. 230 TIMESTAMP: "TIMESTAMP", 231 } 232 233 // AiNotificationsChannelStatus - Channel statuses 234 type AiNotificationsChannelStatus string 235 236 var AiNotificationsChannelStatusTypes = struct { 237 // Configuration Error channel status 238 CONFIGURATION_ERROR AiNotificationsChannelStatus 239 // Configuration Warning channel status 240 CONFIGURATION_WARNING AiNotificationsChannelStatus 241 // Default channel status 242 DEFAULT AiNotificationsChannelStatus 243 // Draft channel status 244 DRAFT AiNotificationsChannelStatus 245 // Error channel status 246 ERROR AiNotificationsChannelStatus 247 // Tested channel status 248 TESTED AiNotificationsChannelStatus 249 // Throttled channel status 250 THROTTLED AiNotificationsChannelStatus 251 // Unknown Error channel status 252 UNKNOWN_ERROR AiNotificationsChannelStatus 253 }{ 254 // Configuration Error channel status 255 CONFIGURATION_ERROR: "CONFIGURATION_ERROR", 256 // Configuration Warning channel status 257 CONFIGURATION_WARNING: "CONFIGURATION_WARNING", 258 // Default channel status 259 DEFAULT: "DEFAULT", 260 // Draft channel status 261 DRAFT: "DRAFT", 262 // Error channel status 263 ERROR: "ERROR", 264 // Tested channel status 265 TESTED: "TESTED", 266 // Throttled channel status 267 THROTTLED: "THROTTLED", 268 // Unknown Error channel status 269 UNKNOWN_ERROR: "UNKNOWN_ERROR", 270 } 271 272 // AiNotificationsChannelType - Channel type 273 type AiNotificationsChannelType string 274 275 var AiNotificationsChannelTypeTypes = struct { 276 // Email channel type 277 EMAIL AiNotificationsChannelType 278 // Event Bridge channel type 279 EVENT_BRIDGE AiNotificationsChannelType 280 // Jira Classic channel type 281 JIRA_CLASSIC AiNotificationsChannelType 282 // Jira Nextgen channel type 283 JIRA_NEXTGEN AiNotificationsChannelType 284 // PagerDuty channel type 285 PAGERDUTY_ACCOUNT_INTEGRATION AiNotificationsChannelType 286 // Pager Duty channel type 287 PAGERDUTY_SERVICE_INTEGRATION AiNotificationsChannelType 288 // Servicenow events channel type 289 SERVICENOW_EVENTS AiNotificationsChannelType 290 // Servicenow incidents channel type 291 SERVICENOW_INCIDENTS AiNotificationsChannelType 292 // Slack channel type 293 SLACK AiNotificationsChannelType 294 // Webhook channel type 295 WEBHOOK AiNotificationsChannelType 296 }{ 297 // Email channel type 298 EMAIL: "EMAIL", 299 // Event Bridge channel type 300 EVENT_BRIDGE: "EVENT_BRIDGE", 301 // Jira Classic channel type 302 JIRA_CLASSIC: "JIRA_CLASSIC", 303 // Jira Nextgen channel type 304 JIRA_NEXTGEN: "JIRA_NEXTGEN", 305 // PagerDuty channel type 306 PAGERDUTY_ACCOUNT_INTEGRATION: "PAGERDUTY_ACCOUNT_INTEGRATION", 307 // Pager Duty channel type 308 PAGERDUTY_SERVICE_INTEGRATION: "PAGERDUTY_SERVICE_INTEGRATION", 309 // Servicenow events channel type 310 SERVICENOW_EVENTS: "SERVICENOW_EVENTS", 311 // Servicenow incidents channel type 312 SERVICENOW_INCIDENTS: "SERVICENOW_INCIDENTS", 313 // Slack channel type 314 SLACK: "SLACK", 315 // Webhook channel type 316 WEBHOOK: "WEBHOOK", 317 } 318 319 // AiNotificationsDestinationStatus - Destination statuses 320 type AiNotificationsDestinationStatus string 321 322 var AiNotificationsDestinationStatusTypes = struct { 323 // Authentication Error destination status 324 AUTHENTICATION_ERROR AiNotificationsDestinationStatus 325 // Authorization Error destination status 326 AUTHORIZATION_ERROR AiNotificationsDestinationStatus 327 // Authorization Warning destination status 328 AUTHORIZATION_WARNING AiNotificationsDestinationStatus 329 // Configuration Error destination status 330 CONFIGURATION_ERROR AiNotificationsDestinationStatus 331 // Default destination status 332 DEFAULT AiNotificationsDestinationStatus 333 // Draft channel status 334 DRAFT AiNotificationsDestinationStatus 335 // Error channel status 336 ERROR AiNotificationsDestinationStatus 337 // Temporary Warning destination status 338 TEMPORARY_WARNING AiNotificationsDestinationStatus 339 // Tested channel status 340 TESTED AiNotificationsDestinationStatus 341 // Throttled channel status 342 THROTTLED AiNotificationsDestinationStatus 343 // Throttling Warning destination status 344 THROTTLING_WARNING AiNotificationsDestinationStatus 345 // Unknown Error destination status 346 UNKNOWN_ERROR AiNotificationsDestinationStatus 347 }{ 348 // Authentication Error destination status 349 AUTHENTICATION_ERROR: "AUTHENTICATION_ERROR", 350 // Authorization Error destination status 351 AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR", 352 // Authorization Warning destination status 353 AUTHORIZATION_WARNING: "AUTHORIZATION_WARNING", 354 // Configuration Error destination status 355 CONFIGURATION_ERROR: "CONFIGURATION_ERROR", 356 // Default destination status 357 DEFAULT: "DEFAULT", 358 // Draft channel status 359 DRAFT: "DRAFT", 360 // Error channel status 361 ERROR: "ERROR", 362 // Temporary Warning destination status 363 TEMPORARY_WARNING: "TEMPORARY_WARNING", 364 // Tested channel status 365 TESTED: "TESTED", 366 // Throttled channel status 367 THROTTLED: "THROTTLED", 368 // Throttling Warning destination status 369 THROTTLING_WARNING: "THROTTLING_WARNING", 370 // Unknown Error destination status 371 UNKNOWN_ERROR: "UNKNOWN_ERROR", 372 } 373 374 // AiNotificationsDestinationType - Destination types 375 type AiNotificationsDestinationType string 376 377 var AiNotificationsDestinationTypeTypes = struct { 378 // Email destination type 379 EMAIL AiNotificationsDestinationType 380 // EventBridge destination type 381 EVENT_BRIDGE AiNotificationsDestinationType 382 // Jira destination type 383 JIRA AiNotificationsDestinationType 384 // PagerDuty destination type 385 PAGERDUTY_ACCOUNT_INTEGRATION AiNotificationsDestinationType 386 // PagerDuty destination type} 387 PAGERDUTY_SERVICE_INTEGRATION AiNotificationsDestinationType 388 // ServiceNow destination type 389 SERVICE_NOW AiNotificationsDestinationType 390 // Slack destination type 391 SLACK AiNotificationsDestinationType 392 // WebHook destination type 393 WEBHOOK AiNotificationsDestinationType 394 }{ 395 // Email destination type 396 EMAIL: "EMAIL", 397 // EventBridge destination type 398 EVENT_BRIDGE: "EVENT_BRIDGE", 399 // Jira destination type 400 JIRA: "JIRA", 401 // PagerDuty destination type 402 PAGERDUTY_ACCOUNT_INTEGRATION: "PAGERDUTY_ACCOUNT_INTEGRATION", 403 // PagerDuty destination type} 404 PAGERDUTY_SERVICE_INTEGRATION: "PAGERDUTY_SERVICE_INTEGRATION", 405 // ServiceNow destination type 406 SERVICE_NOW: "SERVICE_NOW", 407 // Slack destination type 408 SLACK: "SLACK", 409 // WebHook destination type 410 WEBHOOK: "WEBHOOK", 411 } 412 413 // AiNotificationsProduct - Product types 414 type AiNotificationsProduct string 415 416 var AiNotificationsProductTypes = struct { 417 // Alerts product type 418 ALERTS AiNotificationsProduct 419 // Error Tracking product type 420 ERROR_TRACKING AiNotificationsProduct 421 // Incident Intelligence product type 422 IINT AiNotificationsProduct 423 // Notifications internal product type 424 NTFC AiNotificationsProduct 425 // Proactive Detection product type 426 PD AiNotificationsProduct 427 // Sharing product type 428 SHARING AiNotificationsProduct 429 }{ 430 // Alerts product type 431 ALERTS: "ALERTS", 432 // Error Tracking product type 433 ERROR_TRACKING: "ERROR_TRACKING", 434 // Incident Intelligence product type 435 IINT: "IINT", 436 // Notifications internal product type 437 NTFC: "NTFC", 438 // Proactive Detection product type 439 PD: "PD", 440 // Sharing product type 441 SHARING: "SHARING", 442 } 443 444 // AiNotificationsVariableType - Variable types 445 type AiNotificationsVariableType string 446 447 var AiNotificationsVariableTypeTypes = struct { 448 // Boolean variable type 449 BOOLEAN AiNotificationsVariableType 450 // List variable type 451 LIST AiNotificationsVariableType 452 // number variable type 453 NUMBER AiNotificationsVariableType 454 // Object variable type 455 OBJECT AiNotificationsVariableType 456 // String variable type 457 STRING AiNotificationsVariableType 458 }{ 459 // Boolean variable type 460 BOOLEAN: "BOOLEAN", 461 // List variable type 462 LIST: "LIST", 463 // number variable type 464 NUMBER: "NUMBER", 465 // Object variable type 466 OBJECT: "OBJECT", 467 // String variable type 468 STRING: "STRING", 469 } 470 471 // AiOpsEventsQueryContext - User preference context by which to scope event query results 472 type AiOpsEventsQueryContext string 473 474 var AiOpsEventsQueryContextTypes = struct { 475 // AiOps overview and anomaly pages 476 AI_OPS AiOpsEventsQueryContext 477 // Activity feeds and other NR One contexts 478 GLOBAL AiOpsEventsQueryContext 479 }{ 480 // AiOps overview and anomaly pages 481 AI_OPS: "AI_OPS", 482 // Activity feeds and other NR One contexts 483 GLOBAL: "GLOBAL", 484 } 485 486 // AiOpsProactiveDetectionEventConfigurationType - The type of configuration that is monitoring the event. 487 type AiOpsProactiveDetectionEventConfigurationType string 488 489 var AiOpsProactiveDetectionEventConfigurationTypeTypes = struct { 490 // Entity is not monitored by a specific configuration and was automatically detected. 491 AUTOMATIC AiOpsProactiveDetectionEventConfigurationType 492 // Entity is being monitored by a Proactive Detection configuration. 493 CONFIGURATION AiOpsProactiveDetectionEventConfigurationType 494 // Entity is being monitored by a custom configuration 495 CUSTOM AiOpsProactiveDetectionEventConfigurationType 496 // Unknown configuration type. 497 UNKNOWN AiOpsProactiveDetectionEventConfigurationType 498 }{ 499 // Entity is not monitored by a specific configuration and was automatically detected. 500 AUTOMATIC: "AUTOMATIC", 501 // Entity is being monitored by a Proactive Detection configuration. 502 CONFIGURATION: "CONFIGURATION", 503 // Entity is being monitored by a custom configuration 504 CUSTOM: "CUSTOM", 505 // Unknown configuration type. 506 UNKNOWN: "UNKNOWN", 507 } 508 509 // AiOpsProactiveDetectionEventMonitoringStatus - Proactive Detection monitoring status 510 type AiOpsProactiveDetectionEventMonitoringStatus string 511 512 var AiOpsProactiveDetectionEventMonitoringStatusTypes = struct { 513 // Event recorded for an entity that is monitored by Proactive Detection 514 MONITORED AiOpsProactiveDetectionEventMonitoringStatus 515 // Unknown Proactive Detection event monitoring status 516 UNKNOWN AiOpsProactiveDetectionEventMonitoringStatus 517 // Event recorded for an entity that is NOT monitored by Proactive Detection 518 UNMONITORED AiOpsProactiveDetectionEventMonitoringStatus 519 }{ 520 // Event recorded for an entity that is monitored by Proactive Detection 521 MONITORED: "MONITORED", 522 // Unknown Proactive Detection event monitoring status 523 UNKNOWN: "UNKNOWN", 524 // Event recorded for an entity that is NOT monitored by Proactive Detection 525 UNMONITORED: "UNMONITORED", 526 } 527 528 // AiOpsProactiveDetectionEventType - Proactive Detection event types 529 type AiOpsProactiveDetectionEventType string 530 531 var AiOpsProactiveDetectionEventTypeTypes = struct { 532 // Event recorded when a Proactive Detection anomaly has ended 533 ANOMALY_CLOSE AiOpsProactiveDetectionEventType 534 // Event recorded when a Proactive Detection anomaly has begun 535 ANOMALY_OPEN AiOpsProactiveDetectionEventType 536 // Unknown Proactive Detection event type 537 UNKNOWN AiOpsProactiveDetectionEventType 538 }{ 539 // Event recorded when a Proactive Detection anomaly has ended 540 ANOMALY_CLOSE: "ANOMALY_CLOSE", 541 // Event recorded when a Proactive Detection anomaly has begun 542 ANOMALY_OPEN: "ANOMALY_OPEN", 543 // Unknown Proactive Detection event type 544 UNKNOWN: "UNKNOWN", 545 } 546 547 // AiOpsSignalType - The signal type 548 type AiOpsSignalType string 549 550 var AiOpsSignalTypeTypes = struct { 551 // APM application error count 552 APM_APPLICATION_ERRORCOUNT AiOpsSignalType 553 // APM application response time ms 554 APM_APPLICATION_RESPONSETIMEMS AiOpsSignalType 555 // APM application throughput 556 APM_APPLICATION_THROUGHPUT AiOpsSignalType 557 // Browser application errors 558 BROWSER_APPLICATION_ERRORS AiOpsSignalType 559 // Browser application first Input Delay (75 percentile) (ms) 560 BROWSER_APPLICATION_FIRSTINPUTDELAY75PERCENTILEMS AiOpsSignalType 561 // Browser application largest Contentful Paint (75 percentile) (s) 562 BROWSER_APPLICATION_LARGESTCONTENTFULPAINT75PERCENTILES AiOpsSignalType 563 // Browser application throughput (ppm) 564 BROWSER_APPLICATION_THROUGHPUTPPM AiOpsSignalType 565 // Error rate 566 ERROR_RATE AiOpsSignalType 567 // AWS volume average write time 568 INFRA_AWSEBSVOLUME_AVERAGEWRITETIMEMS AiOpsSignalType 569 // Container cpu usage 570 INFRA_CONTAINER_CPUUSAGE AiOpsSignalType 571 // Container cpu utilitization 572 INFRA_CONTAINER_CPUUTILIZATION AiOpsSignalType 573 // Container memory usage 574 INFRA_CONTAINER_MEMORYUSAGE AiOpsSignalType 575 // Container storage usage 576 INFRA_CONTAINER_STORAGEUSAGE AiOpsSignalType 577 // Host network traffic 578 INFRA_HOST_NETWORKTRAFFIC AiOpsSignalType 579 // Redis instance connected clients 580 INFRA_REDISINSTANCE_CONNECTEDCLIENTS AiOpsSignalType 581 // Redis instance keyspace misses per second 582 INFRA_REDISINSTANCE_KEYSPACEMISSESPERSECOND AiOpsSignalType 583 // Mobile application HTTP errors and network failures 584 MOBILE_APPLICATION_HTTPERRORSANDNETWORKFAILURES AiOpsSignalType 585 // Mobile application HTTP response time (95%) (s) 586 MOBILE_APPLICATION_HTTPRESPONSETIME95S AiOpsSignalType 587 // Mobile application requests per minute 588 MOBILE_APPLICATION_REQUESTSPERMINUTE AiOpsSignalType 589 // Custom NRQL query 590 NRQL AiOpsSignalType 591 // Non-web response time 592 RESPONSE_TIME_NON_WEB AiOpsSignalType 593 // Web Response time 594 RESPONSE_TIME_WEB AiOpsSignalType 595 // Synthetic monitor failures 596 SYNTH_MONITOR_FAILURES AiOpsSignalType 597 // Synthetic monitor median duration (s) 598 SYNTH_MONITOR_MEDIANDURATIONS AiOpsSignalType 599 // Non-web throughput 600 THROUGHPUT_NON_WEB AiOpsSignalType 601 // Web throughput 602 THROUGHPUT_WEB AiOpsSignalType 603 // Unknown 604 UNKNOWN AiOpsSignalType 605 }{ 606 // APM application error count 607 APM_APPLICATION_ERRORCOUNT: "APM_APPLICATION_ERRORCOUNT", 608 // APM application response time ms 609 APM_APPLICATION_RESPONSETIMEMS: "APM_APPLICATION_RESPONSETIMEMS", 610 // APM application throughput 611 APM_APPLICATION_THROUGHPUT: "APM_APPLICATION_THROUGHPUT", 612 // Browser application errors 613 BROWSER_APPLICATION_ERRORS: "BROWSER_APPLICATION_ERRORS", 614 // Browser application first Input Delay (75 percentile) (ms) 615 BROWSER_APPLICATION_FIRSTINPUTDELAY75PERCENTILEMS: "BROWSER_APPLICATION_FIRSTINPUTDELAY75PERCENTILEMS", 616 // Browser application largest Contentful Paint (75 percentile) (s) 617 BROWSER_APPLICATION_LARGESTCONTENTFULPAINT75PERCENTILES: "BROWSER_APPLICATION_LARGESTCONTENTFULPAINT75PERCENTILES", 618 // Browser application throughput (ppm) 619 BROWSER_APPLICATION_THROUGHPUTPPM: "BROWSER_APPLICATION_THROUGHPUTPPM", 620 // Error rate 621 ERROR_RATE: "ERROR_RATE", 622 // AWS volume average write time 623 INFRA_AWSEBSVOLUME_AVERAGEWRITETIMEMS: "INFRA_AWSEBSVOLUME_AVERAGEWRITETIMEMS", 624 // Container cpu usage 625 INFRA_CONTAINER_CPUUSAGE: "INFRA_CONTAINER_CPUUSAGE", 626 // Container cpu utilitization 627 INFRA_CONTAINER_CPUUTILIZATION: "INFRA_CONTAINER_CPUUTILIZATION", 628 // Container memory usage 629 INFRA_CONTAINER_MEMORYUSAGE: "INFRA_CONTAINER_MEMORYUSAGE", 630 // Container storage usage 631 INFRA_CONTAINER_STORAGEUSAGE: "INFRA_CONTAINER_STORAGEUSAGE", 632 // Host network traffic 633 INFRA_HOST_NETWORKTRAFFIC: "INFRA_HOST_NETWORKTRAFFIC", 634 // Redis instance connected clients 635 INFRA_REDISINSTANCE_CONNECTEDCLIENTS: "INFRA_REDISINSTANCE_CONNECTEDCLIENTS", 636 // Redis instance keyspace misses per second 637 INFRA_REDISINSTANCE_KEYSPACEMISSESPERSECOND: "INFRA_REDISINSTANCE_KEYSPACEMISSESPERSECOND", 638 // Mobile application HTTP errors and network failures 639 MOBILE_APPLICATION_HTTPERRORSANDNETWORKFAILURES: "MOBILE_APPLICATION_HTTPERRORSANDNETWORKFAILURES", 640 // Mobile application HTTP response time (95%) (s) 641 MOBILE_APPLICATION_HTTPRESPONSETIME95S: "MOBILE_APPLICATION_HTTPRESPONSETIME95S", 642 // Mobile application requests per minute 643 MOBILE_APPLICATION_REQUESTSPERMINUTE: "MOBILE_APPLICATION_REQUESTSPERMINUTE", 644 // Custom NRQL query 645 NRQL: "NRQL", 646 // Non-web response time 647 RESPONSE_TIME_NON_WEB: "RESPONSE_TIME_NON_WEB", 648 // Web Response time 649 RESPONSE_TIME_WEB: "RESPONSE_TIME_WEB", 650 // Synthetic monitor failures 651 SYNTH_MONITOR_FAILURES: "SYNTH_MONITOR_FAILURES", 652 // Synthetic monitor median duration (s) 653 SYNTH_MONITOR_MEDIANDURATIONS: "SYNTH_MONITOR_MEDIANDURATIONS", 654 // Non-web throughput 655 THROUGHPUT_NON_WEB: "THROUGHPUT_NON_WEB", 656 // Web throughput 657 THROUGHPUT_WEB: "THROUGHPUT_WEB", 658 // Unknown 659 UNKNOWN: "UNKNOWN", 660 } 661 662 // AiOpsWebhookPayloadTemplateType - The type of template that will be used when the webhook is called. 663 type AiOpsWebhookPayloadTemplateType string 664 665 var AiOpsWebhookPayloadTemplateTypeTypes = struct { 666 // The webhook will use a template that was provided by the user. 667 // No new attributes will be included uness the user manually updates the custom template. 668 CUSTOM AiOpsWebhookPayloadTemplateType 669 // The webhook to use the most recent default template. 670 // Any new attributes available to the webhook will be automatically included in the payload. 671 DEFAULT AiOpsWebhookPayloadTemplateType 672 }{ 673 // The webhook will use a template that was provided by the user. 674 // No new attributes will be included uness the user manually updates the custom template. 675 CUSTOM: "CUSTOM", 676 // The webhook to use the most recent default template. 677 // Any new attributes available to the webhook will be automatically included in the payload. 678 DEFAULT: "DEFAULT", 679 } 680 681 // AiWorkflowsDestinationType - Type of Destination Configuration 682 type AiWorkflowsDestinationType string 683 684 var AiWorkflowsDestinationTypeTypes = struct { 685 // Email Destination Configuration type 686 EMAIL AiWorkflowsDestinationType 687 // Event Bridge Destination Configuration type 688 EVENT_BRIDGE AiWorkflowsDestinationType 689 // Jira Destination Configuration type 690 JIRA AiWorkflowsDestinationType 691 // Pager Duty Destination Configuration type 692 PAGERDUTY AiWorkflowsDestinationType 693 // Pager Duty with account integration Destination Configuration type 694 PAGERDUTY_ACCOUNT_INTEGRATION AiWorkflowsDestinationType 695 // Pager Duty with service integration Destination Configuration type 696 PAGERDUTY_SERVICE_INTEGRATION AiWorkflowsDestinationType 697 // Service Now Destination Configuration type 698 SERVICE_NOW AiWorkflowsDestinationType 699 // Slack Destination Configuration type 700 SLACK AiWorkflowsDestinationType 701 // Webhook Destination Configuration type 702 WEBHOOK AiWorkflowsDestinationType 703 }{ 704 // Email Destination Configuration type 705 EMAIL: "EMAIL", 706 // Event Bridge Destination Configuration type 707 EVENT_BRIDGE: "EVENT_BRIDGE", 708 // Jira Destination Configuration type 709 JIRA: "JIRA", 710 // Pager Duty Destination Configuration type 711 PAGERDUTY: "PAGERDUTY", 712 // Pager Duty with account integration Destination Configuration type 713 PAGERDUTY_ACCOUNT_INTEGRATION: "PAGERDUTY_ACCOUNT_INTEGRATION", 714 // Pager Duty with service integration Destination Configuration type 715 PAGERDUTY_SERVICE_INTEGRATION: "PAGERDUTY_SERVICE_INTEGRATION", 716 // Service Now Destination Configuration type 717 SERVICE_NOW: "SERVICE_NOW", 718 // Slack Destination Configuration type 719 SLACK: "SLACK", 720 // Webhook Destination Configuration type 721 WEBHOOK: "WEBHOOK", 722 } 723 724 // AiWorkflowsEnrichmentType - Type of Enrichment 725 type AiWorkflowsEnrichmentType string 726 727 var AiWorkflowsEnrichmentTypeTypes = struct { 728 // NRQL Enrichment type 729 NRQL AiWorkflowsEnrichmentType 730 }{ 731 // NRQL Enrichment type 732 NRQL: "NRQL", 733 } 734 735 // AiWorkflowsFilterType - Type of Filter 736 type AiWorkflowsFilterType string 737 738 var AiWorkflowsFilterTypeTypes = struct { 739 // Standard Filter type 740 FILTER AiWorkflowsFilterType 741 // View Filter type 742 VIEW AiWorkflowsFilterType 743 }{ 744 // Standard Filter type 745 FILTER: "FILTER", 746 // View Filter type 747 VIEW: "VIEW", 748 } 749 750 // AiWorkflowsOperator - Type of Filter 751 type AiWorkflowsOperator string 752 753 var AiWorkflowsOperatorTypes = struct { 754 // Contains this value 755 CONTAINS AiWorkflowsOperator 756 // Does not contain this value 757 DOES_NOT_CONTAIN AiWorkflowsOperator 758 // Not equal this value 759 DOES_NOT_EQUAL AiWorkflowsOperator 760 // Does not exactly match this value 761 DOES_NOT_EXACTLY_MATCH AiWorkflowsOperator 762 // Ends with this value 763 ENDS_WITH AiWorkflowsOperator 764 // Equals this value 765 EQUAL AiWorkflowsOperator 766 // Exactly matches this value 767 EXACTLY_MATCHES AiWorkflowsOperator 768 // Greater or equal to this value 769 GREATER_OR_EQUAL AiWorkflowsOperator 770 // Greater than 771 GREATER_THAN AiWorkflowsOperator 772 // is this boolean value 773 IS AiWorkflowsOperator 774 // is not this boolean value 775 IS_NOT AiWorkflowsOperator 776 // Less or equal to this value 777 LESS_OR_EQUAL AiWorkflowsOperator 778 // Less than this value 779 LESS_THAN AiWorkflowsOperator 780 // Starts with this value 781 STARTS_WITH AiWorkflowsOperator 782 }{ 783 // Contains this value 784 CONTAINS: "CONTAINS", 785 // Does not contain this value 786 DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN", 787 // Not equal this value 788 DOES_NOT_EQUAL: "DOES_NOT_EQUAL", 789 // Does not exactly match this value 790 DOES_NOT_EXACTLY_MATCH: "DOES_NOT_EXACTLY_MATCH", 791 // Ends with this value 792 ENDS_WITH: "ENDS_WITH", 793 // Equals this value 794 EQUAL: "EQUAL", 795 // Exactly matches this value 796 EXACTLY_MATCHES: "EXACTLY_MATCHES", 797 // Greater or equal to this value 798 GREATER_OR_EQUAL: "GREATER_OR_EQUAL", 799 // Greater than 800 GREATER_THAN: "GREATER_THAN", 801 // is this boolean value 802 IS: "IS", 803 // is not this boolean value 804 IS_NOT: "IS_NOT", 805 // Less or equal to this value 806 LESS_OR_EQUAL: "LESS_OR_EQUAL", 807 // Less than this value 808 LESS_THAN: "LESS_THAN", 809 // Starts with this value 810 STARTS_WITH: "STARTS_WITH", 811 } 812 813 // ApmApplicationRecentActivityType - Recent activity types for an APM application. 814 type ApmApplicationRecentActivityType string 815 816 var ApmApplicationRecentActivityTypeTypes = struct { 817 // An update to the agent instrumentation on an APM application. 818 INSTRUMENTATION ApmApplicationRecentActivityType 819 // A notification relating to the APM application agent. 820 NOTIFICATION ApmApplicationRecentActivityType 821 // A change to the agent settings of an APM application. 822 SETTINGS_CHANGE ApmApplicationRecentActivityType 823 }{ 824 // An update to the agent instrumentation on an APM application. 825 INSTRUMENTATION: "INSTRUMENTATION", 826 // A notification relating to the APM application agent. 827 NOTIFICATION: "NOTIFICATION", 828 // A change to the agent settings of an APM application. 829 SETTINGS_CHANGE: "SETTINGS_CHANGE", 830 } 831 832 // BrowserAgentInstallType - Browser agent install types. 833 type BrowserAgentInstallType string 834 835 var BrowserAgentInstallTypeTypes = struct { 836 // Lite agent install type. 837 LITE BrowserAgentInstallType 838 // Pro agent install type. 839 PRO BrowserAgentInstallType 840 // Pro + SPA agent install type. 841 PRO_SPA BrowserAgentInstallType 842 }{ 843 // Lite agent install type. 844 LITE: "LITE", 845 // Pro agent install type. 846 PRO: "PRO", 847 // Pro + SPA agent install type. 848 PRO_SPA: "PRO_SPA", 849 } 850 851 // DashboardAlertSeverity - Alert severity. 852 type DashboardAlertSeverity string 853 854 var DashboardAlertSeverityTypes = struct { 855 // CRITICAL 856 CRITICAL DashboardAlertSeverity 857 // NOT_ALERTING 858 NOT_ALERTING DashboardAlertSeverity 859 // WARNING 860 WARNING DashboardAlertSeverity 861 }{ 862 // CRITICAL 863 CRITICAL: "CRITICAL", 864 // NOT_ALERTING 865 NOT_ALERTING: "NOT_ALERTING", 866 // WARNING 867 WARNING: "WARNING", 868 } 869 870 // DashboardEditable - Editable. 871 type DashboardEditable string 872 873 var DashboardEditableTypes = struct { 874 // EDITABLE_BY_ALL. 875 EDITABLE_BY_ALL DashboardEditable 876 // EDITABLE_BY_OWNER. 877 EDITABLE_BY_OWNER DashboardEditable 878 // READ_ONLY. 879 READ_ONLY DashboardEditable 880 }{ 881 // EDITABLE_BY_ALL. 882 EDITABLE_BY_ALL: "EDITABLE_BY_ALL", 883 // EDITABLE_BY_OWNER. 884 EDITABLE_BY_OWNER: "EDITABLE_BY_OWNER", 885 // READ_ONLY. 886 READ_ONLY: "READ_ONLY", 887 } 888 889 // DashboardEntityAlertStatus - Entity alert status. 890 type DashboardEntityAlertStatus string 891 892 var DashboardEntityAlertStatusTypes = struct { 893 // Not alerting. 894 GREEN DashboardEntityAlertStatus 895 // Entity not reporting. 896 GREY DashboardEntityAlertStatus 897 // No alerts set up. 898 LIGHT_GREEN DashboardEntityAlertStatus 899 // Critical violation. 900 RED DashboardEntityAlertStatus 901 // Warning violation. 902 YELLOW DashboardEntityAlertStatus 903 }{ 904 // Not alerting. 905 GREEN: "GREEN", 906 // Entity not reporting. 907 GREY: "GREY", 908 // No alerts set up. 909 LIGHT_GREEN: "LIGHT_GREEN", 910 // Critical violation. 911 RED: "RED", 912 // Warning violation. 913 YELLOW: "YELLOW", 914 } 915 916 // DashboardEntityPermissions - Permissions that represent visibility & editability 917 type DashboardEntityPermissions string 918 919 var DashboardEntityPermissionsTypes = struct { 920 // Private 921 PRIVATE DashboardEntityPermissions 922 // Public read only 923 PUBLIC_READ_ONLY DashboardEntityPermissions 924 // Public read & write 925 PUBLIC_READ_WRITE DashboardEntityPermissions 926 }{ 927 // Private 928 PRIVATE: "PRIVATE", 929 // Public read only 930 PUBLIC_READ_ONLY: "PUBLIC_READ_ONLY", 931 // Public read & write 932 PUBLIC_READ_WRITE: "PUBLIC_READ_WRITE", 933 } 934 935 // DashboardEntityType - Entity type. 936 type DashboardEntityType string 937 938 var DashboardEntityTypeTypes = struct { 939 // An APM Application. 940 APM_APPLICATION_ENTITY DashboardEntityType 941 // A database instance seen by an APM Application. 942 APM_DATABASE_INSTANCE_ENTITY DashboardEntityType 943 // An external service seen by an APM Application. 944 APM_EXTERNAL_SERVICE_ENTITY DashboardEntityType 945 // A Browser Application. 946 BROWSER_APPLICATION_ENTITY DashboardEntityType 947 // An Insights entity. 948 DASHBOARD_ENTITY DashboardEntityType 949 // A Generic Entity with no detailed data. 950 GENERIC_ENTITY DashboardEntityType 951 // An Infrastructure entity. 952 GENERIC_INFRASTRUCTURE_ENTITY DashboardEntityType 953 // An Infrastructure Integration AWS Lambda Function entity. 954 INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY DashboardEntityType 955 // An Infrastructure Host entity. 956 INFRASTRUCTURE_HOST_ENTITY DashboardEntityType 957 // A Mobile Application. 958 MOBILE_APPLICATION_ENTITY DashboardEntityType 959 // A entity that is unavailable. 960 UNAVAILABLE_ENTITY DashboardEntityType 961 // A Workload Entity. 962 WORKLOAD_ENTITY DashboardEntityType 963 }{ 964 // An APM Application. 965 APM_APPLICATION_ENTITY: "APM_APPLICATION_ENTITY", 966 // A database instance seen by an APM Application. 967 APM_DATABASE_INSTANCE_ENTITY: "APM_DATABASE_INSTANCE_ENTITY", 968 // An external service seen by an APM Application. 969 APM_EXTERNAL_SERVICE_ENTITY: "APM_EXTERNAL_SERVICE_ENTITY", 970 // A Browser Application. 971 BROWSER_APPLICATION_ENTITY: "BROWSER_APPLICATION_ENTITY", 972 // An Insights entity. 973 DASHBOARD_ENTITY: "DASHBOARD_ENTITY", 974 // A Generic Entity with no detailed data. 975 GENERIC_ENTITY: "GENERIC_ENTITY", 976 // An Infrastructure entity. 977 GENERIC_INFRASTRUCTURE_ENTITY: "GENERIC_INFRASTRUCTURE_ENTITY", 978 // An Infrastructure Integration AWS Lambda Function entity. 979 INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY: "INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY", 980 // An Infrastructure Host entity. 981 INFRASTRUCTURE_HOST_ENTITY: "INFRASTRUCTURE_HOST_ENTITY", 982 // A Mobile Application. 983 MOBILE_APPLICATION_ENTITY: "MOBILE_APPLICATION_ENTITY", 984 // A entity that is unavailable. 985 UNAVAILABLE_ENTITY: "UNAVAILABLE_ENTITY", 986 // A Workload Entity. 987 WORKLOAD_ENTITY: "WORKLOAD_ENTITY", 988 } 989 990 // DashboardFacetChartWidgetVisualizationType - Facet chart widget visualization type. 991 type DashboardFacetChartWidgetVisualizationType string 992 993 var DashboardFacetChartWidgetVisualizationTypeTypes = struct { 994 // FACETED_AREA_CHART. 995 FACETED_AREA_CHART DashboardFacetChartWidgetVisualizationType 996 // FACETED_LINE_CHART. 997 FACETED_LINE_CHART DashboardFacetChartWidgetVisualizationType 998 // FACET_BAR_CHART. 999 FACET_BAR_CHART DashboardFacetChartWidgetVisualizationType 1000 // FACET_PIE_CHART. 1001 FACET_PIE_CHART DashboardFacetChartWidgetVisualizationType 1002 // FACET_TABLE. 1003 FACET_TABLE DashboardFacetChartWidgetVisualizationType 1004 // HEATMAP. 1005 HEATMAP DashboardFacetChartWidgetVisualizationType 1006 }{ 1007 // FACETED_AREA_CHART. 1008 FACETED_AREA_CHART: "FACETED_AREA_CHART", 1009 // FACETED_LINE_CHART. 1010 FACETED_LINE_CHART: "FACETED_LINE_CHART", 1011 // FACET_BAR_CHART. 1012 FACET_BAR_CHART: "FACET_BAR_CHART", 1013 // FACET_PIE_CHART. 1014 FACET_PIE_CHART: "FACET_PIE_CHART", 1015 // FACET_TABLE. 1016 FACET_TABLE: "FACET_TABLE", 1017 // HEATMAP. 1018 HEATMAP: "HEATMAP", 1019 } 1020 1021 // DashboardInaccessibleWidgetVisualizationType - Inaccessible widget visualization type. 1022 type DashboardInaccessibleWidgetVisualizationType string 1023 1024 var DashboardInaccessibleWidgetVisualizationTypeTypes = struct { 1025 // INACCESSIBLE. 1026 INACCESSIBLE DashboardInaccessibleWidgetVisualizationType 1027 }{ 1028 // INACCESSIBLE. 1029 INACCESSIBLE: "INACCESSIBLE", 1030 } 1031 1032 // DashboardInventoryWidgetVisualizationType - Inventory widget visualization type. 1033 type DashboardInventoryWidgetVisualizationType string 1034 1035 var DashboardInventoryWidgetVisualizationTypeTypes = struct { 1036 // INVENTORY. 1037 INVENTORY DashboardInventoryWidgetVisualizationType 1038 }{ 1039 // INVENTORY. 1040 INVENTORY: "INVENTORY", 1041 } 1042 1043 // DashboardMarkdownWidgetVisualizationType - Markdown widget visualization type. 1044 type DashboardMarkdownWidgetVisualizationType string 1045 1046 var DashboardMarkdownWidgetVisualizationTypeTypes = struct { 1047 // MARKDOWN. 1048 MARKDOWN DashboardMarkdownWidgetVisualizationType 1049 }{ 1050 // MARKDOWN. 1051 MARKDOWN: "MARKDOWN", 1052 } 1053 1054 // DashboardMetricLineChartWidgetVisualizationType - Metric line chart widget visualization type. 1055 type DashboardMetricLineChartWidgetVisualizationType string 1056 1057 var DashboardMetricLineChartWidgetVisualizationTypeTypes = struct { 1058 // METRIC_LINE_CHART. 1059 METRIC_LINE_CHART DashboardMetricLineChartWidgetVisualizationType 1060 }{ 1061 // METRIC_LINE_CHART. 1062 METRIC_LINE_CHART: "METRIC_LINE_CHART", 1063 } 1064 1065 // DashboardPermissions - Permissions that represent visibility & editability 1066 type DashboardPermissions string 1067 1068 var DashboardPermissionsTypes = struct { 1069 // Private 1070 PRIVATE DashboardPermissions 1071 // Public read only 1072 PUBLIC_READ_ONLY DashboardPermissions 1073 // Public read & write 1074 PUBLIC_READ_WRITE DashboardPermissions 1075 }{ 1076 // Private 1077 PRIVATE: "PRIVATE", 1078 // Public read only 1079 PUBLIC_READ_ONLY: "PUBLIC_READ_ONLY", 1080 // Public read & write 1081 PUBLIC_READ_WRITE: "PUBLIC_READ_WRITE", 1082 } 1083 1084 // DashboardPredefinedMetricChartWidgetVisualizationType - Predefined metric chart widget visualization type. 1085 type DashboardPredefinedMetricChartWidgetVisualizationType string 1086 1087 var DashboardPredefinedMetricChartWidgetVisualizationTypeTypes = struct { 1088 // APPLICATION_BREAKDOWN. 1089 APPLICATION_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1090 // BACKGROUND_BREAKDOWN. 1091 BACKGROUND_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1092 // BROWSER_BREAKDOWN. 1093 BROWSER_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1094 // GC_RUNS_BREAKDOWN. 1095 GC_RUNS_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1096 // SCOPE_BREAKDOWN. 1097 SCOPE_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1098 // SOLR_BREAKDOWN. 1099 SOLR_BREAKDOWN DashboardPredefinedMetricChartWidgetVisualizationType 1100 }{ 1101 // APPLICATION_BREAKDOWN. 1102 APPLICATION_BREAKDOWN: "APPLICATION_BREAKDOWN", 1103 // BACKGROUND_BREAKDOWN. 1104 BACKGROUND_BREAKDOWN: "BACKGROUND_BREAKDOWN", 1105 // BROWSER_BREAKDOWN. 1106 BROWSER_BREAKDOWN: "BROWSER_BREAKDOWN", 1107 // GC_RUNS_BREAKDOWN. 1108 GC_RUNS_BREAKDOWN: "GC_RUNS_BREAKDOWN", 1109 // SCOPE_BREAKDOWN. 1110 SCOPE_BREAKDOWN: "SCOPE_BREAKDOWN", 1111 // SOLR_BREAKDOWN. 1112 SOLR_BREAKDOWN: "SOLR_BREAKDOWN", 1113 } 1114 1115 // DashboardServiceMapWidgetVisualizationType - Service map widget visualization type. 1116 type DashboardServiceMapWidgetVisualizationType string 1117 1118 var DashboardServiceMapWidgetVisualizationTypeTypes = struct { 1119 // SERVICE_MAP. 1120 SERVICE_MAP DashboardServiceMapWidgetVisualizationType 1121 }{ 1122 // SERVICE_MAP. 1123 SERVICE_MAP: "SERVICE_MAP", 1124 } 1125 1126 // DashboardSimpleEventWidgetVisualizationType - Simple event widget visualization type. 1127 type DashboardSimpleEventWidgetVisualizationType string 1128 1129 var DashboardSimpleEventWidgetVisualizationTypeTypes = struct { 1130 // ATTRIBUTE_SHEET. 1131 ATTRIBUTE_SHEET DashboardSimpleEventWidgetVisualizationType 1132 // COMPARISON_LINE_CHART. 1133 COMPARISON_LINE_CHART DashboardSimpleEventWidgetVisualizationType 1134 // EVENT_FEED. 1135 EVENT_FEED DashboardSimpleEventWidgetVisualizationType 1136 // EVENT_TABLE. 1137 EVENT_TABLE DashboardSimpleEventWidgetVisualizationType 1138 // FUNNEL. 1139 FUNNEL DashboardSimpleEventWidgetVisualizationType 1140 // HISTOGRAM. 1141 HISTOGRAM DashboardSimpleEventWidgetVisualizationType 1142 // LINE_CHART. 1143 LINE_CHART DashboardSimpleEventWidgetVisualizationType 1144 // RAW_JSON. 1145 RAW_JSON DashboardSimpleEventWidgetVisualizationType 1146 // SINGLE_EVENT. 1147 SINGLE_EVENT DashboardSimpleEventWidgetVisualizationType 1148 // UNIQUES_LIST. 1149 UNIQUES_LIST DashboardSimpleEventWidgetVisualizationType 1150 }{ 1151 // ATTRIBUTE_SHEET. 1152 ATTRIBUTE_SHEET: "ATTRIBUTE_SHEET", 1153 // COMPARISON_LINE_CHART. 1154 COMPARISON_LINE_CHART: "COMPARISON_LINE_CHART", 1155 // EVENT_FEED. 1156 EVENT_FEED: "EVENT_FEED", 1157 // EVENT_TABLE. 1158 EVENT_TABLE: "EVENT_TABLE", 1159 // FUNNEL. 1160 FUNNEL: "FUNNEL", 1161 // HISTOGRAM. 1162 HISTOGRAM: "HISTOGRAM", 1163 // LINE_CHART. 1164 LINE_CHART: "LINE_CHART", 1165 // RAW_JSON. 1166 RAW_JSON: "RAW_JSON", 1167 // SINGLE_EVENT. 1168 SINGLE_EVENT: "SINGLE_EVENT", 1169 // UNIQUES_LIST. 1170 UNIQUES_LIST: "UNIQUES_LIST", 1171 } 1172 1173 // DashboardThresholdEventWidgetVisualizationType - Threshold event widget visualization type. 1174 type DashboardThresholdEventWidgetVisualizationType string 1175 1176 var DashboardThresholdEventWidgetVisualizationTypeTypes = struct { 1177 // BILLBOARD. 1178 BILLBOARD DashboardThresholdEventWidgetVisualizationType 1179 // BILLBOARD_COMPARISON. 1180 BILLBOARD_COMPARISON DashboardThresholdEventWidgetVisualizationType 1181 // GAUGE. 1182 GAUGE DashboardThresholdEventWidgetVisualizationType 1183 }{ 1184 // BILLBOARD. 1185 BILLBOARD: "BILLBOARD", 1186 // BILLBOARD_COMPARISON. 1187 BILLBOARD_COMPARISON: "BILLBOARD_COMPARISON", 1188 // GAUGE. 1189 GAUGE: "GAUGE", 1190 } 1191 1192 // DashboardVisibility - Visibility. 1193 type DashboardVisibility string 1194 1195 var DashboardVisibilityTypes = struct { 1196 // ALL. 1197 ALL DashboardVisibility 1198 // OWNER. 1199 OWNER DashboardVisibility 1200 }{ 1201 // ALL. 1202 ALL: "ALL", 1203 // OWNER. 1204 OWNER: "OWNER", 1205 } 1206 1207 // EntityAlertSeverity - The alert severity of the entity. 1208 type EntityAlertSeverity string 1209 1210 var EntityAlertSeverityTypes = struct { 1211 // Indicates an entity has a critical violation in progress. 1212 CRITICAL EntityAlertSeverity 1213 // Indicates an entity has no violations and therefore is not alerting. 1214 NOT_ALERTING EntityAlertSeverity 1215 // Indicates an entity is not configured for alerting. 1216 NOT_CONFIGURED EntityAlertSeverity 1217 // Indicates an entity has a warning violation in progress. 1218 WARNING EntityAlertSeverity 1219 }{ 1220 // Indicates an entity has a critical violation in progress. 1221 CRITICAL: "CRITICAL", 1222 // Indicates an entity has no violations and therefore is not alerting. 1223 NOT_ALERTING: "NOT_ALERTING", 1224 // Indicates an entity is not configured for alerting. 1225 NOT_CONFIGURED: "NOT_CONFIGURED", 1226 // Indicates an entity has a warning violation in progress. 1227 WARNING: "WARNING", 1228 } 1229 1230 type EntityAlertStatus string 1231 1232 var EntityAlertStatusTypes = struct { 1233 // Not alerting 1234 GREEN EntityAlertStatus 1235 // Entity not reporting 1236 GREY EntityAlertStatus 1237 // No alerts set up 1238 LIGHT_GREEN EntityAlertStatus 1239 // Critical violation 1240 RED EntityAlertStatus 1241 // Warning violation 1242 YELLOW EntityAlertStatus 1243 }{ 1244 // Not alerting 1245 GREEN: "GREEN", 1246 // Entity not reporting 1247 GREY: "GREY", 1248 // No alerts set up 1249 LIGHT_GREEN: "LIGHT_GREEN", 1250 // Critical violation 1251 RED: "RED", 1252 // Warning violation 1253 YELLOW: "YELLOW", 1254 } 1255 1256 // EntityCollectionType - Indicates where this collection is used 1257 type EntityCollectionType string 1258 1259 var EntityCollectionTypeTypes = struct { 1260 // Collections that define the entities that belong to a workload 1261 WORKLOAD EntityCollectionType 1262 // Collections that define the entity groups that are used to calculate the status of a workload 1263 WORKLOAD_STATUS_RULE_GROUP EntityCollectionType 1264 }{ 1265 // Collections that define the entities that belong to a workload 1266 WORKLOAD: "WORKLOAD", 1267 // Collections that define the entity groups that are used to calculate the status of a workload 1268 WORKLOAD_STATUS_RULE_GROUP: "WORKLOAD_STATUS_RULE_GROUP", 1269 } 1270 1271 // EntityGoldenEventObjectId - Types of references for the default WHERE clause. 1272 type EntityGoldenEventObjectId string 1273 1274 var EntityGoldenEventObjectIdTypes = struct { 1275 // The WHERE clause will be done against a domainId. 1276 DOMAIN_IDS EntityGoldenEventObjectId 1277 // The WHERE clause will be done against a GUID. 1278 ENTITY_GUIDS EntityGoldenEventObjectId 1279 // The WHERE clause will be done against the name of the entity. 1280 ENTITY_NAMES EntityGoldenEventObjectId 1281 }{ 1282 // The WHERE clause will be done against a domainId. 1283 DOMAIN_IDS: "DOMAIN_IDS", 1284 // The WHERE clause will be done against a GUID. 1285 ENTITY_GUIDS: "ENTITY_GUIDS", 1286 // The WHERE clause will be done against the name of the entity. 1287 ENTITY_NAMES: "ENTITY_NAMES", 1288 } 1289 1290 // EntityGoldenMetricUnit - The different units that can be used to express golden metrics. 1291 type EntityGoldenMetricUnit string 1292 1293 var EntityGoldenMetricUnitTypes = struct { 1294 // Apdex (Application Performance Index). 1295 APDEX EntityGoldenMetricUnit 1296 // Bits. 1297 BITS EntityGoldenMetricUnit 1298 // Bits per second. 1299 BITS_PER_SECOND EntityGoldenMetricUnit 1300 // Bytes. 1301 BYTES EntityGoldenMetricUnit 1302 // Bytes per second. 1303 BYTES_PER_SECOND EntityGoldenMetricUnit 1304 // Degrees celsius. 1305 CELSIUS EntityGoldenMetricUnit 1306 // Count. 1307 COUNT EntityGoldenMetricUnit 1308 // Hertz. 1309 HERTZ EntityGoldenMetricUnit 1310 // Messages per second. 1311 MESSAGES_PER_SECOND EntityGoldenMetricUnit 1312 // Operations per second. 1313 OPERATIONS_PER_SECOND EntityGoldenMetricUnit 1314 // Pages loaded per second. 1315 PAGES_PER_SECOND EntityGoldenMetricUnit 1316 // Percentage. 1317 PERCENTAGE EntityGoldenMetricUnit 1318 // Requests received per second. 1319 REQUESTS_PER_SECOND EntityGoldenMetricUnit 1320 // Seconds. 1321 SECONDS EntityGoldenMetricUnit 1322 // Timestamp. 1323 TIMESTAMP EntityGoldenMetricUnit 1324 }{ 1325 // Apdex (Application Performance Index). 1326 APDEX: "APDEX", 1327 // Bits. 1328 BITS: "BITS", 1329 // Bits per second. 1330 BITS_PER_SECOND: "BITS_PER_SECOND", 1331 // Bytes. 1332 BYTES: "BYTES", 1333 // Bytes per second. 1334 BYTES_PER_SECOND: "BYTES_PER_SECOND", 1335 // Degrees celsius. 1336 CELSIUS: "CELSIUS", 1337 // Count. 1338 COUNT: "COUNT", 1339 // Hertz. 1340 HERTZ: "HERTZ", 1341 // Messages per second. 1342 MESSAGES_PER_SECOND: "MESSAGES_PER_SECOND", 1343 // Operations per second. 1344 OPERATIONS_PER_SECOND: "OPERATIONS_PER_SECOND", 1345 // Pages loaded per second. 1346 PAGES_PER_SECOND: "PAGES_PER_SECOND", 1347 // Percentage. 1348 PERCENTAGE: "PERCENTAGE", 1349 // Requests received per second. 1350 REQUESTS_PER_SECOND: "REQUESTS_PER_SECOND", 1351 // Seconds. 1352 SECONDS: "SECONDS", 1353 // Timestamp. 1354 TIMESTAMP: "TIMESTAMP", 1355 } 1356 1357 // EntityGraphEntityFlags - Flags used to indicate special information about an entity 1358 type EntityGraphEntityFlags string 1359 1360 var EntityGraphEntityFlagsTypes = struct { 1361 // This entity does not match the normal filters, but was included because it is realted to an entity in the results. 1362 RELATED_ENTITY EntityGraphEntityFlags 1363 // This entity is the source of a relationshipOf filter. 1364 RELATIONSHIP_OF_SOURCE EntityGraphEntityFlags 1365 }{ 1366 // This entity does not match the normal filters, but was included because it is realted to an entity in the results. 1367 RELATED_ENTITY: "RELATED_ENTITY", 1368 // This entity is the source of a relationshipOf filter. 1369 RELATIONSHIP_OF_SOURCE: "RELATIONSHIP_OF_SOURCE", 1370 } 1371 1372 // EntityInfrastructureIntegrationType - The type of Infrastructure Integration 1373 type EntityInfrastructureIntegrationType string 1374 1375 var EntityInfrastructureIntegrationTypeTypes = struct { 1376 // APACHE_SERVER integration 1377 APACHE_SERVER EntityInfrastructureIntegrationType 1378 // AWSELASTICSEARCHNODE integration 1379 AWSELASTICSEARCHNODE EntityInfrastructureIntegrationType 1380 // AWS_ALB integration 1381 AWS_ALB EntityInfrastructureIntegrationType 1382 // AWS_ALB_LISTENER integration 1383 AWS_ALB_LISTENER EntityInfrastructureIntegrationType 1384 // AWS_ALB_LISTENER_RULE integration 1385 AWS_ALB_LISTENER_RULE EntityInfrastructureIntegrationType 1386 // AWS_ALB_TARGET_GROUP integration 1387 AWS_ALB_TARGET_GROUP EntityInfrastructureIntegrationType 1388 // AWS_API_GATEWAY_API integration 1389 AWS_API_GATEWAY_API EntityInfrastructureIntegrationType 1390 // AWS_API_GATEWAY_RESOURCE integration 1391 AWS_API_GATEWAY_RESOURCE EntityInfrastructureIntegrationType 1392 // AWS_API_GATEWAY_RESOURCE_WITH_METRICS integration 1393 AWS_API_GATEWAY_RESOURCE_WITH_METRICS EntityInfrastructureIntegrationType 1394 // AWS_API_GATEWAY_STAGE integration 1395 AWS_API_GATEWAY_STAGE EntityInfrastructureIntegrationType 1396 // AWS_AUTO_SCALING_GROUP integration 1397 AWS_AUTO_SCALING_GROUP EntityInfrastructureIntegrationType 1398 // AWS_AUTO_SCALING_INSTANCE integration 1399 AWS_AUTO_SCALING_INSTANCE EntityInfrastructureIntegrationType 1400 // AWS_AUTO_SCALING_LAUNCH_CONFIGURATION integration 1401 AWS_AUTO_SCALING_LAUNCH_CONFIGURATION EntityInfrastructureIntegrationType 1402 // AWS_AUTO_SCALING_POLICY integration 1403 AWS_AUTO_SCALING_POLICY EntityInfrastructureIntegrationType 1404 // AWS_AUTO_SCALING_REGION_LIMIT integration 1405 AWS_AUTO_SCALING_REGION_LIMIT EntityInfrastructureIntegrationType 1406 // AWS_BILLING_ACCOUNT_COST integration 1407 AWS_BILLING_ACCOUNT_COST EntityInfrastructureIntegrationType 1408 // AWS_BILLING_ACCOUNT_SERVICE_COST integration 1409 AWS_BILLING_ACCOUNT_SERVICE_COST EntityInfrastructureIntegrationType 1410 // AWS_BILLING_BUDGET integration 1411 AWS_BILLING_BUDGET EntityInfrastructureIntegrationType 1412 // AWS_BILLING_SERVICE_COST integration 1413 AWS_BILLING_SERVICE_COST EntityInfrastructureIntegrationType 1414 // AWS_CLOUD_FRONT_DISTRIBUTION integration 1415 AWS_CLOUD_FRONT_DISTRIBUTION EntityInfrastructureIntegrationType 1416 // AWS_CLOUD_TRAIL integration 1417 AWS_CLOUD_TRAIL EntityInfrastructureIntegrationType 1418 // AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX integration 1419 AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX EntityInfrastructureIntegrationType 1420 // AWS_DYNAMO_DB_REGION integration 1421 AWS_DYNAMO_DB_REGION EntityInfrastructureIntegrationType 1422 // AWS_DYNAMO_DB_TABLE integration 1423 AWS_DYNAMO_DB_TABLE EntityInfrastructureIntegrationType 1424 // AWS_EBS_VOLUME integration 1425 AWS_EBS_VOLUME EntityInfrastructureIntegrationType 1426 // AWS_ECS_CLUSTER integration 1427 AWS_ECS_CLUSTER EntityInfrastructureIntegrationType 1428 // AWS_ECS_SERVICE integration 1429 AWS_ECS_SERVICE EntityInfrastructureIntegrationType 1430 // AWS_EFS_FILE_SYSTEM integration 1431 AWS_EFS_FILE_SYSTEM EntityInfrastructureIntegrationType 1432 // AWS_ELASTICSEARCH_CLUSTER integration 1433 AWS_ELASTICSEARCH_CLUSTER EntityInfrastructureIntegrationType 1434 // AWS_ELASTICSEARCH_INSTANCE integration 1435 AWS_ELASTICSEARCH_INSTANCE EntityInfrastructureIntegrationType 1436 // AWS_ELASTIC_BEANSTALK_ENVIRONMENT integration 1437 AWS_ELASTIC_BEANSTALK_ENVIRONMENT EntityInfrastructureIntegrationType 1438 // AWS_ELASTIC_BEANSTALK_INSTANCE integration 1439 AWS_ELASTIC_BEANSTALK_INSTANCE EntityInfrastructureIntegrationType 1440 // AWS_ELASTIC_MAP_REDUCE_CLUSTER integration 1441 AWS_ELASTIC_MAP_REDUCE_CLUSTER EntityInfrastructureIntegrationType 1442 // AWS_ELASTIC_MAP_REDUCE_INSTANCE integration 1443 AWS_ELASTIC_MAP_REDUCE_INSTANCE EntityInfrastructureIntegrationType 1444 // AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET integration 1445 AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET EntityInfrastructureIntegrationType 1446 // AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP integration 1447 AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP EntityInfrastructureIntegrationType 1448 // AWS_ELASTI_CACHE_MEMCACHED_CLUSTER integration 1449 AWS_ELASTI_CACHE_MEMCACHED_CLUSTER EntityInfrastructureIntegrationType 1450 // AWS_ELASTI_CACHE_MEMCACHED_NODE integration 1451 AWS_ELASTI_CACHE_MEMCACHED_NODE EntityInfrastructureIntegrationType 1452 // AWS_ELASTI_CACHE_REDIS_CLUSTER integration 1453 AWS_ELASTI_CACHE_REDIS_CLUSTER EntityInfrastructureIntegrationType 1454 // AWS_ELASTI_CACHE_REDIS_NODE integration 1455 AWS_ELASTI_CACHE_REDIS_NODE EntityInfrastructureIntegrationType 1456 // AWS_ELB integration 1457 AWS_ELB EntityInfrastructureIntegrationType 1458 // AWS_HEALTH_ISSUE integration 1459 AWS_HEALTH_ISSUE EntityInfrastructureIntegrationType 1460 // AWS_HEALTH_NOTIFICATION integration 1461 AWS_HEALTH_NOTIFICATION EntityInfrastructureIntegrationType 1462 // AWS_HEALTH_SCHEDULED_CHANGE integration 1463 AWS_HEALTH_SCHEDULED_CHANGE EntityInfrastructureIntegrationType 1464 // AWS_HEALTH_UNKNOWN integration 1465 AWS_HEALTH_UNKNOWN EntityInfrastructureIntegrationType 1466 // AWS_IAM integration 1467 AWS_IAM EntityInfrastructureIntegrationType 1468 // AWS_IAM_GROUP integration 1469 AWS_IAM_GROUP EntityInfrastructureIntegrationType 1470 // AWS_IAM_OPEN_ID_PROVIDER integration 1471 AWS_IAM_OPEN_ID_PROVIDER EntityInfrastructureIntegrationType 1472 // AWS_IAM_POLICY integration 1473 AWS_IAM_POLICY EntityInfrastructureIntegrationType 1474 // AWS_IAM_ROLE integration 1475 AWS_IAM_ROLE EntityInfrastructureIntegrationType 1476 // AWS_IAM_SAML_PROVIDER integration 1477 AWS_IAM_SAML_PROVIDER EntityInfrastructureIntegrationType 1478 // AWS_IAM_SERVER_CERTIFICATE integration 1479 AWS_IAM_SERVER_CERTIFICATE EntityInfrastructureIntegrationType 1480 // AWS_IAM_USER integration 1481 AWS_IAM_USER EntityInfrastructureIntegrationType 1482 // AWS_IAM_VIRTUAL_MFA_DEVICE integration 1483 AWS_IAM_VIRTUAL_MFA_DEVICE EntityInfrastructureIntegrationType 1484 // AWS_IOT_BROKER integration 1485 AWS_IOT_BROKER EntityInfrastructureIntegrationType 1486 // AWS_IOT_RULE integration 1487 AWS_IOT_RULE EntityInfrastructureIntegrationType 1488 // AWS_IOT_RULE_ACTION integration 1489 AWS_IOT_RULE_ACTION EntityInfrastructureIntegrationType 1490 // AWS_KINESIS_DELIVERY_STREAM integration 1491 AWS_KINESIS_DELIVERY_STREAM EntityInfrastructureIntegrationType 1492 // AWS_KINESIS_STREAM integration 1493 AWS_KINESIS_STREAM EntityInfrastructureIntegrationType 1494 // AWS_KINESIS_STREAM_SHARD integration 1495 AWS_KINESIS_STREAM_SHARD EntityInfrastructureIntegrationType 1496 // AWS_LAMBDA_AGENT_TRANSACTION integration 1497 AWS_LAMBDA_AGENT_TRANSACTION EntityInfrastructureIntegrationType 1498 // AWS_LAMBDA_AGENT_TRANSACTION_ERROR integration 1499 AWS_LAMBDA_AGENT_TRANSACTION_ERROR EntityInfrastructureIntegrationType 1500 // AWS_LAMBDA_EDGE_FUNCTION integration 1501 AWS_LAMBDA_EDGE_FUNCTION EntityInfrastructureIntegrationType 1502 // AWS_LAMBDA_EVENT_SOURCE_MAPPING integration 1503 AWS_LAMBDA_EVENT_SOURCE_MAPPING EntityInfrastructureIntegrationType 1504 // AWS_LAMBDA_FUNCTION integration 1505 AWS_LAMBDA_FUNCTION EntityInfrastructureIntegrationType 1506 // AWS_LAMBDA_FUNCTION_ALIAS integration 1507 AWS_LAMBDA_FUNCTION_ALIAS EntityInfrastructureIntegrationType 1508 // AWS_LAMBDA_OPERATION integration 1509 AWS_LAMBDA_OPERATION EntityInfrastructureIntegrationType 1510 // AWS_LAMBDA_REGION integration 1511 AWS_LAMBDA_REGION EntityInfrastructureIntegrationType 1512 // AWS_LAMBDA_SPAN integration 1513 AWS_LAMBDA_SPAN EntityInfrastructureIntegrationType 1514 // AWS_LAMBDA_TRACE integration 1515 AWS_LAMBDA_TRACE EntityInfrastructureIntegrationType 1516 // AWS_RDS_DB_CLUSTER integration 1517 AWS_RDS_DB_CLUSTER EntityInfrastructureIntegrationType 1518 // AWS_RDS_DB_INSTANCE integration 1519 AWS_RDS_DB_INSTANCE EntityInfrastructureIntegrationType 1520 // AWS_REDSHIFT_CLUSTER integration 1521 AWS_REDSHIFT_CLUSTER EntityInfrastructureIntegrationType 1522 // AWS_REDSHIFT_NODE integration 1523 AWS_REDSHIFT_NODE EntityInfrastructureIntegrationType 1524 // AWS_ROUTE53_HEALTH_CHECK integration 1525 AWS_ROUTE53_HEALTH_CHECK EntityInfrastructureIntegrationType 1526 // AWS_ROUTE53_ZONE integration 1527 AWS_ROUTE53_ZONE EntityInfrastructureIntegrationType 1528 // AWS_ROUTE53_ZONE_RECORD_SET integration 1529 AWS_ROUTE53_ZONE_RECORD_SET EntityInfrastructureIntegrationType 1530 // AWS_S3_BUCKET integration 1531 AWS_S3_BUCKET EntityInfrastructureIntegrationType 1532 // AWS_S3_BUCKET_REQUESTS integration 1533 AWS_S3_BUCKET_REQUESTS EntityInfrastructureIntegrationType 1534 // AWS_SES_CONFIGURATION_SET integration 1535 AWS_SES_CONFIGURATION_SET EntityInfrastructureIntegrationType 1536 // AWS_SES_EVENT_DESTINATION integration 1537 AWS_SES_EVENT_DESTINATION EntityInfrastructureIntegrationType 1538 // AWS_SES_RECEIPT_FILTER integration 1539 AWS_SES_RECEIPT_FILTER EntityInfrastructureIntegrationType 1540 // AWS_SES_RECEIPT_RULE integration 1541 AWS_SES_RECEIPT_RULE EntityInfrastructureIntegrationType 1542 // AWS_SES_RECEIPT_RULE_SET integration 1543 AWS_SES_RECEIPT_RULE_SET EntityInfrastructureIntegrationType 1544 // AWS_SES_REGION integration 1545 AWS_SES_REGION EntityInfrastructureIntegrationType 1546 // AWS_SNS_SUBSCRIPTION integration 1547 AWS_SNS_SUBSCRIPTION EntityInfrastructureIntegrationType 1548 // AWS_SNS_TOPIC integration 1549 AWS_SNS_TOPIC EntityInfrastructureIntegrationType 1550 // AWS_SQS_QUEUE integration 1551 AWS_SQS_QUEUE EntityInfrastructureIntegrationType 1552 // AWS_VPC integration 1553 AWS_VPC EntityInfrastructureIntegrationType 1554 // AWS_VPC_ENDPOINT integration 1555 AWS_VPC_ENDPOINT EntityInfrastructureIntegrationType 1556 // AWS_VPC_INTERNET_GATEWAY integration 1557 AWS_VPC_INTERNET_GATEWAY EntityInfrastructureIntegrationType 1558 // AWS_VPC_NAT_GATEWAY integration 1559 AWS_VPC_NAT_GATEWAY EntityInfrastructureIntegrationType 1560 // AWS_VPC_NETWORK_ACL integration 1561 AWS_VPC_NETWORK_ACL EntityInfrastructureIntegrationType 1562 // AWS_VPC_NETWORK_INTERFACE integration 1563 AWS_VPC_NETWORK_INTERFACE EntityInfrastructureIntegrationType 1564 // AWS_VPC_PEERING_CONNECTION integration 1565 AWS_VPC_PEERING_CONNECTION EntityInfrastructureIntegrationType 1566 // AWS_VPC_ROUTE_TABLE integration 1567 AWS_VPC_ROUTE_TABLE EntityInfrastructureIntegrationType 1568 // AWS_VPC_SECURITY_GROUP integration 1569 AWS_VPC_SECURITY_GROUP EntityInfrastructureIntegrationType 1570 // AWS_VPC_SUBNET integration 1571 AWS_VPC_SUBNET EntityInfrastructureIntegrationType 1572 // AWS_VPC_VPN_CONNECTION integration 1573 AWS_VPC_VPN_CONNECTION EntityInfrastructureIntegrationType 1574 // AWS_VPC_VPN_TUNNEL integration 1575 AWS_VPC_VPN_TUNNEL EntityInfrastructureIntegrationType 1576 // AZURE_APP_SERVICE_HOST_NAME integration 1577 AZURE_APP_SERVICE_HOST_NAME EntityInfrastructureIntegrationType 1578 // AZURE_APP_SERVICE_WEB_APP integration 1579 AZURE_APP_SERVICE_WEB_APP EntityInfrastructureIntegrationType 1580 // AZURE_COSMOS_DB_ACCOUNT integration 1581 AZURE_COSMOS_DB_ACCOUNT EntityInfrastructureIntegrationType 1582 // AZURE_FUNCTIONS_APP integration 1583 AZURE_FUNCTIONS_APP EntityInfrastructureIntegrationType 1584 // AZURE_LOAD_BALANCER integration 1585 AZURE_LOAD_BALANCER EntityInfrastructureIntegrationType 1586 // AZURE_LOAD_BALANCER_BACKEND integration 1587 AZURE_LOAD_BALANCER_BACKEND EntityInfrastructureIntegrationType 1588 // AZURE_LOAD_BALANCER_FRONTEND_IP integration 1589 AZURE_LOAD_BALANCER_FRONTEND_IP EntityInfrastructureIntegrationType 1590 // AZURE_LOAD_BALANCER_INBOUND_NAT_POOL integration 1591 AZURE_LOAD_BALANCER_INBOUND_NAT_POOL EntityInfrastructureIntegrationType 1592 // AZURE_LOAD_BALANCER_INBOUND_NAT_RULE integration 1593 AZURE_LOAD_BALANCER_INBOUND_NAT_RULE EntityInfrastructureIntegrationType 1594 // AZURE_LOAD_BALANCER_PROBE integration 1595 AZURE_LOAD_BALANCER_PROBE EntityInfrastructureIntegrationType 1596 // AZURE_LOAD_BALANCER_RULE integration 1597 AZURE_LOAD_BALANCER_RULE EntityInfrastructureIntegrationType 1598 // AZURE_MARIADB_SERVER integration 1599 AZURE_MARIADB_SERVER EntityInfrastructureIntegrationType 1600 // AZURE_MYSQL_SERVER integration 1601 AZURE_MYSQL_SERVER EntityInfrastructureIntegrationType 1602 // AZURE_POSTGRESQL_SERVER integration 1603 AZURE_POSTGRESQL_SERVER EntityInfrastructureIntegrationType 1604 // AZURE_REDIS_CACHE integration 1605 AZURE_REDIS_CACHE EntityInfrastructureIntegrationType 1606 // AZURE_REDIS_CACHE_SHARD integration 1607 AZURE_REDIS_CACHE_SHARD EntityInfrastructureIntegrationType 1608 // AZURE_SERVICE_BUS_NAMESPACE integration 1609 AZURE_SERVICE_BUS_NAMESPACE EntityInfrastructureIntegrationType 1610 // AZURE_SERVICE_BUS_QUEUE integration 1611 AZURE_SERVICE_BUS_QUEUE EntityInfrastructureIntegrationType 1612 // AZURE_SERVICE_BUS_SUBSCRIPTION integration 1613 AZURE_SERVICE_BUS_SUBSCRIPTION EntityInfrastructureIntegrationType 1614 // AZURE_SERVICE_BUS_TOPIC integration 1615 AZURE_SERVICE_BUS_TOPIC EntityInfrastructureIntegrationType 1616 // AZURE_SQL_DATABASE integration 1617 AZURE_SQL_DATABASE EntityInfrastructureIntegrationType 1618 // AZURE_SQL_ELASTIC_POOL integration 1619 AZURE_SQL_ELASTIC_POOL EntityInfrastructureIntegrationType 1620 // AZURE_SQL_FIREWALL integration 1621 AZURE_SQL_FIREWALL EntityInfrastructureIntegrationType 1622 // AZURE_SQL_REPLICATION_LINK integration 1623 AZURE_SQL_REPLICATION_LINK EntityInfrastructureIntegrationType 1624 // AZURE_SQL_RESTORE_POINT integration 1625 AZURE_SQL_RESTORE_POINT EntityInfrastructureIntegrationType 1626 // AZURE_SQL_SERVER integration 1627 AZURE_SQL_SERVER EntityInfrastructureIntegrationType 1628 // AZURE_STORAGE_ACCOUNT integration 1629 AZURE_STORAGE_ACCOUNT EntityInfrastructureIntegrationType 1630 // AZURE_VIRTUAL_NETWORKS integration 1631 AZURE_VIRTUAL_NETWORKS EntityInfrastructureIntegrationType 1632 // AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION integration 1633 AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION EntityInfrastructureIntegrationType 1634 // AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE integration 1635 AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE EntityInfrastructureIntegrationType 1636 // AZURE_VIRTUAL_NETWORKS_PEERING integration 1637 AZURE_VIRTUAL_NETWORKS_PEERING EntityInfrastructureIntegrationType 1638 // AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS integration 1639 AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS EntityInfrastructureIntegrationType 1640 // AZURE_VIRTUAL_NETWORKS_ROUTE integration 1641 AZURE_VIRTUAL_NETWORKS_ROUTE EntityInfrastructureIntegrationType 1642 // AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE integration 1643 AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE EntityInfrastructureIntegrationType 1644 // AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP integration 1645 AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP EntityInfrastructureIntegrationType 1646 // AZURE_VIRTUAL_NETWORKS_SECURITY_RULE integration 1647 AZURE_VIRTUAL_NETWORKS_SECURITY_RULE EntityInfrastructureIntegrationType 1648 // AZURE_VIRTUAL_NETWORKS_SUBNET integration 1649 AZURE_VIRTUAL_NETWORKS_SUBNET EntityInfrastructureIntegrationType 1650 // CASSANDRA_NODE integration 1651 CASSANDRA_NODE EntityInfrastructureIntegrationType 1652 // CONSUL_AGENT integration 1653 CONSUL_AGENT EntityInfrastructureIntegrationType 1654 // COUCHBASE_BUCKET integration 1655 COUCHBASE_BUCKET EntityInfrastructureIntegrationType 1656 // COUCHBASE_CLUSTER integration 1657 COUCHBASE_CLUSTER EntityInfrastructureIntegrationType 1658 // COUCHBASE_NODE integration 1659 COUCHBASE_NODE EntityInfrastructureIntegrationType 1660 // COUCHBASE_QUERY_ENGINE integration 1661 COUCHBASE_QUERY_ENGINE EntityInfrastructureIntegrationType 1662 // ELASTICSEARCH_NODE integration 1663 ELASTICSEARCH_NODE EntityInfrastructureIntegrationType 1664 // F5_NODE integration 1665 F5_NODE EntityInfrastructureIntegrationType 1666 // F5_POOL integration 1667 F5_POOL EntityInfrastructureIntegrationType 1668 // F5_POOL_MEMBER integration 1669 F5_POOL_MEMBER EntityInfrastructureIntegrationType 1670 // F5_SYSTEM integration 1671 F5_SYSTEM EntityInfrastructureIntegrationType 1672 // F5_VIRTUAL_SERVER integration 1673 F5_VIRTUAL_SERVER EntityInfrastructureIntegrationType 1674 // GCP_APP_ENGINE_SERVICE integration 1675 GCP_APP_ENGINE_SERVICE EntityInfrastructureIntegrationType 1676 // GCP_BIG_QUERY_DATA_SET integration 1677 GCP_BIG_QUERY_DATA_SET EntityInfrastructureIntegrationType 1678 // GCP_BIG_QUERY_PROJECT integration 1679 GCP_BIG_QUERY_PROJECT EntityInfrastructureIntegrationType 1680 // GCP_BIG_QUERY_TABLE integration 1681 GCP_BIG_QUERY_TABLE EntityInfrastructureIntegrationType 1682 // GCP_CLOUD_FUNCTION integration 1683 GCP_CLOUD_FUNCTION EntityInfrastructureIntegrationType 1684 // GCP_CLOUD_SQL integration 1685 GCP_CLOUD_SQL EntityInfrastructureIntegrationType 1686 // GCP_CLOUD_TASKS_QUEUE integration 1687 GCP_CLOUD_TASKS_QUEUE EntityInfrastructureIntegrationType 1688 // GCP_HTTP_LOAD_BALANCER integration 1689 GCP_HTTP_LOAD_BALANCER EntityInfrastructureIntegrationType 1690 // GCP_INTERNAL_LOAD_BALANCER integration 1691 GCP_INTERNAL_LOAD_BALANCER EntityInfrastructureIntegrationType 1692 // GCP_KUBERNETES_CONTAINER integration 1693 GCP_KUBERNETES_CONTAINER EntityInfrastructureIntegrationType 1694 // GCP_KUBERNETES_NODE integration 1695 GCP_KUBERNETES_NODE EntityInfrastructureIntegrationType 1696 // GCP_KUBERNETES_POD integration 1697 GCP_KUBERNETES_POD EntityInfrastructureIntegrationType 1698 // GCP_PUB_SUB_SUBSCRIPTION integration 1699 GCP_PUB_SUB_SUBSCRIPTION EntityInfrastructureIntegrationType 1700 // GCP_PUB_SUB_TOPIC integration 1701 GCP_PUB_SUB_TOPIC EntityInfrastructureIntegrationType 1702 // GCP_SPANNER_DATABASE integration 1703 GCP_SPANNER_DATABASE EntityInfrastructureIntegrationType 1704 // GCP_SPANNER_INSTANCE integration 1705 GCP_SPANNER_INSTANCE EntityInfrastructureIntegrationType 1706 // GCP_STORAGE_BUCKET integration 1707 GCP_STORAGE_BUCKET EntityInfrastructureIntegrationType 1708 // GCP_TCP_SSL_PROXY_LOAD_BALANCER integration 1709 GCP_TCP_SSL_PROXY_LOAD_BALANCER EntityInfrastructureIntegrationType 1710 // GCP_VIRTUAL_MACHINE_DISK integration 1711 GCP_VIRTUAL_MACHINE_DISK EntityInfrastructureIntegrationType 1712 // KAFKA_BROKER integration 1713 KAFKA_BROKER EntityInfrastructureIntegrationType 1714 // KAFKA_TOPIC integration 1715 KAFKA_TOPIC EntityInfrastructureIntegrationType 1716 // KUBERNETES_CLUSTER integration 1717 KUBERNETES_CLUSTER EntityInfrastructureIntegrationType 1718 // MEMCACHED_INSTANCE integration 1719 MEMCACHED_INSTANCE EntityInfrastructureIntegrationType 1720 // MSSQL_INSTANCE integration 1721 MSSQL_INSTANCE EntityInfrastructureIntegrationType 1722 // MYSQL_NODE integration 1723 MYSQL_NODE EntityInfrastructureIntegrationType 1724 // NA integration 1725 NA EntityInfrastructureIntegrationType 1726 // NGINX_SERVER integration 1727 NGINX_SERVER EntityInfrastructureIntegrationType 1728 // ORACLE_DB_INSTANCE integration 1729 ORACLE_DB_INSTANCE EntityInfrastructureIntegrationType 1730 // POSTGRE_SQL_INSTANCE integration 1731 POSTGRE_SQL_INSTANCE EntityInfrastructureIntegrationType 1732 // RABBIT_MQ_CLUSTER integration 1733 RABBIT_MQ_CLUSTER EntityInfrastructureIntegrationType 1734 // RABBIT_MQ_EXCHANGE integration 1735 RABBIT_MQ_EXCHANGE EntityInfrastructureIntegrationType 1736 // RABBIT_MQ_NODE integration 1737 RABBIT_MQ_NODE EntityInfrastructureIntegrationType 1738 // RABBIT_MQ_QUEUE integration 1739 RABBIT_MQ_QUEUE EntityInfrastructureIntegrationType 1740 // REDIS_INSTANCE integration 1741 REDIS_INSTANCE EntityInfrastructureIntegrationType 1742 // VARNISH_INSTANCE integration 1743 VARNISH_INSTANCE EntityInfrastructureIntegrationType 1744 }{ 1745 // APACHE_SERVER integration 1746 APACHE_SERVER: "APACHE_SERVER", 1747 // AWSELASTICSEARCHNODE integration 1748 AWSELASTICSEARCHNODE: "AWSELASTICSEARCHNODE", 1749 // AWS_ALB integration 1750 AWS_ALB: "AWS_ALB", 1751 // AWS_ALB_LISTENER integration 1752 AWS_ALB_LISTENER: "AWS_ALB_LISTENER", 1753 // AWS_ALB_LISTENER_RULE integration 1754 AWS_ALB_LISTENER_RULE: "AWS_ALB_LISTENER_RULE", 1755 // AWS_ALB_TARGET_GROUP integration 1756 AWS_ALB_TARGET_GROUP: "AWS_ALB_TARGET_GROUP", 1757 // AWS_API_GATEWAY_API integration 1758 AWS_API_GATEWAY_API: "AWS_API_GATEWAY_API", 1759 // AWS_API_GATEWAY_RESOURCE integration 1760 AWS_API_GATEWAY_RESOURCE: "AWS_API_GATEWAY_RESOURCE", 1761 // AWS_API_GATEWAY_RESOURCE_WITH_METRICS integration 1762 AWS_API_GATEWAY_RESOURCE_WITH_METRICS: "AWS_API_GATEWAY_RESOURCE_WITH_METRICS", 1763 // AWS_API_GATEWAY_STAGE integration 1764 AWS_API_GATEWAY_STAGE: "AWS_API_GATEWAY_STAGE", 1765 // AWS_AUTO_SCALING_GROUP integration 1766 AWS_AUTO_SCALING_GROUP: "AWS_AUTO_SCALING_GROUP", 1767 // AWS_AUTO_SCALING_INSTANCE integration 1768 AWS_AUTO_SCALING_INSTANCE: "AWS_AUTO_SCALING_INSTANCE", 1769 // AWS_AUTO_SCALING_LAUNCH_CONFIGURATION integration 1770 AWS_AUTO_SCALING_LAUNCH_CONFIGURATION: "AWS_AUTO_SCALING_LAUNCH_CONFIGURATION", 1771 // AWS_AUTO_SCALING_POLICY integration 1772 AWS_AUTO_SCALING_POLICY: "AWS_AUTO_SCALING_POLICY", 1773 // AWS_AUTO_SCALING_REGION_LIMIT integration 1774 AWS_AUTO_SCALING_REGION_LIMIT: "AWS_AUTO_SCALING_REGION_LIMIT", 1775 // AWS_BILLING_ACCOUNT_COST integration 1776 AWS_BILLING_ACCOUNT_COST: "AWS_BILLING_ACCOUNT_COST", 1777 // AWS_BILLING_ACCOUNT_SERVICE_COST integration 1778 AWS_BILLING_ACCOUNT_SERVICE_COST: "AWS_BILLING_ACCOUNT_SERVICE_COST", 1779 // AWS_BILLING_BUDGET integration 1780 AWS_BILLING_BUDGET: "AWS_BILLING_BUDGET", 1781 // AWS_BILLING_SERVICE_COST integration 1782 AWS_BILLING_SERVICE_COST: "AWS_BILLING_SERVICE_COST", 1783 // AWS_CLOUD_FRONT_DISTRIBUTION integration 1784 AWS_CLOUD_FRONT_DISTRIBUTION: "AWS_CLOUD_FRONT_DISTRIBUTION", 1785 // AWS_CLOUD_TRAIL integration 1786 AWS_CLOUD_TRAIL: "AWS_CLOUD_TRAIL", 1787 // AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX integration 1788 AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX: "AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX", 1789 // AWS_DYNAMO_DB_REGION integration 1790 AWS_DYNAMO_DB_REGION: "AWS_DYNAMO_DB_REGION", 1791 // AWS_DYNAMO_DB_TABLE integration 1792 AWS_DYNAMO_DB_TABLE: "AWS_DYNAMO_DB_TABLE", 1793 // AWS_EBS_VOLUME integration 1794 AWS_EBS_VOLUME: "AWS_EBS_VOLUME", 1795 // AWS_ECS_CLUSTER integration 1796 AWS_ECS_CLUSTER: "AWS_ECS_CLUSTER", 1797 // AWS_ECS_SERVICE integration 1798 AWS_ECS_SERVICE: "AWS_ECS_SERVICE", 1799 // AWS_EFS_FILE_SYSTEM integration 1800 AWS_EFS_FILE_SYSTEM: "AWS_EFS_FILE_SYSTEM", 1801 // AWS_ELASTICSEARCH_CLUSTER integration 1802 AWS_ELASTICSEARCH_CLUSTER: "AWS_ELASTICSEARCH_CLUSTER", 1803 // AWS_ELASTICSEARCH_INSTANCE integration 1804 AWS_ELASTICSEARCH_INSTANCE: "AWS_ELASTICSEARCH_INSTANCE", 1805 // AWS_ELASTIC_BEANSTALK_ENVIRONMENT integration 1806 AWS_ELASTIC_BEANSTALK_ENVIRONMENT: "AWS_ELASTIC_BEANSTALK_ENVIRONMENT", 1807 // AWS_ELASTIC_BEANSTALK_INSTANCE integration 1808 AWS_ELASTIC_BEANSTALK_INSTANCE: "AWS_ELASTIC_BEANSTALK_INSTANCE", 1809 // AWS_ELASTIC_MAP_REDUCE_CLUSTER integration 1810 AWS_ELASTIC_MAP_REDUCE_CLUSTER: "AWS_ELASTIC_MAP_REDUCE_CLUSTER", 1811 // AWS_ELASTIC_MAP_REDUCE_INSTANCE integration 1812 AWS_ELASTIC_MAP_REDUCE_INSTANCE: "AWS_ELASTIC_MAP_REDUCE_INSTANCE", 1813 // AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET integration 1814 AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET: "AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET", 1815 // AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP integration 1816 AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP: "AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP", 1817 // AWS_ELASTI_CACHE_MEMCACHED_CLUSTER integration 1818 AWS_ELASTI_CACHE_MEMCACHED_CLUSTER: "AWS_ELASTI_CACHE_MEMCACHED_CLUSTER", 1819 // AWS_ELASTI_CACHE_MEMCACHED_NODE integration 1820 AWS_ELASTI_CACHE_MEMCACHED_NODE: "AWS_ELASTI_CACHE_MEMCACHED_NODE", 1821 // AWS_ELASTI_CACHE_REDIS_CLUSTER integration 1822 AWS_ELASTI_CACHE_REDIS_CLUSTER: "AWS_ELASTI_CACHE_REDIS_CLUSTER", 1823 // AWS_ELASTI_CACHE_REDIS_NODE integration 1824 AWS_ELASTI_CACHE_REDIS_NODE: "AWS_ELASTI_CACHE_REDIS_NODE", 1825 // AWS_ELB integration 1826 AWS_ELB: "AWS_ELB", 1827 // AWS_HEALTH_ISSUE integration 1828 AWS_HEALTH_ISSUE: "AWS_HEALTH_ISSUE", 1829 // AWS_HEALTH_NOTIFICATION integration 1830 AWS_HEALTH_NOTIFICATION: "AWS_HEALTH_NOTIFICATION", 1831 // AWS_HEALTH_SCHEDULED_CHANGE integration 1832 AWS_HEALTH_SCHEDULED_CHANGE: "AWS_HEALTH_SCHEDULED_CHANGE", 1833 // AWS_HEALTH_UNKNOWN integration 1834 AWS_HEALTH_UNKNOWN: "AWS_HEALTH_UNKNOWN", 1835 // AWS_IAM integration 1836 AWS_IAM: "AWS_IAM", 1837 // AWS_IAM_GROUP integration 1838 AWS_IAM_GROUP: "AWS_IAM_GROUP", 1839 // AWS_IAM_OPEN_ID_PROVIDER integration 1840 AWS_IAM_OPEN_ID_PROVIDER: "AWS_IAM_OPEN_ID_PROVIDER", 1841 // AWS_IAM_POLICY integration 1842 AWS_IAM_POLICY: "AWS_IAM_POLICY", 1843 // AWS_IAM_ROLE integration 1844 AWS_IAM_ROLE: "AWS_IAM_ROLE", 1845 // AWS_IAM_SAML_PROVIDER integration 1846 AWS_IAM_SAML_PROVIDER: "AWS_IAM_SAML_PROVIDER", 1847 // AWS_IAM_SERVER_CERTIFICATE integration 1848 AWS_IAM_SERVER_CERTIFICATE: "AWS_IAM_SERVER_CERTIFICATE", 1849 // AWS_IAM_USER integration 1850 AWS_IAM_USER: "AWS_IAM_USER", 1851 // AWS_IAM_VIRTUAL_MFA_DEVICE integration 1852 AWS_IAM_VIRTUAL_MFA_DEVICE: "AWS_IAM_VIRTUAL_MFA_DEVICE", 1853 // AWS_IOT_BROKER integration 1854 AWS_IOT_BROKER: "AWS_IOT_BROKER", 1855 // AWS_IOT_RULE integration 1856 AWS_IOT_RULE: "AWS_IOT_RULE", 1857 // AWS_IOT_RULE_ACTION integration 1858 AWS_IOT_RULE_ACTION: "AWS_IOT_RULE_ACTION", 1859 // AWS_KINESIS_DELIVERY_STREAM integration 1860 AWS_KINESIS_DELIVERY_STREAM: "AWS_KINESIS_DELIVERY_STREAM", 1861 // AWS_KINESIS_STREAM integration 1862 AWS_KINESIS_STREAM: "AWS_KINESIS_STREAM", 1863 // AWS_KINESIS_STREAM_SHARD integration 1864 AWS_KINESIS_STREAM_SHARD: "AWS_KINESIS_STREAM_SHARD", 1865 // AWS_LAMBDA_AGENT_TRANSACTION integration 1866 AWS_LAMBDA_AGENT_TRANSACTION: "AWS_LAMBDA_AGENT_TRANSACTION", 1867 // AWS_LAMBDA_AGENT_TRANSACTION_ERROR integration 1868 AWS_LAMBDA_AGENT_TRANSACTION_ERROR: "AWS_LAMBDA_AGENT_TRANSACTION_ERROR", 1869 // AWS_LAMBDA_EDGE_FUNCTION integration 1870 AWS_LAMBDA_EDGE_FUNCTION: "AWS_LAMBDA_EDGE_FUNCTION", 1871 // AWS_LAMBDA_EVENT_SOURCE_MAPPING integration 1872 AWS_LAMBDA_EVENT_SOURCE_MAPPING: "AWS_LAMBDA_EVENT_SOURCE_MAPPING", 1873 // AWS_LAMBDA_FUNCTION integration 1874 AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", 1875 // AWS_LAMBDA_FUNCTION_ALIAS integration 1876 AWS_LAMBDA_FUNCTION_ALIAS: "AWS_LAMBDA_FUNCTION_ALIAS", 1877 // AWS_LAMBDA_OPERATION integration 1878 AWS_LAMBDA_OPERATION: "AWS_LAMBDA_OPERATION", 1879 // AWS_LAMBDA_REGION integration 1880 AWS_LAMBDA_REGION: "AWS_LAMBDA_REGION", 1881 // AWS_LAMBDA_SPAN integration 1882 AWS_LAMBDA_SPAN: "AWS_LAMBDA_SPAN", 1883 // AWS_LAMBDA_TRACE integration 1884 AWS_LAMBDA_TRACE: "AWS_LAMBDA_TRACE", 1885 // AWS_RDS_DB_CLUSTER integration 1886 AWS_RDS_DB_CLUSTER: "AWS_RDS_DB_CLUSTER", 1887 // AWS_RDS_DB_INSTANCE integration 1888 AWS_RDS_DB_INSTANCE: "AWS_RDS_DB_INSTANCE", 1889 // AWS_REDSHIFT_CLUSTER integration 1890 AWS_REDSHIFT_CLUSTER: "AWS_REDSHIFT_CLUSTER", 1891 // AWS_REDSHIFT_NODE integration 1892 AWS_REDSHIFT_NODE: "AWS_REDSHIFT_NODE", 1893 // AWS_ROUTE53_HEALTH_CHECK integration 1894 AWS_ROUTE53_HEALTH_CHECK: "AWS_ROUTE53_HEALTH_CHECK", 1895 // AWS_ROUTE53_ZONE integration 1896 AWS_ROUTE53_ZONE: "AWS_ROUTE53_ZONE", 1897 // AWS_ROUTE53_ZONE_RECORD_SET integration 1898 AWS_ROUTE53_ZONE_RECORD_SET: "AWS_ROUTE53_ZONE_RECORD_SET", 1899 // AWS_S3_BUCKET integration 1900 AWS_S3_BUCKET: "AWS_S3_BUCKET", 1901 // AWS_S3_BUCKET_REQUESTS integration 1902 AWS_S3_BUCKET_REQUESTS: "AWS_S3_BUCKET_REQUESTS", 1903 // AWS_SES_CONFIGURATION_SET integration 1904 AWS_SES_CONFIGURATION_SET: "AWS_SES_CONFIGURATION_SET", 1905 // AWS_SES_EVENT_DESTINATION integration 1906 AWS_SES_EVENT_DESTINATION: "AWS_SES_EVENT_DESTINATION", 1907 // AWS_SES_RECEIPT_FILTER integration 1908 AWS_SES_RECEIPT_FILTER: "AWS_SES_RECEIPT_FILTER", 1909 // AWS_SES_RECEIPT_RULE integration 1910 AWS_SES_RECEIPT_RULE: "AWS_SES_RECEIPT_RULE", 1911 // AWS_SES_RECEIPT_RULE_SET integration 1912 AWS_SES_RECEIPT_RULE_SET: "AWS_SES_RECEIPT_RULE_SET", 1913 // AWS_SES_REGION integration 1914 AWS_SES_REGION: "AWS_SES_REGION", 1915 // AWS_SNS_SUBSCRIPTION integration 1916 AWS_SNS_SUBSCRIPTION: "AWS_SNS_SUBSCRIPTION", 1917 // AWS_SNS_TOPIC integration 1918 AWS_SNS_TOPIC: "AWS_SNS_TOPIC", 1919 // AWS_SQS_QUEUE integration 1920 AWS_SQS_QUEUE: "AWS_SQS_QUEUE", 1921 // AWS_VPC integration 1922 AWS_VPC: "AWS_VPC", 1923 // AWS_VPC_ENDPOINT integration 1924 AWS_VPC_ENDPOINT: "AWS_VPC_ENDPOINT", 1925 // AWS_VPC_INTERNET_GATEWAY integration 1926 AWS_VPC_INTERNET_GATEWAY: "AWS_VPC_INTERNET_GATEWAY", 1927 // AWS_VPC_NAT_GATEWAY integration 1928 AWS_VPC_NAT_GATEWAY: "AWS_VPC_NAT_GATEWAY", 1929 // AWS_VPC_NETWORK_ACL integration 1930 AWS_VPC_NETWORK_ACL: "AWS_VPC_NETWORK_ACL", 1931 // AWS_VPC_NETWORK_INTERFACE integration 1932 AWS_VPC_NETWORK_INTERFACE: "AWS_VPC_NETWORK_INTERFACE", 1933 // AWS_VPC_PEERING_CONNECTION integration 1934 AWS_VPC_PEERING_CONNECTION: "AWS_VPC_PEERING_CONNECTION", 1935 // AWS_VPC_ROUTE_TABLE integration 1936 AWS_VPC_ROUTE_TABLE: "AWS_VPC_ROUTE_TABLE", 1937 // AWS_VPC_SECURITY_GROUP integration 1938 AWS_VPC_SECURITY_GROUP: "AWS_VPC_SECURITY_GROUP", 1939 // AWS_VPC_SUBNET integration 1940 AWS_VPC_SUBNET: "AWS_VPC_SUBNET", 1941 // AWS_VPC_VPN_CONNECTION integration 1942 AWS_VPC_VPN_CONNECTION: "AWS_VPC_VPN_CONNECTION", 1943 // AWS_VPC_VPN_TUNNEL integration 1944 AWS_VPC_VPN_TUNNEL: "AWS_VPC_VPN_TUNNEL", 1945 // AZURE_APP_SERVICE_HOST_NAME integration 1946 AZURE_APP_SERVICE_HOST_NAME: "AZURE_APP_SERVICE_HOST_NAME", 1947 // AZURE_APP_SERVICE_WEB_APP integration 1948 AZURE_APP_SERVICE_WEB_APP: "AZURE_APP_SERVICE_WEB_APP", 1949 // AZURE_COSMOS_DB_ACCOUNT integration 1950 AZURE_COSMOS_DB_ACCOUNT: "AZURE_COSMOS_DB_ACCOUNT", 1951 // AZURE_FUNCTIONS_APP integration 1952 AZURE_FUNCTIONS_APP: "AZURE_FUNCTIONS_APP", 1953 // AZURE_LOAD_BALANCER integration 1954 AZURE_LOAD_BALANCER: "AZURE_LOAD_BALANCER", 1955 // AZURE_LOAD_BALANCER_BACKEND integration 1956 AZURE_LOAD_BALANCER_BACKEND: "AZURE_LOAD_BALANCER_BACKEND", 1957 // AZURE_LOAD_BALANCER_FRONTEND_IP integration 1958 AZURE_LOAD_BALANCER_FRONTEND_IP: "AZURE_LOAD_BALANCER_FRONTEND_IP", 1959 // AZURE_LOAD_BALANCER_INBOUND_NAT_POOL integration 1960 AZURE_LOAD_BALANCER_INBOUND_NAT_POOL: "AZURE_LOAD_BALANCER_INBOUND_NAT_POOL", 1961 // AZURE_LOAD_BALANCER_INBOUND_NAT_RULE integration 1962 AZURE_LOAD_BALANCER_INBOUND_NAT_RULE: "AZURE_LOAD_BALANCER_INBOUND_NAT_RULE", 1963 // AZURE_LOAD_BALANCER_PROBE integration 1964 AZURE_LOAD_BALANCER_PROBE: "AZURE_LOAD_BALANCER_PROBE", 1965 // AZURE_LOAD_BALANCER_RULE integration 1966 AZURE_LOAD_BALANCER_RULE: "AZURE_LOAD_BALANCER_RULE", 1967 // AZURE_MARIADB_SERVER integration 1968 AZURE_MARIADB_SERVER: "AZURE_MARIADB_SERVER", 1969 // AZURE_MYSQL_SERVER integration 1970 AZURE_MYSQL_SERVER: "AZURE_MYSQL_SERVER", 1971 // AZURE_POSTGRESQL_SERVER integration 1972 AZURE_POSTGRESQL_SERVER: "AZURE_POSTGRESQL_SERVER", 1973 // AZURE_REDIS_CACHE integration 1974 AZURE_REDIS_CACHE: "AZURE_REDIS_CACHE", 1975 // AZURE_REDIS_CACHE_SHARD integration 1976 AZURE_REDIS_CACHE_SHARD: "AZURE_REDIS_CACHE_SHARD", 1977 // AZURE_SERVICE_BUS_NAMESPACE integration 1978 AZURE_SERVICE_BUS_NAMESPACE: "AZURE_SERVICE_BUS_NAMESPACE", 1979 // AZURE_SERVICE_BUS_QUEUE integration 1980 AZURE_SERVICE_BUS_QUEUE: "AZURE_SERVICE_BUS_QUEUE", 1981 // AZURE_SERVICE_BUS_SUBSCRIPTION integration 1982 AZURE_SERVICE_BUS_SUBSCRIPTION: "AZURE_SERVICE_BUS_SUBSCRIPTION", 1983 // AZURE_SERVICE_BUS_TOPIC integration 1984 AZURE_SERVICE_BUS_TOPIC: "AZURE_SERVICE_BUS_TOPIC", 1985 // AZURE_SQL_DATABASE integration 1986 AZURE_SQL_DATABASE: "AZURE_SQL_DATABASE", 1987 // AZURE_SQL_ELASTIC_POOL integration 1988 AZURE_SQL_ELASTIC_POOL: "AZURE_SQL_ELASTIC_POOL", 1989 // AZURE_SQL_FIREWALL integration 1990 AZURE_SQL_FIREWALL: "AZURE_SQL_FIREWALL", 1991 // AZURE_SQL_REPLICATION_LINK integration 1992 AZURE_SQL_REPLICATION_LINK: "AZURE_SQL_REPLICATION_LINK", 1993 // AZURE_SQL_RESTORE_POINT integration 1994 AZURE_SQL_RESTORE_POINT: "AZURE_SQL_RESTORE_POINT", 1995 // AZURE_SQL_SERVER integration 1996 AZURE_SQL_SERVER: "AZURE_SQL_SERVER", 1997 // AZURE_STORAGE_ACCOUNT integration 1998 AZURE_STORAGE_ACCOUNT: "AZURE_STORAGE_ACCOUNT", 1999 // AZURE_VIRTUAL_NETWORKS integration 2000 AZURE_VIRTUAL_NETWORKS: "AZURE_VIRTUAL_NETWORKS", 2001 // AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION integration 2002 AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION: "AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION", 2003 // AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE integration 2004 AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE: "AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE", 2005 // AZURE_VIRTUAL_NETWORKS_PEERING integration 2006 AZURE_VIRTUAL_NETWORKS_PEERING: "AZURE_VIRTUAL_NETWORKS_PEERING", 2007 // AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS integration 2008 AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS: "AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS", 2009 // AZURE_VIRTUAL_NETWORKS_ROUTE integration 2010 AZURE_VIRTUAL_NETWORKS_ROUTE: "AZURE_VIRTUAL_NETWORKS_ROUTE", 2011 // AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE integration 2012 AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE: "AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE", 2013 // AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP integration 2014 AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP: "AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP", 2015 // AZURE_VIRTUAL_NETWORKS_SECURITY_RULE integration 2016 AZURE_VIRTUAL_NETWORKS_SECURITY_RULE: "AZURE_VIRTUAL_NETWORKS_SECURITY_RULE", 2017 // AZURE_VIRTUAL_NETWORKS_SUBNET integration 2018 AZURE_VIRTUAL_NETWORKS_SUBNET: "AZURE_VIRTUAL_NETWORKS_SUBNET", 2019 // CASSANDRA_NODE integration 2020 CASSANDRA_NODE: "CASSANDRA_NODE", 2021 // CONSUL_AGENT integration 2022 CONSUL_AGENT: "CONSUL_AGENT", 2023 // COUCHBASE_BUCKET integration 2024 COUCHBASE_BUCKET: "COUCHBASE_BUCKET", 2025 // COUCHBASE_CLUSTER integration 2026 COUCHBASE_CLUSTER: "COUCHBASE_CLUSTER", 2027 // COUCHBASE_NODE integration 2028 COUCHBASE_NODE: "COUCHBASE_NODE", 2029 // COUCHBASE_QUERY_ENGINE integration 2030 COUCHBASE_QUERY_ENGINE: "COUCHBASE_QUERY_ENGINE", 2031 // ELASTICSEARCH_NODE integration 2032 ELASTICSEARCH_NODE: "ELASTICSEARCH_NODE", 2033 // F5_NODE integration 2034 F5_NODE: "F5_NODE", 2035 // F5_POOL integration 2036 F5_POOL: "F5_POOL", 2037 // F5_POOL_MEMBER integration 2038 F5_POOL_MEMBER: "F5_POOL_MEMBER", 2039 // F5_SYSTEM integration 2040 F5_SYSTEM: "F5_SYSTEM", 2041 // F5_VIRTUAL_SERVER integration 2042 F5_VIRTUAL_SERVER: "F5_VIRTUAL_SERVER", 2043 // GCP_APP_ENGINE_SERVICE integration 2044 GCP_APP_ENGINE_SERVICE: "GCP_APP_ENGINE_SERVICE", 2045 // GCP_BIG_QUERY_DATA_SET integration 2046 GCP_BIG_QUERY_DATA_SET: "GCP_BIG_QUERY_DATA_SET", 2047 // GCP_BIG_QUERY_PROJECT integration 2048 GCP_BIG_QUERY_PROJECT: "GCP_BIG_QUERY_PROJECT", 2049 // GCP_BIG_QUERY_TABLE integration 2050 GCP_BIG_QUERY_TABLE: "GCP_BIG_QUERY_TABLE", 2051 // GCP_CLOUD_FUNCTION integration 2052 GCP_CLOUD_FUNCTION: "GCP_CLOUD_FUNCTION", 2053 // GCP_CLOUD_SQL integration 2054 GCP_CLOUD_SQL: "GCP_CLOUD_SQL", 2055 // GCP_CLOUD_TASKS_QUEUE integration 2056 GCP_CLOUD_TASKS_QUEUE: "GCP_CLOUD_TASKS_QUEUE", 2057 // GCP_HTTP_LOAD_BALANCER integration 2058 GCP_HTTP_LOAD_BALANCER: "GCP_HTTP_LOAD_BALANCER", 2059 // GCP_INTERNAL_LOAD_BALANCER integration 2060 GCP_INTERNAL_LOAD_BALANCER: "GCP_INTERNAL_LOAD_BALANCER", 2061 // GCP_KUBERNETES_CONTAINER integration 2062 GCP_KUBERNETES_CONTAINER: "GCP_KUBERNETES_CONTAINER", 2063 // GCP_KUBERNETES_NODE integration 2064 GCP_KUBERNETES_NODE: "GCP_KUBERNETES_NODE", 2065 // GCP_KUBERNETES_POD integration 2066 GCP_KUBERNETES_POD: "GCP_KUBERNETES_POD", 2067 // GCP_PUB_SUB_SUBSCRIPTION integration 2068 GCP_PUB_SUB_SUBSCRIPTION: "GCP_PUB_SUB_SUBSCRIPTION", 2069 // GCP_PUB_SUB_TOPIC integration 2070 GCP_PUB_SUB_TOPIC: "GCP_PUB_SUB_TOPIC", 2071 // GCP_SPANNER_DATABASE integration 2072 GCP_SPANNER_DATABASE: "GCP_SPANNER_DATABASE", 2073 // GCP_SPANNER_INSTANCE integration 2074 GCP_SPANNER_INSTANCE: "GCP_SPANNER_INSTANCE", 2075 // GCP_STORAGE_BUCKET integration 2076 GCP_STORAGE_BUCKET: "GCP_STORAGE_BUCKET", 2077 // GCP_TCP_SSL_PROXY_LOAD_BALANCER integration 2078 GCP_TCP_SSL_PROXY_LOAD_BALANCER: "GCP_TCP_SSL_PROXY_LOAD_BALANCER", 2079 // GCP_VIRTUAL_MACHINE_DISK integration 2080 GCP_VIRTUAL_MACHINE_DISK: "GCP_VIRTUAL_MACHINE_DISK", 2081 // KAFKA_BROKER integration 2082 KAFKA_BROKER: "KAFKA_BROKER", 2083 // KAFKA_TOPIC integration 2084 KAFKA_TOPIC: "KAFKA_TOPIC", 2085 // KUBERNETES_CLUSTER integration 2086 KUBERNETES_CLUSTER: "KUBERNETES_CLUSTER", 2087 // MEMCACHED_INSTANCE integration 2088 MEMCACHED_INSTANCE: "MEMCACHED_INSTANCE", 2089 // MSSQL_INSTANCE integration 2090 MSSQL_INSTANCE: "MSSQL_INSTANCE", 2091 // MYSQL_NODE integration 2092 MYSQL_NODE: "MYSQL_NODE", 2093 // NA integration 2094 NA: "NA", 2095 // NGINX_SERVER integration 2096 NGINX_SERVER: "NGINX_SERVER", 2097 // ORACLE_DB_INSTANCE integration 2098 ORACLE_DB_INSTANCE: "ORACLE_DB_INSTANCE", 2099 // POSTGRE_SQL_INSTANCE integration 2100 POSTGRE_SQL_INSTANCE: "POSTGRE_SQL_INSTANCE", 2101 // RABBIT_MQ_CLUSTER integration 2102 RABBIT_MQ_CLUSTER: "RABBIT_MQ_CLUSTER", 2103 // RABBIT_MQ_EXCHANGE integration 2104 RABBIT_MQ_EXCHANGE: "RABBIT_MQ_EXCHANGE", 2105 // RABBIT_MQ_NODE integration 2106 RABBIT_MQ_NODE: "RABBIT_MQ_NODE", 2107 // RABBIT_MQ_QUEUE integration 2108 RABBIT_MQ_QUEUE: "RABBIT_MQ_QUEUE", 2109 // REDIS_INSTANCE integration 2110 REDIS_INSTANCE: "REDIS_INSTANCE", 2111 // VARNISH_INSTANCE integration 2112 VARNISH_INSTANCE: "VARNISH_INSTANCE", 2113 } 2114 2115 // EntityRelationshipEdgeDirection - Values for relationship direction filter. 2116 type EntityRelationshipEdgeDirection string 2117 2118 var EntityRelationshipEdgeDirectionTypes = struct { 2119 // Traverse both inbound and outbound connections. 2120 BOTH EntityRelationshipEdgeDirection 2121 // Traverse inbound connections to the source of the relationship. 2122 INBOUND EntityRelationshipEdgeDirection 2123 // Traverse outbound connections to the target of the relationship. 2124 OUTBOUND EntityRelationshipEdgeDirection 2125 }{ 2126 // Traverse both inbound and outbound connections. 2127 BOTH: "BOTH", 2128 // Traverse inbound connections to the source of the relationship. 2129 INBOUND: "INBOUND", 2130 // Traverse outbound connections to the target of the relationship. 2131 OUTBOUND: "OUTBOUND", 2132 } 2133 2134 // EntityRelationshipEdgeType - The type of the relationship. 2135 type EntityRelationshipEdgeType string 2136 2137 var EntityRelationshipEdgeTypeTypes = struct { 2138 // The target entity contains the code for the source entity. 2139 BUILT_FROM EntityRelationshipEdgeType 2140 // The source entity calls the target entity. 2141 CALLS EntityRelationshipEdgeType 2142 // The source entity has a connection to the target entity. 2143 CONNECTS_TO EntityRelationshipEdgeType 2144 // The source entity contains the target entity. 2145 CONTAINS EntityRelationshipEdgeType 2146 // The source entity hosts the target. 2147 HOSTS EntityRelationshipEdgeType 2148 // The source and target entities are perspectives on the same thing. 2149 IS EntityRelationshipEdgeType 2150 // The source is an Application that serves the target Browser application. 2151 SERVES EntityRelationshipEdgeType 2152 }{ 2153 // The target entity contains the code for the source entity. 2154 BUILT_FROM: "BUILT_FROM", 2155 // The source entity calls the target entity. 2156 CALLS: "CALLS", 2157 // The source entity has a connection to the target entity. 2158 CONNECTS_TO: "CONNECTS_TO", 2159 // The source entity contains the target entity. 2160 CONTAINS: "CONTAINS", 2161 // The source entity hosts the target. 2162 HOSTS: "HOSTS", 2163 // The source and target entities are perspectives on the same thing. 2164 IS: "IS", 2165 // The source is an Application that serves the target Browser application. 2166 SERVES: "SERVES", 2167 } 2168 2169 // EntityRelationshipType - The type of the relationship. 2170 // 2171 // For details, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 2172 type EntityRelationshipType string 2173 2174 var EntityRelationshipTypeTypes = struct { 2175 // The source repository containing the code for the target 2176 BUILT_FROM EntityRelationshipType 2177 // The source entity calls the target entity. 2178 CALLS EntityRelationshipType 2179 // The source establishes TCP connections to the target 2180 CONNECTS_TO EntityRelationshipType 2181 // The source entity contains the target entity 2182 CONTAINS EntityRelationshipType 2183 // The source entity hosts the target 2184 HOSTS EntityRelationshipType 2185 // The source and target entities are perspectives on the same thing 2186 IS EntityRelationshipType 2187 // The source is an Application that serves the target Browser application 2188 SERVES EntityRelationshipType 2189 // Type not known 2190 UNKNOWN EntityRelationshipType 2191 }{ 2192 // The source repository containing the code for the target 2193 BUILT_FROM: "BUILT_FROM", 2194 // The source entity calls the target entity. 2195 CALLS: "CALLS", 2196 // The source establishes TCP connections to the target 2197 CONNECTS_TO: "CONNECTS_TO", 2198 // The source entity contains the target entity 2199 CONTAINS: "CONTAINS", 2200 // The source entity hosts the target 2201 HOSTS: "HOSTS", 2202 // The source and target entities are perspectives on the same thing 2203 IS: "IS", 2204 // The source is an Application that serves the target Browser application 2205 SERVES: "SERVES", 2206 // Type not known 2207 UNKNOWN: "UNKNOWN", 2208 } 2209 2210 // EntitySearchCountsFacet - Possible entity search count facets. 2211 type EntitySearchCountsFacet string 2212 2213 var EntitySearchCountsFacetTypes = struct { 2214 // Facet by account id. 2215 ACCOUNT_ID EntitySearchCountsFacet 2216 // Facet by alert severity. 2217 ALERT_SEVERITY EntitySearchCountsFacet 2218 // Facet by entity domain. 2219 DOMAIN EntitySearchCountsFacet 2220 // Facet by entity domain and entity type. 2221 DOMAIN_TYPE EntitySearchCountsFacet 2222 // Facet by entity name 2223 NAME EntitySearchCountsFacet 2224 // Facet by reporting state. 2225 REPORTING EntitySearchCountsFacet 2226 // Facet by entity type. 2227 TYPE EntitySearchCountsFacet 2228 }{ 2229 // Facet by account id. 2230 ACCOUNT_ID: "ACCOUNT_ID", 2231 // Facet by alert severity. 2232 ALERT_SEVERITY: "ALERT_SEVERITY", 2233 // Facet by entity domain. 2234 DOMAIN: "DOMAIN", 2235 // Facet by entity domain and entity type. 2236 DOMAIN_TYPE: "DOMAIN_TYPE", 2237 // Facet by entity name 2238 NAME: "NAME", 2239 // Facet by reporting state. 2240 REPORTING: "REPORTING", 2241 // Facet by entity type. 2242 TYPE: "TYPE", 2243 } 2244 2245 // EntitySearchGroupingAttribute - Entity attributes to group by. 2246 type EntitySearchGroupingAttribute string 2247 2248 var EntitySearchGroupingAttributeTypes = struct { 2249 // Group by account id. 2250 ACCOUNT_ID EntitySearchGroupingAttribute 2251 // Group by alert severity. 2252 ALERT_SEVERITY EntitySearchGroupingAttribute 2253 // Group by entity domain. 2254 DOMAIN EntitySearchGroupingAttribute 2255 // Group by entity domain and entity type. 2256 DOMAIN_TYPE EntitySearchGroupingAttribute 2257 // Group by entity name 2258 NAME EntitySearchGroupingAttribute 2259 // Group by reporting state. 2260 REPORTING EntitySearchGroupingAttribute 2261 // Group by entity type. 2262 TYPE EntitySearchGroupingAttribute 2263 }{ 2264 // Group by account id. 2265 ACCOUNT_ID: "ACCOUNT_ID", 2266 // Group by alert severity. 2267 ALERT_SEVERITY: "ALERT_SEVERITY", 2268 // Group by entity domain. 2269 DOMAIN: "DOMAIN", 2270 // Group by entity domain and entity type. 2271 DOMAIN_TYPE: "DOMAIN_TYPE", 2272 // Group by entity name 2273 NAME: "NAME", 2274 // Group by reporting state. 2275 REPORTING: "REPORTING", 2276 // Group by entity type. 2277 TYPE: "TYPE", 2278 } 2279 2280 // EntitySearchQueryBuilderDomain - The domain to search 2281 type EntitySearchQueryBuilderDomain string 2282 2283 var EntitySearchQueryBuilderDomainTypes = struct { 2284 // Any APM entity 2285 APM EntitySearchQueryBuilderDomain 2286 // Any Browser entity 2287 BROWSER EntitySearchQueryBuilderDomain 2288 // Any External entity 2289 EXT EntitySearchQueryBuilderDomain 2290 // Any Infrastructure entity 2291 INFRA EntitySearchQueryBuilderDomain 2292 // Any Mobile entity 2293 MOBILE EntitySearchQueryBuilderDomain 2294 // Any Synthetics entity 2295 SYNTH EntitySearchQueryBuilderDomain 2296 }{ 2297 // Any APM entity 2298 APM: "APM", 2299 // Any Browser entity 2300 BROWSER: "BROWSER", 2301 // Any External entity 2302 EXT: "EXT", 2303 // Any Infrastructure entity 2304 INFRA: "INFRA", 2305 // Any Mobile entity 2306 MOBILE: "MOBILE", 2307 // Any Synthetics entity 2308 SYNTH: "SYNTH", 2309 } 2310 2311 // EntitySearchQueryBuilderType - The type of entity 2312 type EntitySearchQueryBuilderType string 2313 2314 var EntitySearchQueryBuilderTypeTypes = struct { 2315 // An application 2316 APPLICATION EntitySearchQueryBuilderType 2317 // A dashboard 2318 DASHBOARD EntitySearchQueryBuilderType 2319 // A host 2320 HOST EntitySearchQueryBuilderType 2321 // A monitor 2322 MONITOR EntitySearchQueryBuilderType 2323 // A service 2324 SERVICE EntitySearchQueryBuilderType 2325 // A workload 2326 WORKLOAD EntitySearchQueryBuilderType 2327 }{ 2328 // An application 2329 APPLICATION: "APPLICATION", 2330 // A dashboard 2331 DASHBOARD: "DASHBOARD", 2332 // A host 2333 HOST: "HOST", 2334 // A monitor 2335 MONITOR: "MONITOR", 2336 // A service 2337 SERVICE: "SERVICE", 2338 // A workload 2339 WORKLOAD: "WORKLOAD", 2340 } 2341 2342 // EntitySearchSortCriteria - Possible entity sorting criteria. 2343 type EntitySearchSortCriteria string 2344 2345 var EntitySearchSortCriteriaTypes = struct { 2346 // Sort by alert severity. 2347 ALERT_SEVERITY EntitySearchSortCriteria 2348 // Sort by entity domain. 2349 DOMAIN EntitySearchSortCriteria 2350 // Sort by relevance. Note that these results can't be paginated. 2351 MOST_RELEVANT EntitySearchSortCriteria 2352 // Sort by entity name. 2353 NAME EntitySearchSortCriteria 2354 // Sort by reporting state. 2355 REPORTING EntitySearchSortCriteria 2356 // Sort by entity type. 2357 TYPE EntitySearchSortCriteria 2358 }{ 2359 // Sort by alert severity. 2360 ALERT_SEVERITY: "ALERT_SEVERITY", 2361 // Sort by entity domain. 2362 DOMAIN: "DOMAIN", 2363 // Sort by relevance. Note that these results can't be paginated. 2364 MOST_RELEVANT: "MOST_RELEVANT", 2365 // Sort by entity name. 2366 NAME: "NAME", 2367 // Sort by reporting state. 2368 REPORTING: "REPORTING", 2369 // Sort by entity type. 2370 TYPE: "TYPE", 2371 } 2372 2373 // EntitySummaryMetricUnit - The different units that can be used to express summary metrics. 2374 type EntitySummaryMetricUnit string 2375 2376 var EntitySummaryMetricUnitTypes = struct { 2377 // Apdex (Application Performance Index). 2378 APDEX EntitySummaryMetricUnit 2379 // Bits. 2380 BITS EntitySummaryMetricUnit 2381 // Bits per second. 2382 BITS_PER_SECOND EntitySummaryMetricUnit 2383 // Bytes. 2384 BYTES EntitySummaryMetricUnit 2385 // Bytes per second. 2386 BYTES_PER_SECOND EntitySummaryMetricUnit 2387 // Degrees celsius. 2388 CELSIUS EntitySummaryMetricUnit 2389 // Count. 2390 COUNT EntitySummaryMetricUnit 2391 // Hertz. 2392 HERTZ EntitySummaryMetricUnit 2393 // Messages per second. 2394 MESSAGES_PER_SECOND EntitySummaryMetricUnit 2395 // Operations per second. 2396 OPERATIONS_PER_SECOND EntitySummaryMetricUnit 2397 // Pages loaded per second. 2398 PAGES_PER_SECOND EntitySummaryMetricUnit 2399 // Percentage. 2400 PERCENTAGE EntitySummaryMetricUnit 2401 // Requests received per second. 2402 REQUESTS_PER_SECOND EntitySummaryMetricUnit 2403 // Seconds. 2404 SECONDS EntitySummaryMetricUnit 2405 // String. 2406 STRING EntitySummaryMetricUnit 2407 // Timestamp. 2408 TIMESTAMP EntitySummaryMetricUnit 2409 }{ 2410 // Apdex (Application Performance Index). 2411 APDEX: "APDEX", 2412 // Bits. 2413 BITS: "BITS", 2414 // Bits per second. 2415 BITS_PER_SECOND: "BITS_PER_SECOND", 2416 // Bytes. 2417 BYTES: "BYTES", 2418 // Bytes per second. 2419 BYTES_PER_SECOND: "BYTES_PER_SECOND", 2420 // Degrees celsius. 2421 CELSIUS: "CELSIUS", 2422 // Count. 2423 COUNT: "COUNT", 2424 // Hertz. 2425 HERTZ: "HERTZ", 2426 // Messages per second. 2427 MESSAGES_PER_SECOND: "MESSAGES_PER_SECOND", 2428 // Operations per second. 2429 OPERATIONS_PER_SECOND: "OPERATIONS_PER_SECOND", 2430 // Pages loaded per second. 2431 PAGES_PER_SECOND: "PAGES_PER_SECOND", 2432 // Percentage. 2433 PERCENTAGE: "PERCENTAGE", 2434 // Requests received per second. 2435 REQUESTS_PER_SECOND: "REQUESTS_PER_SECOND", 2436 // Seconds. 2437 SECONDS: "SECONDS", 2438 // String. 2439 STRING: "STRING", 2440 // Timestamp. 2441 TIMESTAMP: "TIMESTAMP", 2442 } 2443 2444 // EntityType - The specific type of entity 2445 type EntityType string 2446 2447 var EntityTypeTypes = struct { 2448 // An APM Application 2449 APM_APPLICATION_ENTITY EntityType 2450 // A database instance seen by an APM Application 2451 APM_DATABASE_INSTANCE_ENTITY EntityType 2452 // An external service seen by an APM Application 2453 APM_EXTERNAL_SERVICE_ENTITY EntityType 2454 // A Browser Application 2455 BROWSER_APPLICATION_ENTITY EntityType 2456 // A Dashboard entity 2457 DASHBOARD_ENTITY EntityType 2458 // An External entity. For more information about defining External entities, see the [open source documentation](https://github.com/newrelic-experimental/entity-synthesis-definitions). 2459 EXTERNAL_ENTITY EntityType 2460 // A Generic entity with no detailed data 2461 GENERIC_ENTITY EntityType 2462 // An Infrastructure entity 2463 GENERIC_INFRASTRUCTURE_ENTITY EntityType 2464 // An Infrastructure Integration AWS Lambda Function entity 2465 INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY EntityType 2466 // An Infrastructure Host entity 2467 INFRASTRUCTURE_HOST_ENTITY EntityType 2468 // A Mobile Application 2469 MOBILE_APPLICATION_ENTITY EntityType 2470 // A Secure Credential entity 2471 SECURE_CREDENTIAL_ENTITY EntityType 2472 // A Synthetic Monitor entity 2473 SYNTHETIC_MONITOR_ENTITY EntityType 2474 // A Third Party Service entity 2475 THIRD_PARTY_SERVICE_ENTITY EntityType 2476 // A entity that is unavailable 2477 UNAVAILABLE_ENTITY EntityType 2478 // A Workload entity 2479 WORKLOAD_ENTITY EntityType 2480 }{ 2481 // An APM Application 2482 APM_APPLICATION_ENTITY: "APM_APPLICATION_ENTITY", 2483 // A database instance seen by an APM Application 2484 APM_DATABASE_INSTANCE_ENTITY: "APM_DATABASE_INSTANCE_ENTITY", 2485 // An external service seen by an APM Application 2486 APM_EXTERNAL_SERVICE_ENTITY: "APM_EXTERNAL_SERVICE_ENTITY", 2487 // A Browser Application 2488 BROWSER_APPLICATION_ENTITY: "BROWSER_APPLICATION_ENTITY", 2489 // A Dashboard entity 2490 DASHBOARD_ENTITY: "DASHBOARD_ENTITY", 2491 // An External entity. For more information about defining External entities, see the [open source documentation](https://github.com/newrelic-experimental/entity-synthesis-definitions). 2492 EXTERNAL_ENTITY: "EXTERNAL_ENTITY", 2493 // A Generic entity with no detailed data 2494 GENERIC_ENTITY: "GENERIC_ENTITY", 2495 // An Infrastructure entity 2496 GENERIC_INFRASTRUCTURE_ENTITY: "GENERIC_INFRASTRUCTURE_ENTITY", 2497 // An Infrastructure Integration AWS Lambda Function entity 2498 INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY: "INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY", 2499 // An Infrastructure Host entity 2500 INFRASTRUCTURE_HOST_ENTITY: "INFRASTRUCTURE_HOST_ENTITY", 2501 // A Mobile Application 2502 MOBILE_APPLICATION_ENTITY: "MOBILE_APPLICATION_ENTITY", 2503 // A Secure Credential entity 2504 SECURE_CREDENTIAL_ENTITY: "SECURE_CREDENTIAL_ENTITY", 2505 // A Synthetic Monitor entity 2506 SYNTHETIC_MONITOR_ENTITY: "SYNTHETIC_MONITOR_ENTITY", 2507 // A Third Party Service entity 2508 THIRD_PARTY_SERVICE_ENTITY: "THIRD_PARTY_SERVICE_ENTITY", 2509 // A entity that is unavailable 2510 UNAVAILABLE_ENTITY: "UNAVAILABLE_ENTITY", 2511 // A Workload entity 2512 WORKLOAD_ENTITY: "WORKLOAD_ENTITY", 2513 } 2514 2515 // ErrorTrackingErrorGroupState - Current state of the error group. 2516 type ErrorTrackingErrorGroupState string 2517 2518 var ErrorTrackingErrorGroupStateTypes = struct { 2519 // Error group is ignored. 2520 IGNORED ErrorTrackingErrorGroupState 2521 // Error group is resolved. 2522 RESOLVED ErrorTrackingErrorGroupState 2523 // Error group is unresolved. 2524 UNRESOLVED ErrorTrackingErrorGroupState 2525 }{ 2526 // Error group is ignored. 2527 IGNORED: "IGNORED", 2528 // Error group is resolved. 2529 RESOLVED: "RESOLVED", 2530 // Error group is unresolved. 2531 UNRESOLVED: "UNRESOLVED", 2532 } 2533 2534 // ErrorTrackingNotificationDestination - Notification Destination type 2535 type ErrorTrackingNotificationDestination string 2536 2537 var ErrorTrackingNotificationDestinationTypes = struct { 2538 // Jira Classic destination 2539 JIRA_CLASSIC ErrorTrackingNotificationDestination 2540 // Slack destination 2541 SLACK ErrorTrackingNotificationDestination 2542 }{ 2543 // Jira Classic destination 2544 JIRA_CLASSIC: "JIRA_CLASSIC", 2545 // Slack destination 2546 SLACK: "SLACK", 2547 } 2548 2549 // ErrorTrackingNotificationEventStatus - Notification Event Status type 2550 type ErrorTrackingNotificationEventStatus string 2551 2552 var ErrorTrackingNotificationEventStatusTypes = struct { 2553 // Failed 2554 FAIL ErrorTrackingNotificationEventStatus 2555 // Successful 2556 SUCCESS ErrorTrackingNotificationEventStatus 2557 }{ 2558 // Failed 2559 FAIL: "FAIL", 2560 // Successful 2561 SUCCESS: "SUCCESS", 2562 } 2563 2564 type FeatureFlagContext string 2565 2566 var FeatureFlagContextTypes = struct { 2567 ACCOUNT FeatureFlagContext 2568 CRITERIA FeatureFlagContext 2569 NR_ADMIN FeatureFlagContext 2570 USER FeatureFlagContext 2571 }{ 2572 ACCOUNT: "ACCOUNT", 2573 CRITERIA: "CRITERIA", 2574 NR_ADMIN: "NR_ADMIN", 2575 USER: "USER", 2576 } 2577 2578 // InfrastructureAgentInstrumentationStrategy - The strategy for how we can instrument this service 2579 type InfrastructureAgentInstrumentationStrategy string 2580 2581 var InfrastructureAgentInstrumentationStrategyTypes = struct { 2582 // Instrumentation strategy: New Relic Java Agent. InfrastructureEvent strategy value: java_apm 2583 JAVAAPM InfrastructureAgentInstrumentationStrategy 2584 // Instrumentation strategy: Java Flight Recorder. InfrastructureEvent strategy value: jfr 2585 JFR InfrastructureAgentInstrumentationStrategy 2586 // Instrumentation strategy: Jafa Flight Recorder-Daemon. InfrastructureEvent strategy value: jfrd 2587 JFRD InfrastructureAgentInstrumentationStrategy 2588 // Instrumentation strategy: Java Management Extensions. InfrastructureEvent strategy value: jmx 2589 JMX InfrastructureAgentInstrumentationStrategy 2590 }{ 2591 // Instrumentation strategy: New Relic Java Agent. InfrastructureEvent strategy value: java_apm 2592 JAVAAPM: "JAVAAPM", 2593 // Instrumentation strategy: Java Flight Recorder. InfrastructureEvent strategy value: jfr 2594 JFR: "JFR", 2595 // Instrumentation strategy: Jafa Flight Recorder-Daemon. InfrastructureEvent strategy value: jfrd 2596 JFRD: "JFRD", 2597 // Instrumentation strategy: Java Management Extensions. InfrastructureEvent strategy value: jmx 2598 JMX: "JMX", 2599 } 2600 2601 // InfrastructureAgentServiceStatus - The status of an individual service 2602 type InfrastructureAgentServiceStatus string 2603 2604 var InfrastructureAgentServiceStatusTypes = struct { 2605 // The service is being instrumented 2606 INSTRUMENTED InfrastructureAgentServiceStatus 2607 // Known service status 2608 KNOWN InfrastructureAgentServiceStatus 2609 }{ 2610 // The service is being instrumented 2611 INSTRUMENTED: "INSTRUMENTED", 2612 // Known service status 2613 KNOWN: "KNOWN", 2614 } 2615 2616 // MetricNormalizationRuleAction - The different rule actions. 2617 type MetricNormalizationRuleAction string 2618 2619 var MetricNormalizationRuleActionTypes = struct { 2620 // Deny new metrics. 2621 DENY_NEW_METRICS MetricNormalizationRuleAction 2622 // Ignore matching metrics. 2623 IGNORE MetricNormalizationRuleAction 2624 // Replace metrics. 2625 REPLACE MetricNormalizationRuleAction 2626 }{ 2627 // Deny new metrics. 2628 DENY_NEW_METRICS: "DENY_NEW_METRICS", 2629 // Ignore matching metrics. 2630 IGNORE: "IGNORE", 2631 // Replace metrics. 2632 REPLACE: "REPLACE", 2633 } 2634 2635 // RelatedExternalsDirection - The direction of a connected entity. 2636 type RelatedExternalsDirection string 2637 2638 var RelatedExternalsDirectionTypes = struct { 2639 // A downstream dependency. 2640 DOWNSTREAM RelatedExternalsDirection 2641 // The entity at the center of these dependencies. 2642 FOCAL_ENTITY RelatedExternalsDirection 2643 // An upstream dependency. 2644 UPSTREAM RelatedExternalsDirection 2645 }{ 2646 // A downstream dependency. 2647 DOWNSTREAM: "DOWNSTREAM", 2648 // The entity at the center of these dependencies. 2649 FOCAL_ENTITY: "FOCAL_ENTITY", 2650 // An upstream dependency. 2651 UPSTREAM: "UPSTREAM", 2652 } 2653 2654 // SortBy - The `SortBy` enum is for designating sort order. 2655 type SortBy string 2656 2657 var SortByTypes = struct { 2658 // Sort in ascending order. 2659 ASC SortBy 2660 // Sort in descending order. 2661 DESC SortBy 2662 }{ 2663 // Sort in ascending order. 2664 ASC: "ASC", 2665 // Sort in descending order. 2666 DESC: "DESC", 2667 } 2668 2669 // SyntheticMonitorCheckStatus - The status of a synthetic monitor check. 2670 type SyntheticMonitorCheckStatus string 2671 2672 var SyntheticMonitorCheckStatusTypes = struct { 2673 // Failed check 2674 FAILED SyntheticMonitorCheckStatus 2675 // Successful check 2676 SUCCESS SyntheticMonitorCheckStatus 2677 }{ 2678 // Failed check 2679 FAILED: "FAILED", 2680 // Successful check 2681 SUCCESS: "SUCCESS", 2682 } 2683 2684 type SyntheticMonitorStatus string 2685 2686 var SyntheticMonitorStatusTypes = struct { 2687 DELETED SyntheticMonitorStatus 2688 DISABLED SyntheticMonitorStatus 2689 ENABLED SyntheticMonitorStatus 2690 FAULTY SyntheticMonitorStatus 2691 MUTED SyntheticMonitorStatus 2692 PAUSED SyntheticMonitorStatus 2693 }{ 2694 DELETED: "DELETED", 2695 DISABLED: "DISABLED", 2696 ENABLED: "ENABLED", 2697 FAULTY: "FAULTY", 2698 MUTED: "MUTED", 2699 PAUSED: "PAUSED", 2700 } 2701 2702 // SyntheticMonitorType - The types of Synthetic Monitors. 2703 type SyntheticMonitorType string 2704 2705 var SyntheticMonitorTypeTypes = struct { 2706 BROWSER SyntheticMonitorType 2707 CERT_CHECK SyntheticMonitorType 2708 SCRIPT_API SyntheticMonitorType 2709 SCRIPT_BROWSER SyntheticMonitorType 2710 SIMPLE SyntheticMonitorType 2711 STEP_MONITOR SyntheticMonitorType 2712 }{ 2713 BROWSER: "BROWSER", 2714 CERT_CHECK: "CERT_CHECK", 2715 SCRIPT_API: "SCRIPT_API", 2716 SCRIPT_BROWSER: "SCRIPT_BROWSER", 2717 SIMPLE: "SIMPLE", 2718 STEP_MONITOR: "STEP_MONITOR", 2719 } 2720 2721 // TaggingMutationErrorType - The different types of errors the API can return. 2722 type TaggingMutationErrorType string 2723 2724 var TaggingMutationErrorTypeTypes = struct { 2725 // Too many concurrent tasks for the same GUID are being sent and we cannot process. Please serialize your requests for the given GUID. 2726 CONCURRENT_TASK_EXCEPTION TaggingMutationErrorType 2727 // Domain Type invalid. The decoded domain type from the provided GUID is not valid. Please provide a correct GUID. 2728 INVALID_DOMAIN_TYPE TaggingMutationErrorType 2729 // We could not decode the provided GUID. Entity guid needs to be base64 encoded. 2730 INVALID_ENTITY_GUID TaggingMutationErrorType 2731 // The tag key is not valid. Char length has been reached, contains a disallowed character(eg :) or is empty 2732 INVALID_KEY TaggingMutationErrorType 2733 // The tag value is not valid. Char length has been reached, contains a disallowed character(eg :) or is empty 2734 INVALID_VALUE TaggingMutationErrorType 2735 // The given GUID or tag you're looking for does not exist. 2736 NOT_FOUND TaggingMutationErrorType 2737 // You've attempted to do something your Domain/EntityType is not permitted to do. Its also possible that an api key is required. 2738 NOT_PERMITTED TaggingMutationErrorType 2739 // One of the query filters exceeds the character limit. 2740 TOO_MANY_CHARS_QUERY_FILTER TaggingMutationErrorType 2741 // The given entity has reached its tag key count limit. You will need to delete existing tags for the given GUID before continuing. 2742 TOO_MANY_TAG_KEYS TaggingMutationErrorType 2743 // The given entity has reached its tag value count limit. You will need to delete existing values for the given GUID before continuing. 2744 TOO_MANY_TAG_VALUES TaggingMutationErrorType 2745 // The changes will be reflected in the entity with some delay 2746 UPDATE_WILL_BE_DELAYED TaggingMutationErrorType 2747 }{ 2748 // Too many concurrent tasks for the same GUID are being sent and we cannot process. Please serialize your requests for the given GUID. 2749 CONCURRENT_TASK_EXCEPTION: "CONCURRENT_TASK_EXCEPTION", 2750 // Domain Type invalid. The decoded domain type from the provided GUID is not valid. Please provide a correct GUID. 2751 INVALID_DOMAIN_TYPE: "INVALID_DOMAIN_TYPE", 2752 // We could not decode the provided GUID. Entity guid needs to be base64 encoded. 2753 INVALID_ENTITY_GUID: "INVALID_ENTITY_GUID", 2754 // The tag key is not valid. Char length has been reached, contains a disallowed character(eg :) or is empty 2755 INVALID_KEY: "INVALID_KEY", 2756 // The tag value is not valid. Char length has been reached, contains a disallowed character(eg :) or is empty 2757 INVALID_VALUE: "INVALID_VALUE", 2758 // The given GUID or tag you're looking for does not exist. 2759 NOT_FOUND: "NOT_FOUND", 2760 // You've attempted to do something your Domain/EntityType is not permitted to do. Its also possible that an api key is required. 2761 NOT_PERMITTED: "NOT_PERMITTED", 2762 // One of the query filters exceeds the character limit. 2763 TOO_MANY_CHARS_QUERY_FILTER: "TOO_MANY_CHARS_QUERY_FILTER", 2764 // The given entity has reached its tag key count limit. You will need to delete existing tags for the given GUID before continuing. 2765 TOO_MANY_TAG_KEYS: "TOO_MANY_TAG_KEYS", 2766 // The given entity has reached its tag value count limit. You will need to delete existing values for the given GUID before continuing. 2767 TOO_MANY_TAG_VALUES: "TOO_MANY_TAG_VALUES", 2768 // The changes will be reflected in the entity with some delay 2769 UPDATE_WILL_BE_DELAYED: "UPDATE_WILL_BE_DELAYED", 2770 } 2771 2772 // WorkloadStatusSource - Indicates where the status value derives from. 2773 type WorkloadStatusSource string 2774 2775 var WorkloadStatusSourceTypes = struct { 2776 // Refers to the result of an automatic rule defined for a workload. 2777 ROLLUP_RULE WorkloadStatusSource 2778 // Refers to a static status defined for a workload. 2779 STATIC WorkloadStatusSource 2780 // Refers to an undetermined status source. 2781 UNKNOWN WorkloadStatusSource 2782 // 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. 2783 WORKLOAD WorkloadStatusSource 2784 }{ 2785 // Refers to the result of an automatic rule defined for a workload. 2786 ROLLUP_RULE: "ROLLUP_RULE", 2787 // Refers to a static status defined for a workload. 2788 STATIC: "STATIC", 2789 // Refers to an undetermined status source. 2790 UNKNOWN: "UNKNOWN", 2791 // 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. 2792 WORKLOAD: "WORKLOAD", 2793 } 2794 2795 // 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. 2796 type WorkloadStatusValue string 2797 2798 var WorkloadStatusValueTypes = struct { 2799 // The status of the workload is degraded. 2800 DEGRADED WorkloadStatusValue 2801 // The status of the workload is disrupted. 2802 DISRUPTED WorkloadStatusValue 2803 // The status of the workload is operational. 2804 OPERATIONAL WorkloadStatusValue 2805 // The status of the workload is unknown. 2806 UNKNOWN WorkloadStatusValue 2807 }{ 2808 // The status of the workload is degraded. 2809 DEGRADED: "DEGRADED", 2810 // The status of the workload is disrupted. 2811 DISRUPTED: "DISRUPTED", 2812 // The status of the workload is operational. 2813 OPERATIONAL: "OPERATIONAL", 2814 // The status of the workload is unknown. 2815 UNKNOWN: "UNKNOWN", 2816 } 2817 2818 type AccountAccessInfo struct { 2819 Capabilities []Capability `json:"capabilities,omitempty"` 2820 Entitlements []AccountEntitlement `json:"entitlements,omitempty"` 2821 // These Feature Flags will be evaluated differently depending on their context: 2822 // * `currentUser.currentAccount` - Current User ID, current Account ID, NR admin 2823 // * `currentUser.account(id: N)` - Current User ID, given Account ID, NR admin 2824 // * `user(id: N).account(id: N)` - Given User ID, given Account ID, NR admin 2825 // * `account(id: N)` - Just the given Account ID 2826 FeatureFlags []FeatureFlag `json:"featureFlags,omitempty"` 2827 ID int `json:"id,omitempty"` 2828 InRegion bool `json:"inRegion,omitempty"` 2829 Name string `json:"name,omitempty"` 2830 Parent ParentAccountInfo `json:"parent,omitempty"` 2831 Region Region `json:"region,omitempty"` 2832 // Returns event types that are currently reporting in the account. 2833 ReportingEventTypes []string `json:"reportingEventTypes,omitempty"` 2834 } 2835 2836 type AccountEntitlement struct { 2837 Name string `json:"name,omitempty"` 2838 } 2839 2840 type AccountEntitlementFilter struct { 2841 Names []string `json:"names"` 2842 } 2843 2844 // Actor - The `Actor` object contains fields that are scoped to the API user's access level. 2845 type Actor struct { 2846 // Fetch a list of entities. 2847 // 2848 // You can fetch a max of 25 entities in one query. 2849 // 2850 // 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). 2851 Entities []EntityInterface `json:"entities,omitempty"` 2852 // Fetch a single entity. 2853 // 2854 // 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). 2855 Entity EntityInterface `json:"entity,omitempty"` 2856 // Search for entities using a custom query. 2857 // 2858 // For more details on how to create a custom query 2859 // and what entity data you can request, visit our 2860 // [entity docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). 2861 // 2862 // Note: you must supply either a `query` OR a `queryBuilder` argument, not both. 2863 EntitySearch EntitySearch `json:"entitySearch,omitempty"` 2864 // Contains information about the entity types specified in the `entityTypes` argument. 2865 EntityTypes []EntityTypeResults `json:"entityTypes,omitempty"` 2866 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 2867 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 2868 } 2869 2870 // AgentApplicationSettingsApmBase - Settings that are applicable to APM applications and their agents. 2871 type AgentApplicationSettingsApmBase struct { 2872 // The name for the application 2873 Alias string `json:"alias,omitempty"` 2874 // General settings for the application can be accessed via this field. 2875 ApmConfig AgentApplicationSettingsApmConfig `json:"apmConfig"` 2876 // Application settings regarding how events are handled with NRDB can be accessed via this field. 2877 DataManagement AgentApplicationSettingsDataManagement `json:"dataManagement"` 2878 // Error Collector settings for the application can be accessed via this field. The error collector captures information about uncaught exceptions and sends them to New Relic for viewing. 2879 ErrorCollector AgentApplicationSettingsErrorCollector `json:"errorCollector,omitempty"` 2880 // In APM, when transaction traces are collected, there may be additional Slow query data available. 2881 SlowSql AgentApplicationSettingsSlowSql `json:"slowSql,omitempty"` 2882 // Thread profiler measures wall clock time, CPU time, and method call counts in your application's threads as they run. 2883 ThreadProfiler AgentApplicationSettingsThreadProfiler `json:"threadProfiler,omitempty"` 2884 // Type of tracer used. APM's cross application tracing link 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. 2885 TracerType AgentApplicationSettingsTracer `json:"tracerType,omitempty"` 2886 // Transaction Tracer settings for the application can be accessed via this field. 2887 TransactionTracer AgentApplicationSettingsTransactionTracer `json:"transactionTracer,omitempty"` 2888 } 2889 2890 // AgentApplicationSettingsApmConfig - General settings related to APM applications. 2891 type AgentApplicationSettingsApmConfig struct { 2892 // The desired target for the APDEX measurement of this APM application. 2893 ApdexTarget float64 `json:"apdexTarget,omitempty"` 2894 // Should agents for this APM application get some of their configuration from the server. 2895 UseServerSideConfig bool `json:"useServerSideConfig,omitempty"` 2896 } 2897 2898 // AgentApplicationSettingsBrowserBase - Settings that are applicable to browser applications. 2899 type AgentApplicationSettingsBrowserBase struct { 2900 // General settings for the application can be accessed via this field. 2901 BrowserConfig AgentApplicationSettingsBrowserConfig `json:"browserConfig"` 2902 // 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. 2903 BrowserMonitoring AgentApplicationSettingsBrowserMonitoring `json:"browserMonitoring"` 2904 // Application settings regarding how events are handled with NRDB can be accessed via this field. 2905 DataManagement AgentApplicationSettingsDataManagement `json:"dataManagement"` 2906 } 2907 2908 // AgentApplicationSettingsBrowserConfig - General settings related to APM applications. 2909 type AgentApplicationSettingsBrowserConfig struct { 2910 // The desired target for the APDEX measurement of this browser application. 2911 ApdexTarget float64 `json:"apdexTarget,omitempty"` 2912 } 2913 2914 // 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. 2915 type AgentApplicationSettingsBrowserDistributedTracing struct { 2916 // Whether or not Distributed Tracing is enabled. 2917 Enabled bool `json:"enabled,omitempty"` 2918 } 2919 2920 // AgentApplicationSettingsBrowserMonitoring - Browser monitoring. 2921 type AgentApplicationSettingsBrowserMonitoring struct { 2922 // If you use browser to monitor end-user browser activity, you can now see end-user-originating browser-side traces in distributed tracing. 2923 DistributedTracing AgentApplicationSettingsBrowserDistributedTracing `json:"distributedTracing"` 2924 // The type of browser agent that will be loaded. 2925 Loader AgentApplicationSettingsBrowserLoader `json:"loader"` 2926 // Browser monitoring's page load timing feature can track sessions by using cookies that contain a simple session identifier. 2927 Privacy AgentApplicationSettingsBrowserPrivacy `json:"privacy"` 2928 } 2929 2930 // AgentApplicationSettingsBrowserPrivacy - Browser privacy. See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/page-load-timing-resources/cookie-collection-session-tracking/) for further information. 2931 type AgentApplicationSettingsBrowserPrivacy struct { 2932 // Whether or not cookies are enabled. 2933 CookiesEnabled bool `json:"cookiesEnabled"` 2934 } 2935 2936 // AgentApplicationSettingsDataManagement - Settings related to the management of Transaction data sent to NRDB. 2937 type AgentApplicationSettingsDataManagement struct { 2938 // Should transaction events be sent to the internal stream. 2939 SendTransactionEventsToInternalStream bool `json:"sendTransactionEventsToInternalStream,omitempty"` 2940 } 2941 2942 // AgentApplicationSettingsErrorCollector - The error collector captures information about uncaught exceptions and sends them to New Relic for viewing. For more information about what these settings do and which ones are applicable for your application, please see docs.newrelic.com for more information about agent configuration for your language agent. 2943 type AgentApplicationSettingsErrorCollector struct { 2944 // Enable error collector 2945 Enabled bool `json:"enabled,omitempty"` 2946 // Prevents specified exception classes from affecting error rate or Apdex score while still reporting the errors to APM. 2947 ExpectedErrorClasses []string `json:"expectedErrorClasses"` 2948 // A list comprised of individual and dashed ranges of HTTP status codes to be marked as expected and thus prevented from affecting error rate or Apdex score. 2949 ExpectedErrorCodes []AgentApplicationSettingsErrorCollectorHttpStatus `json:"expectedErrorCodes"` 2950 // Specified exception class names will be ignored and will not affect error rate or Apdex score, or be reported to APM. 2951 IgnoredErrorClasses []string `json:"ignoredErrorClasses"` 2952 // A list comprised of individual and dashed ranges of HTTP status codes that should not be treated as errors. 2953 IgnoredErrorCodes []AgentApplicationSettingsErrorCollectorHttpStatus `json:"ignoredErrorCodes"` 2954 } 2955 2956 // AgentApplicationSettingsSlowSql - In APM, when transaction traces are collected, there may be additional Slow query data available. 2957 type AgentApplicationSettingsSlowSql struct { 2958 // If true, the agent collects slow SQL queries. 2959 Enabled bool `json:"enabled,omitempty"` 2960 } 2961 2962 // AgentApplicationSettingsThreadProfiler - Thread profiler measures wall clock time, CPU time, and method call counts in your application's threads as they run. 2963 type AgentApplicationSettingsThreadProfiler struct { 2964 // Whether or not the Thread Profiler is enabled for your application. 2965 Enabled bool `json:"enabled,omitempty"` 2966 } 2967 2968 // AgentApplicationSettingsTransactionTracer - Transaction Tracer settings related to APM applications. For more information about what these settings do and which ones are applicable for your application, please see docs.newrelic.com for more information about agent configuration for your language agent. 2969 type AgentApplicationSettingsTransactionTracer struct { 2970 // Enable or disable the capture of memcache keys from transaction traces. 2971 CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"` 2972 // If true, this enables the Transaction Tracer feature, enabling collection of transaction traces. 2973 Enabled bool `json:"enabled,omitempty"` 2974 // If true, enables the collection of explain plans in transaction traces. This setting will also apply to explain plans in slow SQL traces if slow_sql.explain_enabled is not set separately. 2975 ExplainEnabled bool `json:"explainEnabled,omitempty"` 2976 // Relevant only when explain_enabled is true. Can be set to automatic configuration (APDEX_F) or manual (see explainThresholdValue). 2977 ExplainThresholdType AgentApplicationSettingsThresholdTypeEnum `json:"explainThresholdType,omitempty"` 2978 // Threshold (in seconds) above which the agent will collect explain plans. Relevant only when explainEnabled is true and explainThresholdType is set to VALUE. 2979 ExplainThresholdValue nrtime.Seconds `json:"explainThresholdValue,omitempty"` 2980 // Set to true to enable logging of queries to the agent log file instead of uploading to New Relic. Queries are logged using the record_sql mode. 2981 LogSql bool `json:"logSql,omitempty"` 2982 // Obfuscation level for SQL queries reported in transaction trace nodes. 2983 RecordSql AgentApplicationSettingsRecordSqlEnum `json:"recordSql,omitempty"` 2984 // Specify a threshold in seconds. The agent includes stack traces in transaction trace nodes when the stack trace duration exceeds this threshold. 2985 StackTraceThreshold nrtime.Seconds `json:"stackTraceThreshold,omitempty"` 2986 // Relevant only when TransactionTracer is enabled. Can be set to automatic configuration (APDEX_F) or manual (see TransactionThresholdValue). 2987 TransactionThresholdType AgentApplicationSettingsThresholdTypeEnum `json:"transactionThresholdType,omitempty"` 2988 // Threshold (in seconds) that transactions with a duration longer than this threshold are eligible for transaction traces. Relevant only when Transaction Tracer is enabled and transaction_threshold_type is set to VALUE. 2989 TransactionThresholdValue nrtime.Seconds `json:"transactionThresholdValue,omitempty"` 2990 } 2991 2992 // AgentEnvironmentApplicationInstance - Representation of the New Relic agent collecting data. 2993 type AgentEnvironmentApplicationInstance struct { 2994 // Contains environment attributes regarding the reported setting of the reporting agent. 2995 AgentSettingsAttributes []AgentEnvironmentAttribute `json:"agentSettingsAttributes"` 2996 // Information of the application instance, such as host and language. 2997 Details AgentEnvironmentApplicationInstanceDetails `json:"details"` 2998 // Contains general environment attributes from the same environment where the application instance is running. 2999 EnvironmentAttributes []AgentEnvironmentAttribute `json:"environmentAttributes"` 3000 // Contains environment attributes regarding modules loaded by the application instance. Used only by the Java agent. 3001 Modules []AgentEnvironmentApplicationLoadedModule `json:"modules"` 3002 } 3003 3004 // AgentEnvironmentApplicationInstanceDetails - Details of an application instance such as host and language. 3005 type AgentEnvironmentApplicationInstanceDetails struct { 3006 // Host of the application instance. 3007 Host string `json:"host"` 3008 // ID of the application instance. 3009 ID string `json:"id"` 3010 // Language of the application instance. 3011 Language string `json:"language"` 3012 // Name of the application instance. 3013 Name string `json:"name"` 3014 } 3015 3016 // AgentEnvironmentApplicationLoadedModule - Represents a module loaded by the apm application. 3017 type AgentEnvironmentApplicationLoadedModule struct { 3018 // Extra module attributes. 3019 Attributes []AgentEnvironmentLoadedModuleAttribute `json:"attributes"` 3020 // Module name. 3021 Name string `json:"name"` 3022 // Module version. 3023 Version string `json:"version,omitempty"` 3024 } 3025 3026 // AgentEnvironmentAttribute - Represents one attribute from within the environment on which an agent is running. 3027 type AgentEnvironmentAttribute struct { 3028 // Environment attribute name. 3029 Attribute string `json:"attribute"` 3030 // Value of the environment attribute. 3031 Value string `json:"value"` 3032 } 3033 3034 // AgentEnvironmentFilter - A filter that can be applied to filter results. 3035 type AgentEnvironmentFilter struct { 3036 // A string to filter results that includes this string anywhere. Case insensitive. 3037 Contains string `json:"contains,omitempty"` 3038 // A string to filter out results that includes this string anywhere. Case insensitive. 3039 DoesNotContain string `json:"doesNotContain,omitempty"` 3040 // A string to filter results that are exactly as the string provided. Case sensitive. 3041 Equals string `json:"equals,omitempty"` 3042 // A string to filter results that starts with this string. Case insensitive. 3043 StartsWith string `json:"startsWith,omitempty"` 3044 } 3045 3046 // AgentEnvironmentLoadedModuleAttribute - Attribute belonging to a loaded module. 3047 type AgentEnvironmentLoadedModuleAttribute struct { 3048 // Name of the module attribute. 3049 Name string `json:"name"` 3050 // Value of the module attribute. 3051 Value string `json:"value"` 3052 } 3053 3054 // AgentTracesErrorTrace - An object that represents an error trace sample. 3055 type AgentTracesErrorTrace struct { 3056 // Map of attributes collected by the agent. 3057 AgentAttributes AgentTracesTraceAttributes `json:"agentAttributes,omitempty"` 3058 // Error count. 3059 Count int `json:"count,omitempty"` 3060 // Exception class. 3061 ExceptionClass string `json:"exceptionClass,omitempty"` 3062 // Agent host. 3063 Host string `json:"host,omitempty"` 3064 // Trace identifier. 3065 ID string `json:"id"` 3066 // Map Attributes which can not be turned off by the user.These are generally not shown to the customer (NR only). 3067 IntrinsicAttributes AgentTracesTraceAttributes `json:"intrinsicAttributes,omitempty"` 3068 // Error message. 3069 Message string `json:"message,omitempty"` 3070 // Path, as definted by agents. 3071 Path string `json:"path"` 3072 // Error stack trace. 3073 StackTrace []AgentTracesStackTraceFrame `json:"stackTrace,omitempty"` 3074 // When the error occurred. 3075 StartTime *nrtime.EpochMilliseconds `json:"startTime"` 3076 // URI. 3077 Uri string `json:"uri,omitempty"` 3078 // Map of attributes collected by the user using the API. 3079 UserAttributes AgentTracesTraceAttributes `json:"userAttributes,omitempty"` 3080 } 3081 3082 // AgentTracesErrorTraceOrderBy - An object that represents error trace ordering. 3083 type AgentTracesErrorTraceOrderBy struct { 3084 // Order by direction. 3085 Direction AgentTracesOrderByDirection `json:"direction,omitempty"` 3086 // Field to order by. 3087 Field AgentTracesErrorTraceOrderByField `json:"field"` 3088 } 3089 3090 // AgentTracesErrorTraceQuery - An object that reppresents an error trace query. 3091 type AgentTracesErrorTraceQuery struct { 3092 // Exception class pattern. Wildcard (SQL LIKE syntax) 3093 ExceptionClassPattern string `json:"exceptionClassPattern,omitempty"` 3094 // List of trace Ids. 3095 IDs []string `json:"ids,omitempty"` 3096 // Maximum number of traces returned. 3097 Limit int `json:"limit,omitempty"` 3098 // Error message pattern. Wildcard (SQL LIKE syntax) 3099 MessagePattern string `json:"messagePattern,omitempty"` 3100 // Error trace ordering. 3101 OrderBy AgentTracesErrorTraceOrderBy `json:"orderBy,omitempty"` 3102 // Error path pattern. Wildcard (SQL LIKE syntax) 3103 PathPattern string `json:"pathPattern,omitempty"` 3104 // End time. 3105 StartTimeMax *nrtime.EpochMilliseconds `json:"startTimeMax,omitempty"` 3106 // Start time. 3107 StartTimeMin *nrtime.EpochMilliseconds `json:"startTimeMin,omitempty"` 3108 } 3109 3110 // AgentTracesExplainPlan - An object representing a sql explain plan. 3111 type AgentTracesExplainPlan struct { 3112 // Explain plan headers. 3113 Headers []string `json:"headers,omitempty"` 3114 // Explain plan rows. 3115 Rows []AgentTracesExplainPlanRow `json:"rows,omitempty"` 3116 } 3117 3118 // AgentTracesSqlTrace - An object that represents a sql trace sample. 3119 type AgentTracesSqlTrace struct { 3120 // Backtrace 3121 Backtrace []AgentTracesStackTraceFrame `json:"backtrace,omitempty"` 3122 // Number of SQL statements like this. 3123 CallCount int `json:"callCount,omitempty"` 3124 // Database instance name 3125 DatabaseInstanceName string `json:"databaseInstanceName,omitempty"` 3126 // Database metric name, as defined by agents. 3127 DatabaseMetricName string `json:"databaseMetricName"` 3128 // Database name 3129 DatabaseName string `json:"databaseName,omitempty"` 3130 // Explain plan 3131 ExplainPlan AgentTracesExplainPlan `json:"explainPlan,omitempty"` 3132 // Trace identifier. 3133 ID string `json:"id"` 3134 // Call time, maximum of all `call_count` traces. 3135 MaxCallTime Milliseconds `json:"maxCallTime,omitempty"` 3136 // Call time, minimum of all `call_count` traces. 3137 MinCallTime Milliseconds `json:"minCallTime,omitempty"` 3138 // ORM input query 3139 OrmInputQuery string `json:"ormInputQuery,omitempty"` 3140 // ORM name 3141 OrmName string `json:"ormName,omitempty"` 3142 // Path, as definted by agents. 3143 Path string `json:"path"` 3144 // Query parameters 3145 QueryParameters AgentTracesQueryParameters `json:"queryParameters,omitempty"` 3146 // SQL statement. 3147 Sql string `json:"sql,omitempty"` 3148 // An agent generated `sql_id`. 3149 SqlId string `json:"sqlId"` 3150 // When the SQL query occurred. 3151 StartTime *nrtime.EpochMilliseconds `json:"startTime"` 3152 // Call time, as added across all `call_count` traces. 3153 TotalCallTime Milliseconds `json:"totalCallTime,omitempty"` 3154 // URI of SQL, as defined by agents. 3155 Uri string `json:"uri"` 3156 } 3157 3158 // AgentTracesSqlTraceOrderBy - An object that represents SQL trace ordering 3159 type AgentTracesSqlTraceOrderBy struct { 3160 // Order by direction. 3161 Direction AgentTracesOrderByDirection `json:"direction,omitempty"` 3162 // Field to order by. 3163 Field AgentTracesSqlTraceOrderByField `json:"field"` 3164 } 3165 3166 // AgentTracesSqlTraceQuery - An object that reppresents a SQL trace query. 3167 type AgentTracesSqlTraceQuery struct { 3168 // Database metric name pattern. Wildcard (SQL LIKE syntax) 3169 DatabaseMetricNamePattern string `json:"databaseMetricNamePattern,omitempty"` 3170 // List of trace Ids. 3171 IDs []string `json:"ids,omitempty"` 3172 // Maximum number of traces returned. 3173 Limit int `json:"limit,omitempty"` 3174 // SQL trace ordering. 3175 OrderBy AgentTracesSqlTraceOrderBy `json:"orderBy,omitempty"` 3176 // Path pattern. Wildcard (SQL LIKE syntax) 3177 PathPattern string `json:"pathPattern,omitempty"` 3178 // An agent generated `sql_id`. 3179 SqlId string `json:"sqlId,omitempty"` 3180 // SQL pattern. Wildcard (SQL LIKE syntax) 3181 SqlPattern string `json:"sqlPattern,omitempty"` 3182 // End time. 3183 StartTimeMax *nrtime.EpochMilliseconds `json:"startTimeMax,omitempty"` 3184 // Start time. 3185 StartTimeMin *nrtime.EpochMilliseconds `json:"startTimeMin,omitempty"` 3186 // URI pattern. Wildcard (SQL LIKE syntax) 3187 UriPattern string `json:"uriPattern,omitempty"` 3188 } 3189 3190 // AgentTracesStackTraceFrame - An object representing an stack trace segment 3191 type AgentTracesStackTraceFrame struct { 3192 // Frame filepath 3193 Filepath string `json:"filepath,omitempty"` 3194 // Formatted frame 3195 Formatted string `json:"formatted"` 3196 // Frame line number 3197 Line int `json:"line,omitempty"` 3198 // Frame name 3199 Name string `json:"name,omitempty"` 3200 } 3201 3202 // AgentTracesTransactionTrace - An object that represents a transaction trace sample. 3203 type AgentTracesTransactionTrace struct { 3204 // Map of attributes collected by the agent. 3205 AgentAttributes AgentTracesTraceAttributes `json:"agentAttributes,omitempty"` 3206 // Duration from when the response is received to when the response is returned in milliseconds. 3207 Duration Milliseconds `json:"duration"` 3208 // List of trace segment edges. 3209 Edges []AgentTracesTransactionTraceEdge `json:"edges,omitempty"` 3210 // GUID of the transaction which was used for CAT. 3211 GUID string `json:"guid,omitempty"` 3212 // Trace identifier 3213 ID string `json:"id,omitempty"` 3214 // Map Attributes which can not be turned off by the user.These are generally not shown to the customer (NR only). 3215 IntrinsicAttributes AgentTracesTraceAttributes `json:"intrinsicAttributes,omitempty"` 3216 // List of trace segment nodes. 3217 Nodes []AgentTracesTransactionTraceNode `json:"nodes,omitempty"` 3218 // The transaction metric name. 3219 Path string `json:"path"` 3220 // Agent protocol version. 3221 ProtocolVersion int `json:"protocolVersion"` 3222 // Transaction start time in milliseconds since the unix epoch. 3223 StartTime *nrtime.EpochMilliseconds `json:"startTime"` 3224 // The transaction url. 3225 Uri string `json:"uri"` 3226 // Map of attributes collected by the user using the API. 3227 UserAttributes AgentTracesTraceAttributes `json:"userAttributes,omitempty"` 3228 } 3229 3230 // AgentTracesTransactionTraceEdge - An object that represents parent/child relationship between to trace segment nodes 3231 type AgentTracesTransactionTraceEdge struct { 3232 // Child segment GUID. 3233 ChildId string `json:"childId,omitempty"` 3234 // Parent segment GUID. 3235 ParentId string `json:"parentId,omitempty"` 3236 } 3237 3238 // AgentTracesTransactionTraceNode - An object that represent a Trace Node. 3239 type AgentTracesTransactionTraceNode struct { 3240 // Map of segment attributes. 3241 Attributes AgentTracesTraceAttributes `json:"attributes,omitempty"` 3242 // Segment duration. 3243 Duration Milliseconds `json:"duration,omitempty"` 3244 // Segment exlusive duration. 3245 ExclusiveDurationMs *nrtime.EpochMilliseconds `json:"exclusiveDurationMs,omitempty"` 3246 // Segment ID. 3247 ID string `json:"id,omitempty"` 3248 // Segment name. 3249 Name string `json:"name,omitempty"` 3250 // Segment start time in milliseconds since the unix epoch. 3251 Timestamp *nrtime.EpochMilliseconds `json:"timestamp,omitempty"` 3252 } 3253 3254 // AgentTracesTransactionTraceOrderBy - An object that represents transaction trace ordering. 3255 type AgentTracesTransactionTraceOrderBy struct { 3256 // Order by direction. 3257 Direction AgentTracesOrderByDirection `json:"direction,omitempty"` 3258 // Field to order by. 3259 Field AgentTracesTransactionTraceOrderByField `json:"field"` 3260 } 3261 3262 // AgentTracesTransactionTraceQuery - An object that reppresents a transaction trace query. 3263 type AgentTracesTransactionTraceQuery struct { 3264 // Exact GUIDs. 3265 GUIDs []string `json:"guids,omitempty"` 3266 // List of trace Ids. 3267 IDs []string `json:"ids,omitempty"` 3268 // Maximum number of traces returned. 3269 Limit int `json:"limit,omitempty"` 3270 // Transaction trace ordering. 3271 OrderBy AgentTracesTransactionTraceOrderBy `json:"orderBy,omitempty"` 3272 // Parameters pattern. Wildcard (SQL LIKE syntax) 3273 ParametersPattern string `json:"parametersPattern,omitempty"` 3274 // Transaction path pattern. Wildcard (SQL LIKE syntax) 3275 PathPattern string `json:"pathPattern,omitempty"` 3276 // Exact paths. 3277 Paths []string `json:"paths,omitempty"` 3278 // List of Real Agent Ids 3279 RealAgentIds []string `json:"realAgentIds,omitempty"` 3280 // End time. 3281 StartTimeMax *nrtime.EpochMilliseconds `json:"startTimeMax,omitempty"` 3282 // Start time. 3283 StartTimeMin *nrtime.EpochMilliseconds `json:"startTimeMin,omitempty"` 3284 // URL pattern. Wildcard (SQL LIKE syntax) 3285 URLPattern string `json:"urlPattern,omitempty"` 3286 } 3287 3288 // AiNotificationsAuth - Authentication interface 3289 type AiNotificationsAuth struct { 3290 } 3291 3292 func (x *AiNotificationsAuth) ImplementsAiNotificationsAuth() {} 3293 3294 // AiNotificationsChannel - Channel object 3295 type AiNotificationsChannel struct { 3296 // The accountId of the creator of the channel 3297 AccountID int `json:"accountId"` 3298 // Is channel active 3299 Active bool `json:"active"` 3300 // Channel creation time 3301 CreatedAt nrtime.DateTime `json:"createdAt"` 3302 // Related destination type 3303 DestinationId string `json:"destinationId"` 3304 // Channel id 3305 ID string `json:"id"` 3306 // Channel name 3307 Name string `json:"name"` 3308 // Related product type 3309 Product AiNotificationsProduct `json:"product"` 3310 // List of destination property types 3311 Properties []AiNotificationsProperty `json:"properties"` 3312 // Channel Status 3313 Status AiNotificationsChannelStatus `json:"status"` 3314 // Channel type 3315 Type AiNotificationsChannelType `json:"type"` 3316 // Channel last update time 3317 UpdatedAt nrtime.DateTime `json:"updatedAt"` 3318 // Message template creator userId 3319 UpdatedBy int `json:"updatedBy"` 3320 } 3321 3322 // AiNotificationsDestination - Destination Object 3323 type AiNotificationsDestination struct { 3324 // The accountId of the creator of the destination 3325 AccountID int `json:"accountId"` 3326 // Destination active 3327 Active bool `json:"active"` 3328 // Authentication for this destination 3329 Auth AiNotificationsAuth `json:"auth,omitempty"` 3330 // Destination created at 3331 CreatedAt nrtime.DateTime `json:"createdAt"` 3332 // Destination id 3333 ID string `json:"id"` 3334 // Indicates whether the user is authenticated with the destination 3335 IsUserAuthenticated bool `json:"isUserAuthenticated"` 3336 // Last time a notification was sent 3337 LastSent nrtime.DateTime `json:"lastSent,omitempty"` 3338 // Destination name 3339 Name string `json:"name"` 3340 // List of destination property types 3341 Properties []AiNotificationsProperty `json:"properties"` 3342 // Destination status 3343 Status AiNotificationsDestinationStatus `json:"status"` 3344 // Destination type 3345 Type AiNotificationsDestinationType `json:"type"` 3346 // Destination updated at 3347 UpdatedAt nrtime.DateTime `json:"updatedAt"` 3348 // Destination updated by 3349 UpdatedBy int `json:"updatedBy"` 3350 } 3351 3352 // special 3353 func (x *AiNotificationsDestination) UnmarshalJSON(b []byte) error { 3354 var objMap map[string]*json.RawMessage 3355 err := json.Unmarshal(b, &objMap) 3356 if err != nil { 3357 return err 3358 } 3359 3360 for k, v := range objMap { 3361 if v == nil { 3362 continue 3363 } 3364 3365 switch k { 3366 case "accountId": 3367 err = json.Unmarshal(*v, &x.AccountID) 3368 if err != nil { 3369 return err 3370 } 3371 case "active": 3372 err = json.Unmarshal(*v, &x.Active) 3373 if err != nil { 3374 return err 3375 } 3376 case "auth": 3377 err = json.Unmarshal(*v, &x.Auth) 3378 if err != nil { 3379 return err 3380 } 3381 case "createdAt": 3382 err = json.Unmarshal(*v, &x.CreatedAt) 3383 if err != nil { 3384 return err 3385 } 3386 case "id": 3387 err = json.Unmarshal(*v, &x.ID) 3388 if err != nil { 3389 return err 3390 } 3391 case "isUserAuthenticated": 3392 err = json.Unmarshal(*v, &x.IsUserAuthenticated) 3393 if err != nil { 3394 return err 3395 } 3396 case "lastSent": 3397 err = json.Unmarshal(*v, &x.LastSent) 3398 if err != nil { 3399 return err 3400 } 3401 case "name": 3402 err = json.Unmarshal(*v, &x.Name) 3403 if err != nil { 3404 return err 3405 } 3406 case "properties": 3407 err = json.Unmarshal(*v, &x.Properties) 3408 if err != nil { 3409 return err 3410 } 3411 case "status": 3412 err = json.Unmarshal(*v, &x.Status) 3413 if err != nil { 3414 return err 3415 } 3416 case "type": 3417 err = json.Unmarshal(*v, &x.Type) 3418 if err != nil { 3419 return err 3420 } 3421 case "updatedAt": 3422 err = json.Unmarshal(*v, &x.UpdatedAt) 3423 if err != nil { 3424 return err 3425 } 3426 case "updatedBy": 3427 err = json.Unmarshal(*v, &x.UpdatedBy) 3428 if err != nil { 3429 return err 3430 } 3431 } 3432 } 3433 3434 return nil 3435 } 3436 3437 // AiNotificationsProperty - Channel property Object 3438 type AiNotificationsProperty struct { 3439 // Channel property display key 3440 DisplayValue string `json:"displayValue,omitempty"` 3441 // Channel property key 3442 Key string `json:"key"` 3443 // Channel property display key 3444 Label string `json:"label,omitempty"` 3445 // Channel property value 3446 Value string `json:"value"` 3447 } 3448 3449 // AiNotificationsSuggestion - Suggestion object 3450 type AiNotificationsSuggestion struct { 3451 // Suggestion label 3452 DisplayValue string `json:"displayValue"` 3453 // Should suggestion be the default selection 3454 Icon string `json:"icon,omitempty"` 3455 // Suggestion key 3456 Value string `json:"value"` 3457 } 3458 3459 // AiNotificationsVariable - Variable object 3460 type AiNotificationsVariable struct { 3461 // Is variable active 3462 Active bool `json:"active"` 3463 // Variable creation time 3464 CreatedAt nrtime.DateTime `json:"createdAt"` 3465 // Variable description 3466 Description string `json:"description,omitempty"` 3467 // Variable example 3468 Example string `json:"example"` 3469 // Variable id 3470 ID string `json:"id"` 3471 // Variable key 3472 Key string `json:"key"` 3473 // Variable label 3474 Label string `json:"label,omitempty"` 3475 // Variable name 3476 Name string `json:"name"` 3477 // Related product type 3478 Product AiNotificationsProduct `json:"product"` 3479 // Variable type 3480 Type AiNotificationsVariableType `json:"type"` 3481 // Variable update time 3482 UpdatedAt nrtime.DateTime `json:"updatedAt"` 3483 // Variable creator userId 3484 UpdatedBy int `json:"updatedBy"` 3485 } 3486 3487 // AiOpsIncidentIntelligenceDestination - Destination containing information required to send events to Incident Intelligence. 3488 type AiOpsIncidentIntelligenceDestination struct { 3489 // The id of the Incident Intelligence environment to which events will be sent. 3490 EnvironmentId int `json:"environmentId"` 3491 } 3492 3493 // AiOpsMonitoredSignal - Description of a signal that is being monitored. 3494 type AiOpsMonitoredSignal struct { 3495 // Whether or not the signal is enabled. 3496 Enabled bool `json:"enabled"` 3497 // The type of signal that is being monitored. 3498 SignalType AiOpsSignalType `json:"signalType"` 3499 } 3500 3501 // AiOpsProactiveDetection - Data related to Proactive Detection 3502 type AiOpsProactiveDetection struct { 3503 // Retrieve all Proactive Detection configurations 3504 Configurations AiOpsProactiveDetectionConfigSearchResults `json:"configurations,omitempty"` 3505 // Retrieve Proactive Detection-related events for an entity 3506 Events AiOpsProactiveDetectionEventsResult `json:"events,omitempty"` 3507 } 3508 3509 // AiOpsProactiveDetectionConfig - A Proactive Detection configuration. These allow users to subscribe to events detected by the AiOps platform. 3510 type AiOpsProactiveDetectionConfig struct { 3511 // The account to which the Proactive Detection configuration belongs. 3512 Account accounts.AccountReference `json:"account,omitempty"` 3513 // The entities whose real time failure warnings will be sent to the configured slack channels. 3514 Entities []EntityOutlineInterface `json:"entities"` 3515 // The number of entities being monitored 3516 EntityCount int `json:"entityCount"` 3517 // The unique id of the Proactive Detection configuration. 3518 ID string `json:"id"` 3519 // The list of incident intelligence destinations to notify when a real time failure warning is detected. 3520 IncidentIntelligenceDestinations []AiOpsIncidentIntelligenceDestination `json:"incidentIntelligenceDestinations"` 3521 // Timestamp of the last time the configuration was updated. 3522 LastUpdatedAt *nrtime.EpochMilliseconds `json:"lastUpdatedAt,omitempty"` 3523 // The list of signals that the configuration is monitoring. 3524 MonitoredSignals []AiOpsMonitoredSignal `json:"monitoredSignals"` 3525 // The name of the configuration 3526 Name string `json:"name,omitempty"` 3527 // The list of slack channels to notify when a real time failure warning is detected. 3528 SlackChannels []AiOpsSlackChannel `json:"slackChannels"` 3529 // The list of webhooks to notify when a real time failure warning is detected. 3530 Webhooks []AiOpsWebhook `json:"webhooks"` 3531 } 3532 3533 // special 3534 func (x *AiOpsProactiveDetectionConfig) UnmarshalJSON(b []byte) error { 3535 var objMap map[string]*json.RawMessage 3536 err := json.Unmarshal(b, &objMap) 3537 if err != nil { 3538 return err 3539 } 3540 3541 for k, v := range objMap { 3542 if v == nil { 3543 continue 3544 } 3545 3546 switch k { 3547 case "account": 3548 err = json.Unmarshal(*v, &x.Account) 3549 if err != nil { 3550 return err 3551 } 3552 case "entities": 3553 if v == nil { 3554 continue 3555 } 3556 var rawMessageEntities []*json.RawMessage 3557 err = json.Unmarshal(*v, &rawMessageEntities) 3558 if err != nil { 3559 return err 3560 } 3561 3562 for _, m := range rawMessageEntities { 3563 xxx, err := UnmarshalEntityOutlineInterface(*m) 3564 if err != nil { 3565 return err 3566 } 3567 3568 if xxx != nil { 3569 x.Entities = append(x.Entities, *xxx) 3570 } 3571 } 3572 case "entityCount": 3573 err = json.Unmarshal(*v, &x.EntityCount) 3574 if err != nil { 3575 return err 3576 } 3577 case "id": 3578 err = json.Unmarshal(*v, &x.ID) 3579 if err != nil { 3580 return err 3581 } 3582 case "incidentIntelligenceDestinations": 3583 err = json.Unmarshal(*v, &x.IncidentIntelligenceDestinations) 3584 if err != nil { 3585 return err 3586 } 3587 case "lastUpdatedAt": 3588 err = json.Unmarshal(*v, &x.LastUpdatedAt) 3589 if err != nil { 3590 return err 3591 } 3592 case "monitoredSignals": 3593 err = json.Unmarshal(*v, &x.MonitoredSignals) 3594 if err != nil { 3595 return err 3596 } 3597 case "name": 3598 err = json.Unmarshal(*v, &x.Name) 3599 if err != nil { 3600 return err 3601 } 3602 case "slackChannels": 3603 err = json.Unmarshal(*v, &x.SlackChannels) 3604 if err != nil { 3605 return err 3606 } 3607 case "webhooks": 3608 err = json.Unmarshal(*v, &x.Webhooks) 3609 if err != nil { 3610 return err 3611 } 3612 } 3613 } 3614 3615 return nil 3616 } 3617 3618 // AiOpsProactiveDetectionConfigOutline - Simplified version of a Proactive Detection configuration 3619 type AiOpsProactiveDetectionConfigOutline struct { 3620 // The account to which the Proactive Detection configuration belongs. 3621 Account accounts.AccountReference `json:"account,omitempty"` 3622 // The unique id of the Proactive Detection configuration. 3623 ID string `json:"id"` 3624 // The name of the configuration 3625 Name string `json:"name,omitempty"` 3626 } 3627 3628 // AiOpsProactiveDetectionConfigSearchResults - The result of any operation that is querying Proactive Detection configurations. 3629 type AiOpsProactiveDetectionConfigSearchResults struct { 3630 // The number of Proactive Detection configurations matching the search result. 3631 Count int `json:"count"` 3632 // The list of Proactive Detection configurations that were found. 3633 Results []AiOpsProactiveDetectionConfig `json:"results"` 3634 } 3635 3636 // AiOpsProactiveDetectionEntityEventsQuery - Criteria used to filter Proactive Detection events by entity 3637 type AiOpsProactiveDetectionEntityEventsQuery struct { 3638 // User preference context to scope query by 3639 Context AiOpsEventsQueryContext `json:"context,omitempty"` 3640 // Cursor to paginate results by 3641 Cursor string `json:"cursor,omitempty"` 3642 // Filter to events that were recorded at or before this timestamp 3643 EndTime *nrtime.EpochMilliseconds `json:"endTime"` 3644 // Filter to these Proactive Detection event types 3645 FilterTypes []AiOpsProactiveDetectionEventType `json:"filterTypes"` 3646 // Filter to events that were recorded at or after this timestamp 3647 StartTime *nrtime.EpochMilliseconds `json:"startTime"` 3648 } 3649 3650 // AiOpsProactiveDetectionEvent - A Proactive Detection event 3651 type AiOpsProactiveDetectionEvent struct { 3652 // Account ID of the event 3653 AccountID int `json:"accountId"` 3654 // Anomaly ID of the event 3655 AnomalyId string `json:"anomalyId"` 3656 // Human readable category related to the type of signal evaluated 3657 Category string `json:"category"` 3658 // Flag describing the configuration type associated with the event. 3659 ConfigurationType AiOpsProactiveDetectionEventConfigurationType `json:"configurationType"` 3660 // Related configurations 3661 Configurations []AiOpsProactiveDetectionConfigOutline `json:"configurations"` 3662 // Description of the event 3663 Description string `json:"description"` 3664 // The time the event ended 3665 EndedAt *nrtime.EpochMilliseconds `json:"endedAt,omitempty"` 3666 // The Entity associated with the event 3667 Entity EntityOutlineInterface `json:"entity"` 3668 // ID of the event 3669 ID string `json:"id"` 3670 // Flag describing the monitoring status of the entity associated with the event. 3671 MonitoringStatus AiOpsProactiveDetectionEventMonitoringStatus `json:"monitoringStatus"` 3672 // Nrql query that can be used to chart the event 3673 NRQL nrdb.NRQL `json:"nrql"` 3674 // Type of signal that was evaluated 3675 SignalId string `json:"signalId"` 3676 // DEPRECATED - Use SignalId - Type of signal that was evaluated 3677 SignalType AiOpsSignalType `json:"signalType"` 3678 // The time the event started 3679 StartedAt *nrtime.EpochMilliseconds `json:"startedAt"` 3680 // The time the event was recorded 3681 Timestamp *nrtime.EpochMilliseconds `json:"timestamp"` 3682 // Human readable version of the event type 3683 Title string `json:"title"` 3684 // Type of event 3685 Type AiOpsProactiveDetectionEventType `json:"type"` 3686 } 3687 3688 // special 3689 func (x *AiOpsProactiveDetectionEvent) UnmarshalJSON(b []byte) error { 3690 var objMap map[string]*json.RawMessage 3691 err := json.Unmarshal(b, &objMap) 3692 if err != nil { 3693 return err 3694 } 3695 3696 for k, v := range objMap { 3697 if v == nil { 3698 continue 3699 } 3700 3701 switch k { 3702 case "accountId": 3703 err = json.Unmarshal(*v, &x.AccountID) 3704 if err != nil { 3705 return err 3706 } 3707 case "anomalyId": 3708 err = json.Unmarshal(*v, &x.AnomalyId) 3709 if err != nil { 3710 return err 3711 } 3712 case "category": 3713 err = json.Unmarshal(*v, &x.Category) 3714 if err != nil { 3715 return err 3716 } 3717 case "configurationType": 3718 err = json.Unmarshal(*v, &x.ConfigurationType) 3719 if err != nil { 3720 return err 3721 } 3722 case "configurations": 3723 err = json.Unmarshal(*v, &x.Configurations) 3724 if err != nil { 3725 return err 3726 } 3727 case "description": 3728 err = json.Unmarshal(*v, &x.Description) 3729 if err != nil { 3730 return err 3731 } 3732 case "endedAt": 3733 err = json.Unmarshal(*v, &x.EndedAt) 3734 if err != nil { 3735 return err 3736 } 3737 case "entity": 3738 if v == nil { 3739 continue 3740 } 3741 xxx, err := UnmarshalEntityOutlineInterface(*v) 3742 if err != nil { 3743 return err 3744 } 3745 3746 if xxx != nil { 3747 x.Entity = *xxx 3748 } 3749 case "id": 3750 err = json.Unmarshal(*v, &x.ID) 3751 if err != nil { 3752 return err 3753 } 3754 case "monitoringStatus": 3755 err = json.Unmarshal(*v, &x.MonitoringStatus) 3756 if err != nil { 3757 return err 3758 } 3759 case "nrql": 3760 err = json.Unmarshal(*v, &x.NRQL) 3761 if err != nil { 3762 return err 3763 } 3764 case "signalId": 3765 err = json.Unmarshal(*v, &x.SignalId) 3766 if err != nil { 3767 return err 3768 } 3769 case "signalType": 3770 err = json.Unmarshal(*v, &x.SignalType) 3771 if err != nil { 3772 return err 3773 } 3774 case "startedAt": 3775 err = json.Unmarshal(*v, &x.StartedAt) 3776 if err != nil { 3777 return err 3778 } 3779 case "timestamp": 3780 err = json.Unmarshal(*v, &x.Timestamp) 3781 if err != nil { 3782 return err 3783 } 3784 case "title": 3785 err = json.Unmarshal(*v, &x.Title) 3786 if err != nil { 3787 return err 3788 } 3789 case "type": 3790 err = json.Unmarshal(*v, &x.Type) 3791 if err != nil { 3792 return err 3793 } 3794 } 3795 } 3796 3797 return nil 3798 } 3799 3800 // AiOpsProactiveDetectionEventsResult - Result of a query to retrieve Proactive Detection events 3801 type AiOpsProactiveDetectionEventsResult struct { 3802 // Cursor to fetch additional events; null if no additional results 3803 NextCursor string `json:"nextCursor,omitempty"` 3804 // List of Proactive Detection events filtered by criteria 3805 Results []AiOpsProactiveDetectionEvent `json:"results"` 3806 } 3807 3808 // AiOpsSlackChannel - The information needed to identify a slack channel. 3809 type AiOpsSlackChannel struct { 3810 // The id of the channel 3811 ChannelId string `json:"channelId"` 3812 // The name of the channel. 3813 ChannelName string `json:"channelName"` 3814 // The id of the team to which the channel belongs. 3815 TeamId string `json:"teamId"` 3816 // The name of the team to which the channel belongs. 3817 TeamName string `json:"teamName"` 3818 // time zone set by the user creating the Slack destination configuration, stored as IANA database name string 3819 TimeZone string `json:"timeZone,omitempty"` 3820 // The default visibility of the slack channel in the UI -- PUBLIC or PRIVATE 3821 // If private, the user does not have permission to see the information about the slack channel. 3822 // If public, the user has permission to see the information about the slack channel. 3823 Visibility string `json:"visibility"` 3824 } 3825 3826 // AiOpsWebhook - The information needed to communicate with a webhook. 3827 type AiOpsWebhook struct { 3828 // The custom headers that will be included when the message is delivered 3829 CustomHeaders []AiOpsWebhookCustomHeader `json:"customHeaders"` 3830 // The information describing the payload that will be provided when the webhook is called 3831 PayloadMetadata AiOpsWebhookPayloadMetadata `json:"payloadMetadata,omitempty"` 3832 // The url to which messages will be delivered 3833 URL string `json:"url"` 3834 } 3835 3836 // AiOpsWebhookCustomHeader - A custom header that will be provided when calling the webhook. 3837 type AiOpsWebhookCustomHeader struct { 3838 // The name of the custom header that will be included in the webhook message 3839 Name string `json:"name"` 3840 // The value of the custom header that will be included in the webhook message 3841 Value string `json:"value"` 3842 // The default visibility of the value in the UI text input-- PUBLIC or PRIVATE 3843 // Setting this PRIVATE will obfuscate the field in the UI on page load 3844 Visibility string `json:"visibility"` 3845 } 3846 3847 // AiOpsWebhookPayloadMetadata - The information describing the payload that will be provided when the webhook is called 3848 type AiOpsWebhookPayloadMetadata struct { 3849 // The template that will be used when the webhook is called 3850 Template string `json:"template"` 3851 // The type of template that will be used when the webhook is called 3852 TemplateType AiOpsWebhookPayloadTemplateType `json:"templateType,omitempty"` 3853 // The version of the payload 3854 Version string `json:"version"` 3855 } 3856 3857 // AiWorkflowsConfiguration - Enrichment configuration object 3858 type AiWorkflowsConfiguration struct { 3859 } 3860 3861 func (x *AiWorkflowsConfiguration) ImplementsAiWorkflowsConfiguration() {} 3862 3863 // AiWorkflowsDestinationConfiguration - Destination Configuration Object 3864 type AiWorkflowsDestinationConfiguration struct { 3865 // Channel Id of the Destination Configuration 3866 ChannelId string `json:"channelId"` 3867 // Name of the Destination Configuration 3868 Name string `json:"name"` 3869 // Type of the Destination Configuration 3870 Type AiWorkflowsDestinationType `json:"type"` 3871 } 3872 3873 // AiWorkflowsEnrichment - Enrichment Object 3874 type AiWorkflowsEnrichment struct { 3875 // Account Id of the Enrichment 3876 AccountID int `json:"accountId"` 3877 // List of configurations for the enrichment 3878 Configuration []AiWorkflowsConfiguration `json:"configuration"` 3879 // The time the Enrichment was created 3880 CreatedAt nrtime.DateTime `json:"createdAt"` 3881 // Enrichment Id 3882 ID string `json:"id"` 3883 // Name of the Enrichment 3884 Name string `json:"name"` 3885 // Type of the Enrichment 3886 Type AiWorkflowsEnrichmentType `json:"type"` 3887 // The time the Enrichment was last updated 3888 UpdatedAt nrtime.DateTime `json:"updatedAt"` 3889 } 3890 3891 // special 3892 func (x *AiWorkflowsEnrichment) UnmarshalJSON(b []byte) error { 3893 var objMap map[string]*json.RawMessage 3894 err := json.Unmarshal(b, &objMap) 3895 if err != nil { 3896 return err 3897 } 3898 3899 for k, v := range objMap { 3900 if v == nil { 3901 continue 3902 } 3903 3904 switch k { 3905 case "accountId": 3906 err = json.Unmarshal(*v, &x.AccountID) 3907 if err != nil { 3908 return err 3909 } 3910 case "configuration": 3911 err = json.Unmarshal(*v, &x.Configuration) 3912 if err != nil { 3913 return err 3914 } 3915 case "createdAt": 3916 err = json.Unmarshal(*v, &x.CreatedAt) 3917 if err != nil { 3918 return err 3919 } 3920 case "id": 3921 err = json.Unmarshal(*v, &x.ID) 3922 if err != nil { 3923 return err 3924 } 3925 case "name": 3926 err = json.Unmarshal(*v, &x.Name) 3927 if err != nil { 3928 return err 3929 } 3930 case "type": 3931 err = json.Unmarshal(*v, &x.Type) 3932 if err != nil { 3933 return err 3934 } 3935 case "updatedAt": 3936 err = json.Unmarshal(*v, &x.UpdatedAt) 3937 if err != nil { 3938 return err 3939 } 3940 } 3941 } 3942 3943 return nil 3944 } 3945 3946 // AiWorkflowsFilter - Filter Object 3947 type AiWorkflowsFilter struct { 3948 // Account ID of this Filter 3949 AccountID int `json:"accountId"` 3950 // Filter ID 3951 ID string `json:"id"` 3952 // Name of the Filter 3953 Name string `json:"name"` 3954 // Rules of the Filter 3955 Predicates []AiWorkflowsPredicate `json:"predicates"` 3956 // The type of the Filter 3957 Type AiWorkflowsFilterType `json:"type"` 3958 } 3959 3960 // AiWorkflowsPredicate - Predicate Object 3961 type AiWorkflowsPredicate struct { 3962 // Index of the predicate 3963 Attribute string `json:"attribute"` 3964 // Type of comparison 3965 Operator AiWorkflowsOperator `json:"operator"` 3966 // Values to compare 3967 Values []string `json:"values"` 3968 } 3969 3970 // AiWorkflowsWorkflow - Workflow object 3971 type AiWorkflowsWorkflow struct { 3972 // Account Id of this Workflow 3973 AccountID int `json:"accountId"` 3974 // The time the Workflow was created 3975 CreatedAt nrtime.DateTime `json:"createdAt"` 3976 // List of destination configurations that are attached to the workflow 3977 DestinationConfigurations []AiWorkflowsDestinationConfiguration `json:"destinationConfigurations"` 3978 // Are Destinations enabled 3979 DestinationsEnabled bool `json:"destinationsEnabled"` 3980 // List of enrichments that are attached to the workflow 3981 Enrichments []AiWorkflowsEnrichment `json:"enrichments"` 3982 // Is Enrichments enabled 3983 EnrichmentsEnabled bool `json:"enrichmentsEnabled"` 3984 // Filter attached to the Workflow 3985 Filter AiWorkflowsFilter `json:"filter"` 3986 // Workflow Id 3987 ID string `json:"id"` 3988 // Last time a notification was sent regarding this workflow 3989 LastRun nrtime.DateTime `json:"lastRun,omitempty"` 3990 // Name of the Workflow 3991 Name string `json:"name"` 3992 // The time the Workflow was last updated 3993 UpdatedAt nrtime.DateTime `json:"updatedAt"` 3994 // Is Workflow enabled 3995 WorkflowEnabled bool `json:"workflowEnabled"` 3996 } 3997 3998 type AlertableEntity struct { 3999 // The current alerting severity of the entity. 4000 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 4001 // The alert status of the entity. 4002 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 4003 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 4004 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 4005 // Recent violations on the entity. 4006 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 4007 } 4008 4009 // GetAlertSeverity returns a pointer to the value of AlertSeverity from AlertableEntity 4010 func (x AlertableEntity) GetAlertSeverity() EntityAlertSeverity { 4011 return x.AlertSeverity 4012 } 4013 4014 // GetAlertStatus returns a pointer to the value of AlertStatus from AlertableEntity 4015 func (x AlertableEntity) GetAlertStatus() EntityAlertStatus { 4016 return x.AlertStatus 4017 } 4018 4019 // GetAlertViolations returns a pointer to the value of AlertViolations from AlertableEntity 4020 func (x AlertableEntity) GetAlertViolations() []EntityAlertViolation { 4021 return x.AlertViolations 4022 } 4023 4024 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from AlertableEntity 4025 func (x AlertableEntity) GetRecentAlertViolations() []EntityAlertViolation { 4026 return x.RecentAlertViolations 4027 } 4028 4029 func (x *AlertableEntity) ImplementsAlertableEntity() {} 4030 4031 type AlertableEntityOutline struct { 4032 // The current alerting severity of the entity. 4033 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 4034 // The alert status of the entity. 4035 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 4036 } 4037 4038 // GetAlertSeverity returns a pointer to the value of AlertSeverity from AlertableEntityOutline 4039 func (x AlertableEntityOutline) GetAlertSeverity() EntityAlertSeverity { 4040 return x.AlertSeverity 4041 } 4042 4043 // GetAlertStatus returns a pointer to the value of AlertStatus from AlertableEntityOutline 4044 func (x AlertableEntityOutline) GetAlertStatus() EntityAlertStatus { 4045 return x.AlertStatus 4046 } 4047 4048 func (x *AlertableEntityOutline) ImplementsAlertableEntityOutline() {} 4049 4050 // ApmAgentInstrumentedServiceEntity - A service entity that is instrumented by an APM Agent. 4051 type ApmAgentInstrumentedServiceEntity struct { 4052 Account accounts.AccountOutline `json:"account,omitempty"` 4053 // The New Relic account ID associated with this entity. 4054 AccountID int `json:"accountId,omitempty"` 4055 // The current alerting severity of the entity. 4056 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 4057 // The alert status of the entity. 4058 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 4059 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 4060 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 4061 // Summary statistics about the Browser App injected by an APM Application. 4062 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 4063 // Settings that are common across APM applications. 4064 ApmSettings AgentApplicationSettingsApmBase `json:"apmSettings,omitempty"` 4065 // Summary statistics about the APM App. 4066 ApmSummary ApmApplicationSummaryData `json:"apmSummary,omitempty"` 4067 // The ID of the APM Application. 4068 ApplicationID int `json:"applicationId,omitempty"` 4069 // List of APM application instances. 4070 ApplicationInstances []AgentEnvironmentApplicationInstance `json:"applicationInstances"` 4071 // Query upstream and downstream dependencies for an entity 4072 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 4073 // The list of dashboard templates available for this entity. 4074 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 4075 // Deployments of the APM Application. 4076 Deployments []ApmApplicationDeployment `json:"deployments,omitempty"` 4077 // The entity's domain 4078 Domain string `json:"domain,omitempty"` 4079 // A value representing the combination of the entity's domain and type. 4080 EntityType EntityType `json:"entityType,omitempty"` 4081 // Retrieve metadata on a specific error group. 4082 ErrorGroup ErrorTrackingErrorGroup `json:"errorGroup,omitempty"` 4083 // Fetch the number of error groups counted within a given time range (default 3 hours). 4084 ErrorGroupCount ErrorTrackingErrorGroupCount `json:"errorGroupCount,omitempty"` 4085 // Fetch a list of error groups. 4086 ErrorGroupListing []ErrorTrackingErrorGroup `json:"errorGroupListing"` 4087 // Retrieves an error trace given its ID. 4088 ErrorTrace AgentTracesErrorTrace `json:"errorTrace,omitempty"` 4089 // Retrieve a list of error traces that match the given search query. 4090 ErrorTraces []AgentTracesErrorTrace `json:"errorTraces,omitempty"` 4091 // An Exception that occurred in your Application. 4092 Exception StackTraceApmException `json:"exception,omitempty"` 4093 // Retrieves a flamegraph for the specific entity over the time period specified. 4094 Flamegraph JavaFlightRecorderFlamegraph `json:"flamegraph,omitempty"` 4095 // A unique entity identifier. 4096 GUID common.EntityGUID `json:"guid,omitempty"` 4097 // The list of golden metrics for a specific entity 4098 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 4099 // Existing API - to be replaced with V2 implementation. 4100 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 4101 // The stored golden signal(s) for the given entity. 4102 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 4103 // The list of golden tags for a specific entityType. 4104 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 4105 // The time the entity was indexed. 4106 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 4107 // The programming language of the APM Application. 4108 Language string `json:"language,omitempty"` 4109 // Retrieves a rule. 4110 MetricNormalizationRule MetricNormalizationRule `json:"metricNormalizationRule,omitempty"` 4111 // Retrieves the rules for the application. 4112 MetricNormalizationRules []MetricNormalizationRule `json:"metricNormalizationRules"` 4113 // Make an `Entity` scoped query to NRDB with a NRQL string. 4114 // 4115 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 4116 // 4117 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 4118 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 4119 // The name of this entity. 4120 Name string `json:"name,omitempty"` 4121 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 4122 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 4123 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 4124 // The url to the entity. 4125 Permalink string `json:"permalink,omitempty"` 4126 // Proactive Detection events 4127 ProactiveDetection AiOpsProactiveDetection `json:"proactiveDetection,omitempty"` 4128 // Recent agent activity for an APM Application. 4129 RecentAgentActivity []ApmApplicationRecentAgentActivity `json:"recentAgentActivity,omitempty"` 4130 // Recent violations on the entity. 4131 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 4132 // The recommended service levels for the entity. 4133 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 4134 // Related dashboards results 4135 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 4136 // Related entities result with optional filtering. 4137 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 4138 // Query upstream and downstream transaction dependencies for an entity 4139 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 4140 // A list of the entities' relationships. 4141 // 4142 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 4143 Relationships []EntityRelationship `json:"relationships,omitempty"` 4144 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 4145 Reporting bool `json:"reporting,omitempty"` 4146 // The running versions of the language agent in the APM Application. 4147 RunningAgentVersions ApmApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 4148 // The service level defined for the entity. 4149 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 4150 // Configuration settings for the APM Application 4151 Settings ApmApplicationSettings `json:"settings,omitempty"` 4152 // Retrieves a SQL trace given its ID. 4153 SqlTrace AgentTracesSqlTrace `json:"sqlTrace,omitempty"` 4154 // Retrieve a list of SQL traces that match the given search query. 4155 SqlTraces []AgentTracesSqlTrace `json:"sqlTraces,omitempty"` 4156 // The list of summary metrics. 4157 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 4158 // The tags applied to the entity. 4159 // 4160 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 4161 Tags []EntityTag `json:"tags,omitempty"` 4162 // The tags applied to the entity with their metadata. 4163 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 4164 // Look up Distributed Tracing summary data for the selected `EntityGuid` 4165 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 4166 // Retrieves a transaction trace given its ID. 4167 TransactionTrace AgentTracesTransactionTrace `json:"transactionTrace,omitempty"` 4168 // Retrieve a list of transaction traces that match the given search query. 4169 TransactionTraces []AgentTracesTransactionTrace `json:"transactionTraces,omitempty"` 4170 // The entity's type 4171 Type string `json:"type,omitempty"` 4172 // List of templates availables for this entity. 4173 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 4174 } 4175 4176 // GetAccount returns a pointer to the value of Account from ApmAgentInstrumentedServiceEntity 4177 func (x ApmAgentInstrumentedServiceEntity) GetAccount() accounts.AccountOutline { 4178 return x.Account 4179 } 4180 4181 // GetAccountID returns a pointer to the value of AccountID from ApmAgentInstrumentedServiceEntity 4182 func (x ApmAgentInstrumentedServiceEntity) GetAccountID() int { 4183 return x.AccountID 4184 } 4185 4186 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmAgentInstrumentedServiceEntity 4187 func (x ApmAgentInstrumentedServiceEntity) GetAlertSeverity() EntityAlertSeverity { 4188 return x.AlertSeverity 4189 } 4190 4191 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmAgentInstrumentedServiceEntity 4192 func (x ApmAgentInstrumentedServiceEntity) GetAlertStatus() EntityAlertStatus { 4193 return x.AlertStatus 4194 } 4195 4196 // GetAlertViolations returns a pointer to the value of AlertViolations from ApmAgentInstrumentedServiceEntity 4197 func (x ApmAgentInstrumentedServiceEntity) GetAlertViolations() []EntityAlertViolation { 4198 return x.AlertViolations 4199 } 4200 4201 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmAgentInstrumentedServiceEntity 4202 func (x ApmAgentInstrumentedServiceEntity) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 4203 return x.ApmBrowserSummary 4204 } 4205 4206 // GetApmSettings returns a pointer to the value of ApmSettings from ApmAgentInstrumentedServiceEntity 4207 func (x ApmAgentInstrumentedServiceEntity) GetApmSettings() AgentApplicationSettingsApmBase { 4208 return x.ApmSettings 4209 } 4210 4211 // GetApmSummary returns a pointer to the value of ApmSummary from ApmAgentInstrumentedServiceEntity 4212 func (x ApmAgentInstrumentedServiceEntity) GetApmSummary() ApmApplicationSummaryData { 4213 return x.ApmSummary 4214 } 4215 4216 // GetApplicationID returns a pointer to the value of ApplicationID from ApmAgentInstrumentedServiceEntity 4217 func (x ApmAgentInstrumentedServiceEntity) GetApplicationID() int { 4218 return x.ApplicationID 4219 } 4220 4221 // GetApplicationInstances returns a pointer to the value of ApplicationInstances from ApmAgentInstrumentedServiceEntity 4222 func (x ApmAgentInstrumentedServiceEntity) GetApplicationInstances() []AgentEnvironmentApplicationInstance { 4223 return x.ApplicationInstances 4224 } 4225 4226 // GetConnections returns a pointer to the value of Connections from ApmAgentInstrumentedServiceEntity 4227 func (x ApmAgentInstrumentedServiceEntity) GetConnections() RelatedExternalsEntityResult { 4228 return x.Connections 4229 } 4230 4231 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmAgentInstrumentedServiceEntity 4232 func (x ApmAgentInstrumentedServiceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 4233 return x.DashboardTemplates 4234 } 4235 4236 // GetDeployments returns a pointer to the value of Deployments from ApmAgentInstrumentedServiceEntity 4237 func (x ApmAgentInstrumentedServiceEntity) GetDeployments() []ApmApplicationDeployment { 4238 return x.Deployments 4239 } 4240 4241 // GetDomain returns a pointer to the value of Domain from ApmAgentInstrumentedServiceEntity 4242 func (x ApmAgentInstrumentedServiceEntity) GetDomain() string { 4243 return x.Domain 4244 } 4245 4246 // GetEntityType returns a pointer to the value of EntityType from ApmAgentInstrumentedServiceEntity 4247 func (x ApmAgentInstrumentedServiceEntity) GetEntityType() EntityType { 4248 return x.EntityType 4249 } 4250 4251 // GetErrorGroup returns a pointer to the value of ErrorGroup from ApmAgentInstrumentedServiceEntity 4252 func (x ApmAgentInstrumentedServiceEntity) GetErrorGroup() ErrorTrackingErrorGroup { 4253 return x.ErrorGroup 4254 } 4255 4256 // GetErrorGroupCount returns a pointer to the value of ErrorGroupCount from ApmAgentInstrumentedServiceEntity 4257 func (x ApmAgentInstrumentedServiceEntity) GetErrorGroupCount() ErrorTrackingErrorGroupCount { 4258 return x.ErrorGroupCount 4259 } 4260 4261 // GetErrorGroupListing returns a pointer to the value of ErrorGroupListing from ApmAgentInstrumentedServiceEntity 4262 func (x ApmAgentInstrumentedServiceEntity) GetErrorGroupListing() []ErrorTrackingErrorGroup { 4263 return x.ErrorGroupListing 4264 } 4265 4266 // GetErrorTrace returns a pointer to the value of ErrorTrace from ApmAgentInstrumentedServiceEntity 4267 func (x ApmAgentInstrumentedServiceEntity) GetErrorTrace() AgentTracesErrorTrace { 4268 return x.ErrorTrace 4269 } 4270 4271 // GetErrorTraces returns a pointer to the value of ErrorTraces from ApmAgentInstrumentedServiceEntity 4272 func (x ApmAgentInstrumentedServiceEntity) GetErrorTraces() []AgentTracesErrorTrace { 4273 return x.ErrorTraces 4274 } 4275 4276 // GetException returns a pointer to the value of Exception from ApmAgentInstrumentedServiceEntity 4277 func (x ApmAgentInstrumentedServiceEntity) GetException() StackTraceApmException { 4278 return x.Exception 4279 } 4280 4281 // GetFlamegraph returns a pointer to the value of Flamegraph from ApmAgentInstrumentedServiceEntity 4282 func (x ApmAgentInstrumentedServiceEntity) GetFlamegraph() JavaFlightRecorderFlamegraph { 4283 return x.Flamegraph 4284 } 4285 4286 // GetGUID returns a pointer to the value of GUID from ApmAgentInstrumentedServiceEntity 4287 func (x ApmAgentInstrumentedServiceEntity) GetGUID() common.EntityGUID { 4288 return x.GUID 4289 } 4290 4291 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmAgentInstrumentedServiceEntity 4292 func (x ApmAgentInstrumentedServiceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 4293 return x.GoldenMetrics 4294 } 4295 4296 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmAgentInstrumentedServiceEntity 4297 func (x ApmAgentInstrumentedServiceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 4298 return x.GoldenSignalValues 4299 } 4300 4301 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmAgentInstrumentedServiceEntity 4302 func (x ApmAgentInstrumentedServiceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 4303 return x.GoldenSignalValuesV2 4304 } 4305 4306 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmAgentInstrumentedServiceEntity 4307 func (x ApmAgentInstrumentedServiceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 4308 return x.GoldenTags 4309 } 4310 4311 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmAgentInstrumentedServiceEntity 4312 func (x ApmAgentInstrumentedServiceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 4313 return x.IndexedAt 4314 } 4315 4316 // GetLanguage returns a pointer to the value of Language from ApmAgentInstrumentedServiceEntity 4317 func (x ApmAgentInstrumentedServiceEntity) GetLanguage() string { 4318 return x.Language 4319 } 4320 4321 // GetMetricNormalizationRule returns a pointer to the value of MetricNormalizationRule from ApmAgentInstrumentedServiceEntity 4322 func (x ApmAgentInstrumentedServiceEntity) GetMetricNormalizationRule() MetricNormalizationRule { 4323 return x.MetricNormalizationRule 4324 } 4325 4326 // GetMetricNormalizationRules returns a pointer to the value of MetricNormalizationRules from ApmAgentInstrumentedServiceEntity 4327 func (x ApmAgentInstrumentedServiceEntity) GetMetricNormalizationRules() []MetricNormalizationRule { 4328 return x.MetricNormalizationRules 4329 } 4330 4331 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ApmAgentInstrumentedServiceEntity 4332 func (x ApmAgentInstrumentedServiceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 4333 return x.NRDBQuery 4334 } 4335 4336 // GetName returns a pointer to the value of Name from ApmAgentInstrumentedServiceEntity 4337 func (x ApmAgentInstrumentedServiceEntity) GetName() string { 4338 return x.Name 4339 } 4340 4341 // GetNerdStorage returns a pointer to the value of NerdStorage from ApmAgentInstrumentedServiceEntity 4342 func (x ApmAgentInstrumentedServiceEntity) GetNerdStorage() NerdStorageEntityScope { 4343 return x.NerdStorage 4344 } 4345 4346 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ApmAgentInstrumentedServiceEntity 4347 func (x ApmAgentInstrumentedServiceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 4348 return x.NerdStoreCollection 4349 } 4350 4351 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ApmAgentInstrumentedServiceEntity 4352 func (x ApmAgentInstrumentedServiceEntity) GetNerdStoreDocument() NerdStoreDocument { 4353 return x.NerdStoreDocument 4354 } 4355 4356 // GetPermalink returns a pointer to the value of Permalink from ApmAgentInstrumentedServiceEntity 4357 func (x ApmAgentInstrumentedServiceEntity) GetPermalink() string { 4358 return x.Permalink 4359 } 4360 4361 // GetProactiveDetection returns a pointer to the value of ProactiveDetection from ApmAgentInstrumentedServiceEntity 4362 func (x ApmAgentInstrumentedServiceEntity) GetProactiveDetection() AiOpsProactiveDetection { 4363 return x.ProactiveDetection 4364 } 4365 4366 // GetRecentAgentActivity returns a pointer to the value of RecentAgentActivity from ApmAgentInstrumentedServiceEntity 4367 func (x ApmAgentInstrumentedServiceEntity) GetRecentAgentActivity() []ApmApplicationRecentAgentActivity { 4368 return x.RecentAgentActivity 4369 } 4370 4371 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ApmAgentInstrumentedServiceEntity 4372 func (x ApmAgentInstrumentedServiceEntity) GetRecentAlertViolations() []EntityAlertViolation { 4373 return x.RecentAlertViolations 4374 } 4375 4376 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmAgentInstrumentedServiceEntity 4377 func (x ApmAgentInstrumentedServiceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 4378 return x.RecommendedServiceLevel 4379 } 4380 4381 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmAgentInstrumentedServiceEntity 4382 func (x ApmAgentInstrumentedServiceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 4383 return x.RelatedDashboards 4384 } 4385 4386 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ApmAgentInstrumentedServiceEntity 4387 func (x ApmAgentInstrumentedServiceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 4388 return x.RelatedEntities 4389 } 4390 4391 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from ApmAgentInstrumentedServiceEntity 4392 func (x ApmAgentInstrumentedServiceEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 4393 return x.RelatedTransactions 4394 } 4395 4396 // GetRelationships returns a pointer to the value of Relationships from ApmAgentInstrumentedServiceEntity 4397 func (x ApmAgentInstrumentedServiceEntity) GetRelationships() []EntityRelationship { 4398 return x.Relationships 4399 } 4400 4401 // GetReporting returns a pointer to the value of Reporting from ApmAgentInstrumentedServiceEntity 4402 func (x ApmAgentInstrumentedServiceEntity) GetReporting() bool { 4403 return x.Reporting 4404 } 4405 4406 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from ApmAgentInstrumentedServiceEntity 4407 func (x ApmAgentInstrumentedServiceEntity) GetRunningAgentVersions() ApmApplicationRunningAgentVersions { 4408 return x.RunningAgentVersions 4409 } 4410 4411 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmAgentInstrumentedServiceEntity 4412 func (x ApmAgentInstrumentedServiceEntity) GetServiceLevel() ServiceLevelDefinition { 4413 return x.ServiceLevel 4414 } 4415 4416 // GetSettings returns a pointer to the value of Settings from ApmAgentInstrumentedServiceEntity 4417 func (x ApmAgentInstrumentedServiceEntity) GetSettings() ApmApplicationSettings { 4418 return x.Settings 4419 } 4420 4421 // GetSqlTrace returns a pointer to the value of SqlTrace from ApmAgentInstrumentedServiceEntity 4422 func (x ApmAgentInstrumentedServiceEntity) GetSqlTrace() AgentTracesSqlTrace { 4423 return x.SqlTrace 4424 } 4425 4426 // GetSqlTraces returns a pointer to the value of SqlTraces from ApmAgentInstrumentedServiceEntity 4427 func (x ApmAgentInstrumentedServiceEntity) GetSqlTraces() []AgentTracesSqlTrace { 4428 return x.SqlTraces 4429 } 4430 4431 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmAgentInstrumentedServiceEntity 4432 func (x ApmAgentInstrumentedServiceEntity) GetSummaryMetrics() []EntitySummaryMetric { 4433 return x.SummaryMetrics 4434 } 4435 4436 // GetTags returns a pointer to the value of Tags from ApmAgentInstrumentedServiceEntity 4437 func (x ApmAgentInstrumentedServiceEntity) GetTags() []EntityTag { 4438 return x.Tags 4439 } 4440 4441 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ApmAgentInstrumentedServiceEntity 4442 func (x ApmAgentInstrumentedServiceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 4443 return x.TagsWithMetadata 4444 } 4445 4446 // GetTracingSummary returns a pointer to the value of TracingSummary from ApmAgentInstrumentedServiceEntity 4447 func (x ApmAgentInstrumentedServiceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 4448 return x.TracingSummary 4449 } 4450 4451 // GetTransactionTrace returns a pointer to the value of TransactionTrace from ApmAgentInstrumentedServiceEntity 4452 func (x ApmAgentInstrumentedServiceEntity) GetTransactionTrace() AgentTracesTransactionTrace { 4453 return x.TransactionTrace 4454 } 4455 4456 // GetTransactionTraces returns a pointer to the value of TransactionTraces from ApmAgentInstrumentedServiceEntity 4457 func (x ApmAgentInstrumentedServiceEntity) GetTransactionTraces() []AgentTracesTransactionTrace { 4458 return x.TransactionTraces 4459 } 4460 4461 // GetType returns a pointer to the value of Type from ApmAgentInstrumentedServiceEntity 4462 func (x ApmAgentInstrumentedServiceEntity) GetType() string { 4463 return x.Type 4464 } 4465 4466 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmAgentInstrumentedServiceEntity 4467 func (x ApmAgentInstrumentedServiceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 4468 return x.UiTemplates 4469 } 4470 4471 func (x *ApmAgentInstrumentedServiceEntity) ImplementsAlertableEntity() {} 4472 4473 func (x *ApmAgentInstrumentedServiceEntity) ImplementsApmApplicationEntity() {} 4474 4475 func (x *ApmAgentInstrumentedServiceEntity) ImplementsApmBrowserApplicationEntity() {} 4476 4477 func (x *ApmAgentInstrumentedServiceEntity) ImplementsEntity() {} 4478 4479 func (x *ApmAgentInstrumentedServiceEntity) ImplementsServiceEntity() {} 4480 4481 // ApmAgentInstrumentedServiceEntityOutline - A service entity outline that is instrumented by an APM Agent. 4482 type ApmAgentInstrumentedServiceEntityOutline struct { 4483 Account accounts.AccountOutline `json:"account,omitempty"` 4484 // The New Relic account ID associated with this entity. 4485 AccountID int `json:"accountId,omitempty"` 4486 // The current alerting severity of the entity. 4487 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 4488 // The alert status of the entity. 4489 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 4490 // Summary statistics about the Browser App injected by an APM Application. 4491 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 4492 // Summary statistics about the APM App. 4493 ApmSummary ApmApplicationSummaryData `json:"apmSummary,omitempty"` 4494 // The ID of the APM Application. 4495 ApplicationID int `json:"applicationId,omitempty"` 4496 // The list of dashboard templates available for this entity. 4497 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 4498 // The entity's domain 4499 Domain string `json:"domain,omitempty"` 4500 // A value representing the combination of the entity's domain and type. 4501 EntityType EntityType `json:"entityType,omitempty"` 4502 // A unique entity identifier. 4503 GUID common.EntityGUID `json:"guid,omitempty"` 4504 // The list of golden metrics for a specific entity 4505 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 4506 // Existing API - to be replaced with V2 implementation. 4507 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 4508 // The stored golden signal(s) for the given entity. 4509 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 4510 // The list of golden tags for a specific entityType. 4511 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 4512 // The time the entity was indexed. 4513 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 4514 // The programming language of the APM Application. 4515 Language string `json:"language,omitempty"` 4516 // The name of this entity. 4517 Name string `json:"name,omitempty"` 4518 // The url to the entity. 4519 Permalink string `json:"permalink,omitempty"` 4520 // The recommended service levels for the entity. 4521 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 4522 // Related dashboards results 4523 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 4524 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 4525 Reporting bool `json:"reporting,omitempty"` 4526 // The running versions of the language agent in the APM Application. 4527 RunningAgentVersions ApmApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 4528 // The service level defined for the entity. 4529 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 4530 // Configuration settings for the APM Application 4531 Settings ApmApplicationSettings `json:"settings,omitempty"` 4532 // The list of summary metrics. 4533 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 4534 // The tags applied to the entity. 4535 // 4536 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 4537 Tags []EntityTag `json:"tags,omitempty"` 4538 // The entity's type 4539 Type string `json:"type,omitempty"` 4540 // List of templates availables for this entity. 4541 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 4542 } 4543 4544 // GetAccount returns a pointer to the value of Account from ApmAgentInstrumentedServiceEntityOutline 4545 func (x ApmAgentInstrumentedServiceEntityOutline) GetAccount() accounts.AccountOutline { 4546 return x.Account 4547 } 4548 4549 // GetAccountID returns a pointer to the value of AccountID from ApmAgentInstrumentedServiceEntityOutline 4550 func (x ApmAgentInstrumentedServiceEntityOutline) GetAccountID() int { 4551 return x.AccountID 4552 } 4553 4554 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmAgentInstrumentedServiceEntityOutline 4555 func (x ApmAgentInstrumentedServiceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 4556 return x.AlertSeverity 4557 } 4558 4559 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmAgentInstrumentedServiceEntityOutline 4560 func (x ApmAgentInstrumentedServiceEntityOutline) GetAlertStatus() EntityAlertStatus { 4561 return x.AlertStatus 4562 } 4563 4564 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmAgentInstrumentedServiceEntityOutline 4565 func (x ApmAgentInstrumentedServiceEntityOutline) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 4566 return x.ApmBrowserSummary 4567 } 4568 4569 // GetApmSummary returns a pointer to the value of ApmSummary from ApmAgentInstrumentedServiceEntityOutline 4570 func (x ApmAgentInstrumentedServiceEntityOutline) GetApmSummary() ApmApplicationSummaryData { 4571 return x.ApmSummary 4572 } 4573 4574 // GetApplicationID returns a pointer to the value of ApplicationID from ApmAgentInstrumentedServiceEntityOutline 4575 func (x ApmAgentInstrumentedServiceEntityOutline) GetApplicationID() int { 4576 return x.ApplicationID 4577 } 4578 4579 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmAgentInstrumentedServiceEntityOutline 4580 func (x ApmAgentInstrumentedServiceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 4581 return x.DashboardTemplates 4582 } 4583 4584 // GetDomain returns a pointer to the value of Domain from ApmAgentInstrumentedServiceEntityOutline 4585 func (x ApmAgentInstrumentedServiceEntityOutline) GetDomain() string { 4586 return x.Domain 4587 } 4588 4589 // GetEntityType returns a pointer to the value of EntityType from ApmAgentInstrumentedServiceEntityOutline 4590 func (x ApmAgentInstrumentedServiceEntityOutline) GetEntityType() EntityType { 4591 return x.EntityType 4592 } 4593 4594 // GetGUID returns a pointer to the value of GUID from ApmAgentInstrumentedServiceEntityOutline 4595 func (x ApmAgentInstrumentedServiceEntityOutline) GetGUID() common.EntityGUID { 4596 return x.GUID 4597 } 4598 4599 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmAgentInstrumentedServiceEntityOutline 4600 func (x ApmAgentInstrumentedServiceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 4601 return x.GoldenMetrics 4602 } 4603 4604 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmAgentInstrumentedServiceEntityOutline 4605 func (x ApmAgentInstrumentedServiceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 4606 return x.GoldenSignalValues 4607 } 4608 4609 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmAgentInstrumentedServiceEntityOutline 4610 func (x ApmAgentInstrumentedServiceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 4611 return x.GoldenSignalValuesV2 4612 } 4613 4614 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmAgentInstrumentedServiceEntityOutline 4615 func (x ApmAgentInstrumentedServiceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 4616 return x.GoldenTags 4617 } 4618 4619 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmAgentInstrumentedServiceEntityOutline 4620 func (x ApmAgentInstrumentedServiceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 4621 return x.IndexedAt 4622 } 4623 4624 // GetLanguage returns a pointer to the value of Language from ApmAgentInstrumentedServiceEntityOutline 4625 func (x ApmAgentInstrumentedServiceEntityOutline) GetLanguage() string { 4626 return x.Language 4627 } 4628 4629 // GetName returns a pointer to the value of Name from ApmAgentInstrumentedServiceEntityOutline 4630 func (x ApmAgentInstrumentedServiceEntityOutline) GetName() string { 4631 return x.Name 4632 } 4633 4634 // GetPermalink returns a pointer to the value of Permalink from ApmAgentInstrumentedServiceEntityOutline 4635 func (x ApmAgentInstrumentedServiceEntityOutline) GetPermalink() string { 4636 return x.Permalink 4637 } 4638 4639 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmAgentInstrumentedServiceEntityOutline 4640 func (x ApmAgentInstrumentedServiceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 4641 return x.RecommendedServiceLevel 4642 } 4643 4644 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmAgentInstrumentedServiceEntityOutline 4645 func (x ApmAgentInstrumentedServiceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 4646 return x.RelatedDashboards 4647 } 4648 4649 // GetReporting returns a pointer to the value of Reporting from ApmAgentInstrumentedServiceEntityOutline 4650 func (x ApmAgentInstrumentedServiceEntityOutline) GetReporting() bool { 4651 return x.Reporting 4652 } 4653 4654 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from ApmAgentInstrumentedServiceEntityOutline 4655 func (x ApmAgentInstrumentedServiceEntityOutline) GetRunningAgentVersions() ApmApplicationRunningAgentVersions { 4656 return x.RunningAgentVersions 4657 } 4658 4659 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmAgentInstrumentedServiceEntityOutline 4660 func (x ApmAgentInstrumentedServiceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 4661 return x.ServiceLevel 4662 } 4663 4664 // GetSettings returns a pointer to the value of Settings from ApmAgentInstrumentedServiceEntityOutline 4665 func (x ApmAgentInstrumentedServiceEntityOutline) GetSettings() ApmApplicationSettings { 4666 return x.Settings 4667 } 4668 4669 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmAgentInstrumentedServiceEntityOutline 4670 func (x ApmAgentInstrumentedServiceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 4671 return x.SummaryMetrics 4672 } 4673 4674 // GetTags returns a pointer to the value of Tags from ApmAgentInstrumentedServiceEntityOutline 4675 func (x ApmAgentInstrumentedServiceEntityOutline) GetTags() []EntityTag { 4676 return x.Tags 4677 } 4678 4679 // GetType returns a pointer to the value of Type from ApmAgentInstrumentedServiceEntityOutline 4680 func (x ApmAgentInstrumentedServiceEntityOutline) GetType() string { 4681 return x.Type 4682 } 4683 4684 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmAgentInstrumentedServiceEntityOutline 4685 func (x ApmAgentInstrumentedServiceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 4686 return x.UiTemplates 4687 } 4688 4689 func (x *ApmAgentInstrumentedServiceEntityOutline) ImplementsAlertableEntityOutline() {} 4690 4691 func (x *ApmAgentInstrumentedServiceEntityOutline) ImplementsApmApplicationEntityOutline() {} 4692 4693 func (x *ApmAgentInstrumentedServiceEntityOutline) ImplementsApmBrowserApplicationEntityOutline() {} 4694 4695 func (x *ApmAgentInstrumentedServiceEntityOutline) ImplementsEntityOutline() {} 4696 4697 func (x *ApmAgentInstrumentedServiceEntityOutline) ImplementsServiceEntityOutline() {} 4698 4699 // ApmApplicationDeployment - An APM application deployment marker 4700 type ApmApplicationDeployment struct { 4701 // The changelog of the deployment 4702 Changelog string `json:"changelog,omitempty"` 4703 // Description of the deployment 4704 Description string `json:"description,omitempty"` 4705 // A link to view the deployment in the UI 4706 Permalink string `json:"permalink,omitempty"` 4707 // The revision of the app that was deployed 4708 Revision string `json:"revision,omitempty"` 4709 // The moment the deployment occurred 4710 Timestamp *nrtime.EpochMilliseconds `json:"timestamp,omitempty"` 4711 // The user who triggered the deployment 4712 User string `json:"user,omitempty"` 4713 } 4714 4715 // ApmApplicationEntity - An APM Application entity. 4716 type ApmApplicationEntity struct { 4717 Account accounts.AccountOutline `json:"account,omitempty"` 4718 // The New Relic account ID associated with this entity. 4719 AccountID int `json:"accountId,omitempty"` 4720 // The current alerting severity of the entity. 4721 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 4722 // The alert status of the entity. 4723 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 4724 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 4725 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 4726 // Summary statistics about the Browser App injected by an APM Application. 4727 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 4728 // Settings that are common across APM applications. 4729 ApmSettings AgentApplicationSettingsApmBase `json:"apmSettings,omitempty"` 4730 // Summary statistics about the APM App. 4731 ApmSummary ApmApplicationSummaryData `json:"apmSummary,omitempty"` 4732 // The ID of the APM Application. 4733 ApplicationID int `json:"applicationId,omitempty"` 4734 // List of APM application instances. 4735 ApplicationInstances []AgentEnvironmentApplicationInstance `json:"applicationInstances"` 4736 // Query upstream and downstream dependencies for an entity 4737 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 4738 // The list of dashboard templates available for this entity. 4739 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 4740 // Deployments of the APM Application. 4741 Deployments []ApmApplicationDeployment `json:"deployments,omitempty"` 4742 // The entity's domain 4743 Domain string `json:"domain,omitempty"` 4744 // A value representing the combination of the entity's domain and type. 4745 EntityType EntityType `json:"entityType,omitempty"` 4746 // Retrieve metadata on a specific error group. 4747 ErrorGroup ErrorTrackingErrorGroup `json:"errorGroup,omitempty"` 4748 // Fetch the number of error groups counted within a given time range (default 3 hours). 4749 ErrorGroupCount ErrorTrackingErrorGroupCount `json:"errorGroupCount,omitempty"` 4750 // Fetch a list of error groups. 4751 ErrorGroupListing []ErrorTrackingErrorGroup `json:"errorGroupListing"` 4752 // Retrieves an error trace given its ID. 4753 ErrorTrace AgentTracesErrorTrace `json:"errorTrace,omitempty"` 4754 // Retrieve a list of error traces that match the given search query. 4755 ErrorTraces []AgentTracesErrorTrace `json:"errorTraces,omitempty"` 4756 // An Exception that occurred in your Application. 4757 Exception StackTraceApmException `json:"exception,omitempty"` 4758 // Retrieves a flamegraph for the specific entity over the time period specified. 4759 Flamegraph JavaFlightRecorderFlamegraph `json:"flamegraph,omitempty"` 4760 // A unique entity identifier. 4761 GUID common.EntityGUID `json:"guid,omitempty"` 4762 // The list of golden metrics for a specific entity 4763 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 4764 // Existing API - to be replaced with V2 implementation. 4765 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 4766 // The stored golden signal(s) for the given entity. 4767 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 4768 // The list of golden tags for a specific entityType. 4769 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 4770 // The time the entity was indexed. 4771 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 4772 // The programming language of the APM Application. 4773 Language string `json:"language,omitempty"` 4774 // Retrieves a rule. 4775 MetricNormalizationRule MetricNormalizationRule `json:"metricNormalizationRule,omitempty"` 4776 // Retrieves the rules for the application. 4777 MetricNormalizationRules []MetricNormalizationRule `json:"metricNormalizationRules"` 4778 // Make an `Entity` scoped query to NRDB with a NRQL string. 4779 // 4780 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 4781 // 4782 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 4783 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 4784 // The name of this entity. 4785 Name string `json:"name,omitempty"` 4786 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 4787 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 4788 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 4789 // The url to the entity. 4790 Permalink string `json:"permalink,omitempty"` 4791 // Proactive Detection events 4792 ProactiveDetection AiOpsProactiveDetection `json:"proactiveDetection,omitempty"` 4793 // Recent agent activity for an APM Application. 4794 RecentAgentActivity []ApmApplicationRecentAgentActivity `json:"recentAgentActivity,omitempty"` 4795 // Recent violations on the entity. 4796 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 4797 // The recommended service levels for the entity. 4798 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 4799 // Related dashboards results 4800 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 4801 // Related entities result with optional filtering. 4802 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 4803 // Query upstream and downstream transaction dependencies for an entity 4804 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 4805 // A list of the entities' relationships. 4806 // 4807 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 4808 Relationships []EntityRelationship `json:"relationships,omitempty"` 4809 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 4810 Reporting bool `json:"reporting,omitempty"` 4811 // The running versions of the language agent in the APM Application. 4812 RunningAgentVersions ApmApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 4813 // The service level defined for the entity. 4814 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 4815 // Configuration settings for the APM Application 4816 Settings ApmApplicationSettings `json:"settings,omitempty"` 4817 // Retrieves a SQL trace given its ID. 4818 SqlTrace AgentTracesSqlTrace `json:"sqlTrace,omitempty"` 4819 // Retrieve a list of SQL traces that match the given search query. 4820 SqlTraces []AgentTracesSqlTrace `json:"sqlTraces,omitempty"` 4821 // The list of summary metrics. 4822 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 4823 // The tags applied to the entity. 4824 // 4825 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 4826 Tags []EntityTag `json:"tags,omitempty"` 4827 // The tags applied to the entity with their metadata. 4828 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 4829 // Look up Distributed Tracing summary data for the selected `EntityGuid` 4830 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 4831 // Retrieves a transaction trace given its ID. 4832 TransactionTrace AgentTracesTransactionTrace `json:"transactionTrace,omitempty"` 4833 // Retrieve a list of transaction traces that match the given search query. 4834 TransactionTraces []AgentTracesTransactionTrace `json:"transactionTraces,omitempty"` 4835 // The entity's type 4836 Type string `json:"type,omitempty"` 4837 // List of templates availables for this entity. 4838 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 4839 } 4840 4841 // GetAccount returns a pointer to the value of Account from ApmApplicationEntity 4842 func (x ApmApplicationEntity) GetAccount() accounts.AccountOutline { 4843 return x.Account 4844 } 4845 4846 // GetAccountID returns a pointer to the value of AccountID from ApmApplicationEntity 4847 func (x ApmApplicationEntity) GetAccountID() int { 4848 return x.AccountID 4849 } 4850 4851 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmApplicationEntity 4852 func (x ApmApplicationEntity) GetAlertSeverity() EntityAlertSeverity { 4853 return x.AlertSeverity 4854 } 4855 4856 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmApplicationEntity 4857 func (x ApmApplicationEntity) GetAlertStatus() EntityAlertStatus { 4858 return x.AlertStatus 4859 } 4860 4861 // GetAlertViolations returns a pointer to the value of AlertViolations from ApmApplicationEntity 4862 func (x ApmApplicationEntity) GetAlertViolations() []EntityAlertViolation { 4863 return x.AlertViolations 4864 } 4865 4866 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmApplicationEntity 4867 func (x ApmApplicationEntity) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 4868 return x.ApmBrowserSummary 4869 } 4870 4871 // GetApmSettings returns a pointer to the value of ApmSettings from ApmApplicationEntity 4872 func (x ApmApplicationEntity) GetApmSettings() AgentApplicationSettingsApmBase { 4873 return x.ApmSettings 4874 } 4875 4876 // GetApmSummary returns a pointer to the value of ApmSummary from ApmApplicationEntity 4877 func (x ApmApplicationEntity) GetApmSummary() ApmApplicationSummaryData { 4878 return x.ApmSummary 4879 } 4880 4881 // GetApplicationID returns a pointer to the value of ApplicationID from ApmApplicationEntity 4882 func (x ApmApplicationEntity) GetApplicationID() int { 4883 return x.ApplicationID 4884 } 4885 4886 // GetApplicationInstances returns a pointer to the value of ApplicationInstances from ApmApplicationEntity 4887 func (x ApmApplicationEntity) GetApplicationInstances() []AgentEnvironmentApplicationInstance { 4888 return x.ApplicationInstances 4889 } 4890 4891 // GetConnections returns a pointer to the value of Connections from ApmApplicationEntity 4892 func (x ApmApplicationEntity) GetConnections() RelatedExternalsEntityResult { 4893 return x.Connections 4894 } 4895 4896 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmApplicationEntity 4897 func (x ApmApplicationEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 4898 return x.DashboardTemplates 4899 } 4900 4901 // GetDeployments returns a pointer to the value of Deployments from ApmApplicationEntity 4902 func (x ApmApplicationEntity) GetDeployments() []ApmApplicationDeployment { 4903 return x.Deployments 4904 } 4905 4906 // GetDomain returns a pointer to the value of Domain from ApmApplicationEntity 4907 func (x ApmApplicationEntity) GetDomain() string { 4908 return x.Domain 4909 } 4910 4911 // GetEntityType returns a pointer to the value of EntityType from ApmApplicationEntity 4912 func (x ApmApplicationEntity) GetEntityType() EntityType { 4913 return x.EntityType 4914 } 4915 4916 // GetErrorGroup returns a pointer to the value of ErrorGroup from ApmApplicationEntity 4917 func (x ApmApplicationEntity) GetErrorGroup() ErrorTrackingErrorGroup { 4918 return x.ErrorGroup 4919 } 4920 4921 // GetErrorGroupCount returns a pointer to the value of ErrorGroupCount from ApmApplicationEntity 4922 func (x ApmApplicationEntity) GetErrorGroupCount() ErrorTrackingErrorGroupCount { 4923 return x.ErrorGroupCount 4924 } 4925 4926 // GetErrorGroupListing returns a pointer to the value of ErrorGroupListing from ApmApplicationEntity 4927 func (x ApmApplicationEntity) GetErrorGroupListing() []ErrorTrackingErrorGroup { 4928 return x.ErrorGroupListing 4929 } 4930 4931 // GetErrorTrace returns a pointer to the value of ErrorTrace from ApmApplicationEntity 4932 func (x ApmApplicationEntity) GetErrorTrace() AgentTracesErrorTrace { 4933 return x.ErrorTrace 4934 } 4935 4936 // GetErrorTraces returns a pointer to the value of ErrorTraces from ApmApplicationEntity 4937 func (x ApmApplicationEntity) GetErrorTraces() []AgentTracesErrorTrace { 4938 return x.ErrorTraces 4939 } 4940 4941 // GetException returns a pointer to the value of Exception from ApmApplicationEntity 4942 func (x ApmApplicationEntity) GetException() StackTraceApmException { 4943 return x.Exception 4944 } 4945 4946 // GetFlamegraph returns a pointer to the value of Flamegraph from ApmApplicationEntity 4947 func (x ApmApplicationEntity) GetFlamegraph() JavaFlightRecorderFlamegraph { 4948 return x.Flamegraph 4949 } 4950 4951 // GetGUID returns a pointer to the value of GUID from ApmApplicationEntity 4952 func (x ApmApplicationEntity) GetGUID() common.EntityGUID { 4953 return x.GUID 4954 } 4955 4956 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmApplicationEntity 4957 func (x ApmApplicationEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 4958 return x.GoldenMetrics 4959 } 4960 4961 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmApplicationEntity 4962 func (x ApmApplicationEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 4963 return x.GoldenSignalValues 4964 } 4965 4966 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmApplicationEntity 4967 func (x ApmApplicationEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 4968 return x.GoldenSignalValuesV2 4969 } 4970 4971 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmApplicationEntity 4972 func (x ApmApplicationEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 4973 return x.GoldenTags 4974 } 4975 4976 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmApplicationEntity 4977 func (x ApmApplicationEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 4978 return x.IndexedAt 4979 } 4980 4981 // GetLanguage returns a pointer to the value of Language from ApmApplicationEntity 4982 func (x ApmApplicationEntity) GetLanguage() string { 4983 return x.Language 4984 } 4985 4986 // GetMetricNormalizationRule returns a pointer to the value of MetricNormalizationRule from ApmApplicationEntity 4987 func (x ApmApplicationEntity) GetMetricNormalizationRule() MetricNormalizationRule { 4988 return x.MetricNormalizationRule 4989 } 4990 4991 // GetMetricNormalizationRules returns a pointer to the value of MetricNormalizationRules from ApmApplicationEntity 4992 func (x ApmApplicationEntity) GetMetricNormalizationRules() []MetricNormalizationRule { 4993 return x.MetricNormalizationRules 4994 } 4995 4996 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ApmApplicationEntity 4997 func (x ApmApplicationEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 4998 return x.NRDBQuery 4999 } 5000 5001 // GetName returns a pointer to the value of Name from ApmApplicationEntity 5002 func (x ApmApplicationEntity) GetName() string { 5003 return x.Name 5004 } 5005 5006 // GetNerdStorage returns a pointer to the value of NerdStorage from ApmApplicationEntity 5007 func (x ApmApplicationEntity) GetNerdStorage() NerdStorageEntityScope { 5008 return x.NerdStorage 5009 } 5010 5011 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ApmApplicationEntity 5012 func (x ApmApplicationEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 5013 return x.NerdStoreCollection 5014 } 5015 5016 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ApmApplicationEntity 5017 func (x ApmApplicationEntity) GetNerdStoreDocument() NerdStoreDocument { 5018 return x.NerdStoreDocument 5019 } 5020 5021 // GetPermalink returns a pointer to the value of Permalink from ApmApplicationEntity 5022 func (x ApmApplicationEntity) GetPermalink() string { 5023 return x.Permalink 5024 } 5025 5026 // GetProactiveDetection returns a pointer to the value of ProactiveDetection from ApmApplicationEntity 5027 func (x ApmApplicationEntity) GetProactiveDetection() AiOpsProactiveDetection { 5028 return x.ProactiveDetection 5029 } 5030 5031 // GetRecentAgentActivity returns a pointer to the value of RecentAgentActivity from ApmApplicationEntity 5032 func (x ApmApplicationEntity) GetRecentAgentActivity() []ApmApplicationRecentAgentActivity { 5033 return x.RecentAgentActivity 5034 } 5035 5036 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ApmApplicationEntity 5037 func (x ApmApplicationEntity) GetRecentAlertViolations() []EntityAlertViolation { 5038 return x.RecentAlertViolations 5039 } 5040 5041 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmApplicationEntity 5042 func (x ApmApplicationEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 5043 return x.RecommendedServiceLevel 5044 } 5045 5046 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmApplicationEntity 5047 func (x ApmApplicationEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 5048 return x.RelatedDashboards 5049 } 5050 5051 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ApmApplicationEntity 5052 func (x ApmApplicationEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 5053 return x.RelatedEntities 5054 } 5055 5056 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from ApmApplicationEntity 5057 func (x ApmApplicationEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 5058 return x.RelatedTransactions 5059 } 5060 5061 // GetRelationships returns a pointer to the value of Relationships from ApmApplicationEntity 5062 func (x ApmApplicationEntity) GetRelationships() []EntityRelationship { 5063 return x.Relationships 5064 } 5065 5066 // GetReporting returns a pointer to the value of Reporting from ApmApplicationEntity 5067 func (x ApmApplicationEntity) GetReporting() bool { 5068 return x.Reporting 5069 } 5070 5071 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from ApmApplicationEntity 5072 func (x ApmApplicationEntity) GetRunningAgentVersions() ApmApplicationRunningAgentVersions { 5073 return x.RunningAgentVersions 5074 } 5075 5076 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmApplicationEntity 5077 func (x ApmApplicationEntity) GetServiceLevel() ServiceLevelDefinition { 5078 return x.ServiceLevel 5079 } 5080 5081 // GetSettings returns a pointer to the value of Settings from ApmApplicationEntity 5082 func (x ApmApplicationEntity) GetSettings() ApmApplicationSettings { 5083 return x.Settings 5084 } 5085 5086 // GetSqlTrace returns a pointer to the value of SqlTrace from ApmApplicationEntity 5087 func (x ApmApplicationEntity) GetSqlTrace() AgentTracesSqlTrace { 5088 return x.SqlTrace 5089 } 5090 5091 // GetSqlTraces returns a pointer to the value of SqlTraces from ApmApplicationEntity 5092 func (x ApmApplicationEntity) GetSqlTraces() []AgentTracesSqlTrace { 5093 return x.SqlTraces 5094 } 5095 5096 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmApplicationEntity 5097 func (x ApmApplicationEntity) GetSummaryMetrics() []EntitySummaryMetric { 5098 return x.SummaryMetrics 5099 } 5100 5101 // GetTags returns a pointer to the value of Tags from ApmApplicationEntity 5102 func (x ApmApplicationEntity) GetTags() []EntityTag { 5103 return x.Tags 5104 } 5105 5106 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ApmApplicationEntity 5107 func (x ApmApplicationEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 5108 return x.TagsWithMetadata 5109 } 5110 5111 // GetTracingSummary returns a pointer to the value of TracingSummary from ApmApplicationEntity 5112 func (x ApmApplicationEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 5113 return x.TracingSummary 5114 } 5115 5116 // GetTransactionTrace returns a pointer to the value of TransactionTrace from ApmApplicationEntity 5117 func (x ApmApplicationEntity) GetTransactionTrace() AgentTracesTransactionTrace { 5118 return x.TransactionTrace 5119 } 5120 5121 // GetTransactionTraces returns a pointer to the value of TransactionTraces from ApmApplicationEntity 5122 func (x ApmApplicationEntity) GetTransactionTraces() []AgentTracesTransactionTrace { 5123 return x.TransactionTraces 5124 } 5125 5126 // GetType returns a pointer to the value of Type from ApmApplicationEntity 5127 func (x ApmApplicationEntity) GetType() string { 5128 return x.Type 5129 } 5130 5131 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmApplicationEntity 5132 func (x ApmApplicationEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 5133 return x.UiTemplates 5134 } 5135 5136 func (x *ApmApplicationEntity) ImplementsAlertableEntity() {} 5137 5138 func (x *ApmApplicationEntity) ImplementsApmBrowserApplicationEntity() {} 5139 5140 func (x *ApmApplicationEntity) ImplementsEntity() {} 5141 5142 func (x *ApmApplicationEntity) ImplementsApmApplicationEntity() {} 5143 5144 // ApmApplicationEntityOutline - An APM Application entity outline. 5145 type ApmApplicationEntityOutline struct { 5146 Account accounts.AccountOutline `json:"account,omitempty"` 5147 // The New Relic account ID associated with this entity. 5148 AccountID int `json:"accountId,omitempty"` 5149 // The current alerting severity of the entity. 5150 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 5151 // The alert status of the entity. 5152 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 5153 // Summary statistics about the Browser App injected by an APM Application. 5154 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 5155 // Summary statistics about the APM App. 5156 ApmSummary ApmApplicationSummaryData `json:"apmSummary,omitempty"` 5157 // The ID of the APM Application. 5158 ApplicationID int `json:"applicationId,omitempty"` 5159 // The list of dashboard templates available for this entity. 5160 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 5161 // The entity's domain 5162 Domain string `json:"domain,omitempty"` 5163 // A value representing the combination of the entity's domain and type. 5164 EntityType EntityType `json:"entityType,omitempty"` 5165 // A unique entity identifier. 5166 GUID common.EntityGUID `json:"guid,omitempty"` 5167 // The list of golden metrics for a specific entity 5168 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 5169 // Existing API - to be replaced with V2 implementation. 5170 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 5171 // The stored golden signal(s) for the given entity. 5172 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 5173 // The list of golden tags for a specific entityType. 5174 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 5175 // The time the entity was indexed. 5176 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 5177 // The programming language of the APM Application. 5178 Language string `json:"language,omitempty"` 5179 // The name of this entity. 5180 Name string `json:"name,omitempty"` 5181 // The url to the entity. 5182 Permalink string `json:"permalink,omitempty"` 5183 // The recommended service levels for the entity. 5184 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 5185 // Related dashboards results 5186 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 5187 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 5188 Reporting bool `json:"reporting,omitempty"` 5189 // The running versions of the language agent in the APM Application. 5190 RunningAgentVersions ApmApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 5191 // The service level defined for the entity. 5192 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 5193 // Configuration settings for the APM Application 5194 Settings ApmApplicationSettings `json:"settings,omitempty"` 5195 // The list of summary metrics. 5196 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 5197 // The tags applied to the entity. 5198 // 5199 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 5200 Tags []EntityTag `json:"tags,omitempty"` 5201 // The entity's type 5202 Type string `json:"type,omitempty"` 5203 // List of templates availables for this entity. 5204 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 5205 } 5206 5207 // GetAccount returns a pointer to the value of Account from ApmApplicationEntityOutline 5208 func (x ApmApplicationEntityOutline) GetAccount() accounts.AccountOutline { 5209 return x.Account 5210 } 5211 5212 // GetAccountID returns a pointer to the value of AccountID from ApmApplicationEntityOutline 5213 func (x ApmApplicationEntityOutline) GetAccountID() int { 5214 return x.AccountID 5215 } 5216 5217 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmApplicationEntityOutline 5218 func (x ApmApplicationEntityOutline) GetAlertSeverity() EntityAlertSeverity { 5219 return x.AlertSeverity 5220 } 5221 5222 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmApplicationEntityOutline 5223 func (x ApmApplicationEntityOutline) GetAlertStatus() EntityAlertStatus { 5224 return x.AlertStatus 5225 } 5226 5227 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmApplicationEntityOutline 5228 func (x ApmApplicationEntityOutline) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 5229 return x.ApmBrowserSummary 5230 } 5231 5232 // GetApmSummary returns a pointer to the value of ApmSummary from ApmApplicationEntityOutline 5233 func (x ApmApplicationEntityOutline) GetApmSummary() ApmApplicationSummaryData { 5234 return x.ApmSummary 5235 } 5236 5237 // GetApplicationID returns a pointer to the value of ApplicationID from ApmApplicationEntityOutline 5238 func (x ApmApplicationEntityOutline) GetApplicationID() int { 5239 return x.ApplicationID 5240 } 5241 5242 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmApplicationEntityOutline 5243 func (x ApmApplicationEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 5244 return x.DashboardTemplates 5245 } 5246 5247 // GetDomain returns a pointer to the value of Domain from ApmApplicationEntityOutline 5248 func (x ApmApplicationEntityOutline) GetDomain() string { 5249 return x.Domain 5250 } 5251 5252 // GetEntityType returns a pointer to the value of EntityType from ApmApplicationEntityOutline 5253 func (x ApmApplicationEntityOutline) GetEntityType() EntityType { 5254 return x.EntityType 5255 } 5256 5257 // GetGUID returns a pointer to the value of GUID from ApmApplicationEntityOutline 5258 func (x ApmApplicationEntityOutline) GetGUID() common.EntityGUID { 5259 return x.GUID 5260 } 5261 5262 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmApplicationEntityOutline 5263 func (x ApmApplicationEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 5264 return x.GoldenMetrics 5265 } 5266 5267 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmApplicationEntityOutline 5268 func (x ApmApplicationEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 5269 return x.GoldenSignalValues 5270 } 5271 5272 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmApplicationEntityOutline 5273 func (x ApmApplicationEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 5274 return x.GoldenSignalValuesV2 5275 } 5276 5277 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmApplicationEntityOutline 5278 func (x ApmApplicationEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 5279 return x.GoldenTags 5280 } 5281 5282 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmApplicationEntityOutline 5283 func (x ApmApplicationEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 5284 return x.IndexedAt 5285 } 5286 5287 // GetLanguage returns a pointer to the value of Language from ApmApplicationEntityOutline 5288 func (x ApmApplicationEntityOutline) GetLanguage() string { 5289 return x.Language 5290 } 5291 5292 // GetName returns a pointer to the value of Name from ApmApplicationEntityOutline 5293 func (x ApmApplicationEntityOutline) GetName() string { 5294 return x.Name 5295 } 5296 5297 // GetPermalink returns a pointer to the value of Permalink from ApmApplicationEntityOutline 5298 func (x ApmApplicationEntityOutline) GetPermalink() string { 5299 return x.Permalink 5300 } 5301 5302 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmApplicationEntityOutline 5303 func (x ApmApplicationEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 5304 return x.RecommendedServiceLevel 5305 } 5306 5307 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmApplicationEntityOutline 5308 func (x ApmApplicationEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 5309 return x.RelatedDashboards 5310 } 5311 5312 // GetReporting returns a pointer to the value of Reporting from ApmApplicationEntityOutline 5313 func (x ApmApplicationEntityOutline) GetReporting() bool { 5314 return x.Reporting 5315 } 5316 5317 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from ApmApplicationEntityOutline 5318 func (x ApmApplicationEntityOutline) GetRunningAgentVersions() ApmApplicationRunningAgentVersions { 5319 return x.RunningAgentVersions 5320 } 5321 5322 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmApplicationEntityOutline 5323 func (x ApmApplicationEntityOutline) GetServiceLevel() ServiceLevelDefinition { 5324 return x.ServiceLevel 5325 } 5326 5327 // GetSettings returns a pointer to the value of Settings from ApmApplicationEntityOutline 5328 func (x ApmApplicationEntityOutline) GetSettings() ApmApplicationSettings { 5329 return x.Settings 5330 } 5331 5332 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmApplicationEntityOutline 5333 func (x ApmApplicationEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 5334 return x.SummaryMetrics 5335 } 5336 5337 // GetTags returns a pointer to the value of Tags from ApmApplicationEntityOutline 5338 func (x ApmApplicationEntityOutline) GetTags() []EntityTag { 5339 return x.Tags 5340 } 5341 5342 // GetType returns a pointer to the value of Type from ApmApplicationEntityOutline 5343 func (x ApmApplicationEntityOutline) GetType() string { 5344 return x.Type 5345 } 5346 5347 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmApplicationEntityOutline 5348 func (x ApmApplicationEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 5349 return x.UiTemplates 5350 } 5351 5352 func (x *ApmApplicationEntityOutline) ImplementsAlertableEntityOutline() {} 5353 5354 func (x *ApmApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline() {} 5355 5356 func (x *ApmApplicationEntityOutline) ImplementsEntityOutline() {} 5357 5358 func (x *ApmApplicationEntityOutline) ImplementsApmApplicationEntityOutline() {} 5359 5360 // ApmApplicationRecentAgentActivity - A recent agent acvitiy on an APM application. 5361 type ApmApplicationRecentAgentActivity struct { 5362 // The category of activity that occurred. 5363 ActivityType ApmApplicationRecentActivityType `json:"activityType,omitempty"` 5364 // Description of the recent acvitiy. 5365 Description string `json:"description,omitempty"` 5366 // A link to view the recent activity in the UI. 5367 Permalink string `json:"permalink,omitempty"` 5368 // The moment the recent activity occurred. 5369 Timestamp *nrtime.EpochMilliseconds `json:"timestamp,omitempty"` 5370 } 5371 5372 // ApmApplicationRunningAgentVersions - Represents the currently running agent versions in an APM Application. 5373 // An application could be running multiple versions of an agent (across different hosts, for example). 5374 type ApmApplicationRunningAgentVersions struct { 5375 // The maximum (newest) language agent version running in the APM Application. 5376 MaxVersion string `json:"maxVersion,omitempty"` 5377 // The minimum (oldest) language agent version running in the APM Application. 5378 MinVersion string `json:"minVersion,omitempty"` 5379 } 5380 5381 // ApmApplicationSettings - Configuration settings for the APM Application 5382 type ApmApplicationSettings struct { 5383 // The current Apdex target setting 5384 ApdexTarget float64 `json:"apdexTarget,omitempty"` 5385 // State of server-side configuration setting 5386 ServerSideConfig bool `json:"serverSideConfig,omitempty"` 5387 } 5388 5389 // ApmApplicationSummaryData - Summary statistics about the APM App. 5390 type ApmApplicationSummaryData struct { 5391 // The apdex score. For more details on the use of apdex, visit [our docs](https://docs.newrelic.com/docs/apm/new-relic-apm/apdex/apdex-measure-user-satisfaction). 5392 ApdexScore float64 `json:"apdexScore,omitempty"` 5393 // The percentage of responses to all transactions with an error. 5394 ErrorRate float64 `json:"errorRate,omitempty"` 5395 // The number of hosts this application is running on. 5396 HostCount int `json:"hostCount,omitempty"` 5397 // The number of instances of this application running. 5398 InstanceCount int `json:"instanceCount,omitempty"` 5399 // The average response time for non-web transactions in seconds. 5400 NonWebResponseTimeAverage nrtime.Seconds `json:"nonWebResponseTimeAverage,omitempty"` 5401 // The number of non-web transactions per minute. 5402 NonWebThroughput float64 `json:"nonWebThroughput,omitempty"` 5403 // The average response time for all transactions in seconds. 5404 ResponseTimeAverage nrtime.Seconds `json:"responseTimeAverage,omitempty"` 5405 // The number of all transactions per minute. 5406 Throughput float64 `json:"throughput,omitempty"` 5407 // The average response time for web transactions in seconds. 5408 WebResponseTimeAverage nrtime.Seconds `json:"webResponseTimeAverage,omitempty"` 5409 // The number of web transactions per minute. 5410 WebThroughput float64 `json:"webThroughput,omitempty"` 5411 } 5412 5413 // ApmBrowserApplicationEntity - The `ApmBrowserApplicationEntity` interface provides detailed information for the Browser App injected by an APM Application. 5414 type ApmBrowserApplicationEntity struct { 5415 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 5416 } 5417 5418 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmBrowserApplicationEntity 5419 func (x ApmBrowserApplicationEntity) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 5420 return x.ApmBrowserSummary 5421 } 5422 5423 func (x *ApmBrowserApplicationEntity) ImplementsApmBrowserApplicationEntity() {} 5424 5425 // ApmBrowserApplicationEntityOutline - The `ApmBrowserApplicationEntityOutline` interface provides detailed information for the Browser App injected by an APM Application. 5426 type ApmBrowserApplicationEntityOutline struct { 5427 ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` 5428 } 5429 5430 // GetApmBrowserSummary returns a pointer to the value of ApmBrowserSummary from ApmBrowserApplicationEntityOutline 5431 func (x ApmBrowserApplicationEntityOutline) GetApmBrowserSummary() ApmBrowserApplicationSummaryData { 5432 return x.ApmBrowserSummary 5433 } 5434 5435 func (x *ApmBrowserApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline() {} 5436 5437 // ApmBrowserApplicationSummaryData - Summary statistics about the Browser App injected by the APM Application. 5438 type ApmBrowserApplicationSummaryData struct { 5439 // The number of AJAX requests per minute 5440 AjaxRequestThroughput float64 `json:"ajaxRequestThroughput,omitempty"` 5441 // The average AJAX response time in seconds. 5442 AjaxResponseTimeAverage nrtime.Seconds `json:"ajaxResponseTimeAverage,omitempty"` 5443 // The percentage of page views with a JS error. 5444 JsErrorRate float64 `json:"jsErrorRate,omitempty"` 5445 // The number of page loads per minute 5446 PageLoadThroughput float64 `json:"pageLoadThroughput,omitempty"` 5447 // The average page view time in seconds. 5448 PageLoadTimeAverage float64 `json:"pageLoadTimeAverage,omitempty"` 5449 } 5450 5451 // ApmDatabaseInstanceEntity - A database instance seen by an APM Application 5452 type ApmDatabaseInstanceEntity struct { 5453 Account accounts.AccountOutline `json:"account,omitempty"` 5454 // The New Relic account ID associated with this entity. 5455 AccountID int `json:"accountId,omitempty"` 5456 // The current alerting severity of the entity. 5457 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 5458 // The alert status of the entity. 5459 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 5460 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 5461 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 5462 // The list of dashboard templates available for this entity. 5463 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 5464 // The entity's domain 5465 Domain string `json:"domain,omitempty"` 5466 // A value representing the combination of the entity's domain and type. 5467 EntityType EntityType `json:"entityType,omitempty"` 5468 // A unique entity identifier. 5469 GUID common.EntityGUID `json:"guid,omitempty"` 5470 // The list of golden metrics for a specific entity 5471 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 5472 // Existing API - to be replaced with V2 implementation. 5473 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 5474 // The stored golden signal(s) for the given entity. 5475 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 5476 // The list of golden tags for a specific entityType. 5477 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 5478 // The host the database instance is running on. 5479 Host string `json:"host,omitempty"` 5480 // The time the entity was indexed. 5481 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 5482 // Make an `Entity` scoped query to NRDB with a NRQL string. 5483 // 5484 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 5485 // 5486 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 5487 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 5488 // The name of this entity. 5489 Name string `json:"name,omitempty"` 5490 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 5491 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 5492 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 5493 // The url to the entity. 5494 Permalink string `json:"permalink,omitempty"` 5495 // The port or path the database instance is running on. ex: `3306` | `/tmp/mysql.sock` 5496 PortOrPath string `json:"portOrPath,omitempty"` 5497 // Recent violations on the entity. 5498 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 5499 // The recommended service levels for the entity. 5500 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 5501 // Related dashboards results 5502 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 5503 // Related entities result with optional filtering. 5504 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 5505 // A list of the entities' relationships. 5506 // 5507 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 5508 Relationships []EntityRelationship `json:"relationships,omitempty"` 5509 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 5510 Reporting bool `json:"reporting,omitempty"` 5511 // The service level defined for the entity. 5512 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 5513 // The list of summary metrics. 5514 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 5515 // The tags applied to the entity. 5516 // 5517 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 5518 Tags []EntityTag `json:"tags,omitempty"` 5519 // The tags applied to the entity with their metadata. 5520 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 5521 // Look up Distributed Tracing summary data for the selected `EntityGuid` 5522 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 5523 // The entity's type 5524 Type string `json:"type,omitempty"` 5525 // List of templates availables for this entity. 5526 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 5527 // The type of database. ex: `Postgres` | `Redis` 5528 Vendor string `json:"vendor,omitempty"` 5529 } 5530 5531 // GetAccount returns a pointer to the value of Account from ApmDatabaseInstanceEntity 5532 func (x ApmDatabaseInstanceEntity) GetAccount() accounts.AccountOutline { 5533 return x.Account 5534 } 5535 5536 // GetAccountID returns a pointer to the value of AccountID from ApmDatabaseInstanceEntity 5537 func (x ApmDatabaseInstanceEntity) GetAccountID() int { 5538 return x.AccountID 5539 } 5540 5541 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmDatabaseInstanceEntity 5542 func (x ApmDatabaseInstanceEntity) GetAlertSeverity() EntityAlertSeverity { 5543 return x.AlertSeverity 5544 } 5545 5546 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmDatabaseInstanceEntity 5547 func (x ApmDatabaseInstanceEntity) GetAlertStatus() EntityAlertStatus { 5548 return x.AlertStatus 5549 } 5550 5551 // GetAlertViolations returns a pointer to the value of AlertViolations from ApmDatabaseInstanceEntity 5552 func (x ApmDatabaseInstanceEntity) GetAlertViolations() []EntityAlertViolation { 5553 return x.AlertViolations 5554 } 5555 5556 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmDatabaseInstanceEntity 5557 func (x ApmDatabaseInstanceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 5558 return x.DashboardTemplates 5559 } 5560 5561 // GetDomain returns a pointer to the value of Domain from ApmDatabaseInstanceEntity 5562 func (x ApmDatabaseInstanceEntity) GetDomain() string { 5563 return x.Domain 5564 } 5565 5566 // GetEntityType returns a pointer to the value of EntityType from ApmDatabaseInstanceEntity 5567 func (x ApmDatabaseInstanceEntity) GetEntityType() EntityType { 5568 return x.EntityType 5569 } 5570 5571 // GetGUID returns a pointer to the value of GUID from ApmDatabaseInstanceEntity 5572 func (x ApmDatabaseInstanceEntity) GetGUID() common.EntityGUID { 5573 return x.GUID 5574 } 5575 5576 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmDatabaseInstanceEntity 5577 func (x ApmDatabaseInstanceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 5578 return x.GoldenMetrics 5579 } 5580 5581 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmDatabaseInstanceEntity 5582 func (x ApmDatabaseInstanceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 5583 return x.GoldenSignalValues 5584 } 5585 5586 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmDatabaseInstanceEntity 5587 func (x ApmDatabaseInstanceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 5588 return x.GoldenSignalValuesV2 5589 } 5590 5591 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmDatabaseInstanceEntity 5592 func (x ApmDatabaseInstanceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 5593 return x.GoldenTags 5594 } 5595 5596 // GetHost returns a pointer to the value of Host from ApmDatabaseInstanceEntity 5597 func (x ApmDatabaseInstanceEntity) GetHost() string { 5598 return x.Host 5599 } 5600 5601 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmDatabaseInstanceEntity 5602 func (x ApmDatabaseInstanceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 5603 return x.IndexedAt 5604 } 5605 5606 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ApmDatabaseInstanceEntity 5607 func (x ApmDatabaseInstanceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 5608 return x.NRDBQuery 5609 } 5610 5611 // GetName returns a pointer to the value of Name from ApmDatabaseInstanceEntity 5612 func (x ApmDatabaseInstanceEntity) GetName() string { 5613 return x.Name 5614 } 5615 5616 // GetNerdStorage returns a pointer to the value of NerdStorage from ApmDatabaseInstanceEntity 5617 func (x ApmDatabaseInstanceEntity) GetNerdStorage() NerdStorageEntityScope { 5618 return x.NerdStorage 5619 } 5620 5621 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ApmDatabaseInstanceEntity 5622 func (x ApmDatabaseInstanceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 5623 return x.NerdStoreCollection 5624 } 5625 5626 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ApmDatabaseInstanceEntity 5627 func (x ApmDatabaseInstanceEntity) GetNerdStoreDocument() NerdStoreDocument { 5628 return x.NerdStoreDocument 5629 } 5630 5631 // GetPermalink returns a pointer to the value of Permalink from ApmDatabaseInstanceEntity 5632 func (x ApmDatabaseInstanceEntity) GetPermalink() string { 5633 return x.Permalink 5634 } 5635 5636 // GetPortOrPath returns a pointer to the value of PortOrPath from ApmDatabaseInstanceEntity 5637 func (x ApmDatabaseInstanceEntity) GetPortOrPath() string { 5638 return x.PortOrPath 5639 } 5640 5641 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ApmDatabaseInstanceEntity 5642 func (x ApmDatabaseInstanceEntity) GetRecentAlertViolations() []EntityAlertViolation { 5643 return x.RecentAlertViolations 5644 } 5645 5646 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmDatabaseInstanceEntity 5647 func (x ApmDatabaseInstanceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 5648 return x.RecommendedServiceLevel 5649 } 5650 5651 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmDatabaseInstanceEntity 5652 func (x ApmDatabaseInstanceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 5653 return x.RelatedDashboards 5654 } 5655 5656 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ApmDatabaseInstanceEntity 5657 func (x ApmDatabaseInstanceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 5658 return x.RelatedEntities 5659 } 5660 5661 // GetRelationships returns a pointer to the value of Relationships from ApmDatabaseInstanceEntity 5662 func (x ApmDatabaseInstanceEntity) GetRelationships() []EntityRelationship { 5663 return x.Relationships 5664 } 5665 5666 // GetReporting returns a pointer to the value of Reporting from ApmDatabaseInstanceEntity 5667 func (x ApmDatabaseInstanceEntity) GetReporting() bool { 5668 return x.Reporting 5669 } 5670 5671 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmDatabaseInstanceEntity 5672 func (x ApmDatabaseInstanceEntity) GetServiceLevel() ServiceLevelDefinition { 5673 return x.ServiceLevel 5674 } 5675 5676 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmDatabaseInstanceEntity 5677 func (x ApmDatabaseInstanceEntity) GetSummaryMetrics() []EntitySummaryMetric { 5678 return x.SummaryMetrics 5679 } 5680 5681 // GetTags returns a pointer to the value of Tags from ApmDatabaseInstanceEntity 5682 func (x ApmDatabaseInstanceEntity) GetTags() []EntityTag { 5683 return x.Tags 5684 } 5685 5686 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ApmDatabaseInstanceEntity 5687 func (x ApmDatabaseInstanceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 5688 return x.TagsWithMetadata 5689 } 5690 5691 // GetTracingSummary returns a pointer to the value of TracingSummary from ApmDatabaseInstanceEntity 5692 func (x ApmDatabaseInstanceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 5693 return x.TracingSummary 5694 } 5695 5696 // GetType returns a pointer to the value of Type from ApmDatabaseInstanceEntity 5697 func (x ApmDatabaseInstanceEntity) GetType() string { 5698 return x.Type 5699 } 5700 5701 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmDatabaseInstanceEntity 5702 func (x ApmDatabaseInstanceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 5703 return x.UiTemplates 5704 } 5705 5706 // GetVendor returns a pointer to the value of Vendor from ApmDatabaseInstanceEntity 5707 func (x ApmDatabaseInstanceEntity) GetVendor() string { 5708 return x.Vendor 5709 } 5710 5711 func (x *ApmDatabaseInstanceEntity) ImplementsAlertableEntity() {} 5712 5713 func (x *ApmDatabaseInstanceEntity) ImplementsEntity() {} 5714 5715 // ApmDatabaseInstanceEntityOutline - A database instance seen by an APM Application 5716 type ApmDatabaseInstanceEntityOutline struct { 5717 Account accounts.AccountOutline `json:"account,omitempty"` 5718 // The New Relic account ID associated with this entity. 5719 AccountID int `json:"accountId,omitempty"` 5720 // The current alerting severity of the entity. 5721 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 5722 // The alert status of the entity. 5723 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 5724 // The list of dashboard templates available for this entity. 5725 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 5726 // The entity's domain 5727 Domain string `json:"domain,omitempty"` 5728 // A value representing the combination of the entity's domain and type. 5729 EntityType EntityType `json:"entityType,omitempty"` 5730 // A unique entity identifier. 5731 GUID common.EntityGUID `json:"guid,omitempty"` 5732 // The list of golden metrics for a specific entity 5733 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 5734 // Existing API - to be replaced with V2 implementation. 5735 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 5736 // The stored golden signal(s) for the given entity. 5737 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 5738 // The list of golden tags for a specific entityType. 5739 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 5740 // The host the database instance is running on. 5741 Host string `json:"host,omitempty"` 5742 // The time the entity was indexed. 5743 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 5744 // The name of this entity. 5745 Name string `json:"name,omitempty"` 5746 // The url to the entity. 5747 Permalink string `json:"permalink,omitempty"` 5748 // The port or path the database instance is running on. ex: `3306` | `/tmp/mysql.sock` 5749 PortOrPath string `json:"portOrPath,omitempty"` 5750 // The recommended service levels for the entity. 5751 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 5752 // Related dashboards results 5753 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 5754 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 5755 Reporting bool `json:"reporting,omitempty"` 5756 // The service level defined for the entity. 5757 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 5758 // The list of summary metrics. 5759 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 5760 // The tags applied to the entity. 5761 // 5762 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 5763 Tags []EntityTag `json:"tags,omitempty"` 5764 // The entity's type 5765 Type string `json:"type,omitempty"` 5766 // List of templates availables for this entity. 5767 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 5768 // The type of database. ex: `Postgres` | `Redis` 5769 Vendor string `json:"vendor,omitempty"` 5770 } 5771 5772 // GetAccount returns a pointer to the value of Account from ApmDatabaseInstanceEntityOutline 5773 func (x ApmDatabaseInstanceEntityOutline) GetAccount() accounts.AccountOutline { 5774 return x.Account 5775 } 5776 5777 // GetAccountID returns a pointer to the value of AccountID from ApmDatabaseInstanceEntityOutline 5778 func (x ApmDatabaseInstanceEntityOutline) GetAccountID() int { 5779 return x.AccountID 5780 } 5781 5782 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmDatabaseInstanceEntityOutline 5783 func (x ApmDatabaseInstanceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 5784 return x.AlertSeverity 5785 } 5786 5787 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmDatabaseInstanceEntityOutline 5788 func (x ApmDatabaseInstanceEntityOutline) GetAlertStatus() EntityAlertStatus { 5789 return x.AlertStatus 5790 } 5791 5792 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmDatabaseInstanceEntityOutline 5793 func (x ApmDatabaseInstanceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 5794 return x.DashboardTemplates 5795 } 5796 5797 // GetDomain returns a pointer to the value of Domain from ApmDatabaseInstanceEntityOutline 5798 func (x ApmDatabaseInstanceEntityOutline) GetDomain() string { 5799 return x.Domain 5800 } 5801 5802 // GetEntityType returns a pointer to the value of EntityType from ApmDatabaseInstanceEntityOutline 5803 func (x ApmDatabaseInstanceEntityOutline) GetEntityType() EntityType { 5804 return x.EntityType 5805 } 5806 5807 // GetGUID returns a pointer to the value of GUID from ApmDatabaseInstanceEntityOutline 5808 func (x ApmDatabaseInstanceEntityOutline) GetGUID() common.EntityGUID { 5809 return x.GUID 5810 } 5811 5812 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmDatabaseInstanceEntityOutline 5813 func (x ApmDatabaseInstanceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 5814 return x.GoldenMetrics 5815 } 5816 5817 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmDatabaseInstanceEntityOutline 5818 func (x ApmDatabaseInstanceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 5819 return x.GoldenSignalValues 5820 } 5821 5822 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmDatabaseInstanceEntityOutline 5823 func (x ApmDatabaseInstanceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 5824 return x.GoldenSignalValuesV2 5825 } 5826 5827 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmDatabaseInstanceEntityOutline 5828 func (x ApmDatabaseInstanceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 5829 return x.GoldenTags 5830 } 5831 5832 // GetHost returns a pointer to the value of Host from ApmDatabaseInstanceEntityOutline 5833 func (x ApmDatabaseInstanceEntityOutline) GetHost() string { 5834 return x.Host 5835 } 5836 5837 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmDatabaseInstanceEntityOutline 5838 func (x ApmDatabaseInstanceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 5839 return x.IndexedAt 5840 } 5841 5842 // GetName returns a pointer to the value of Name from ApmDatabaseInstanceEntityOutline 5843 func (x ApmDatabaseInstanceEntityOutline) GetName() string { 5844 return x.Name 5845 } 5846 5847 // GetPermalink returns a pointer to the value of Permalink from ApmDatabaseInstanceEntityOutline 5848 func (x ApmDatabaseInstanceEntityOutline) GetPermalink() string { 5849 return x.Permalink 5850 } 5851 5852 // GetPortOrPath returns a pointer to the value of PortOrPath from ApmDatabaseInstanceEntityOutline 5853 func (x ApmDatabaseInstanceEntityOutline) GetPortOrPath() string { 5854 return x.PortOrPath 5855 } 5856 5857 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmDatabaseInstanceEntityOutline 5858 func (x ApmDatabaseInstanceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 5859 return x.RecommendedServiceLevel 5860 } 5861 5862 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmDatabaseInstanceEntityOutline 5863 func (x ApmDatabaseInstanceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 5864 return x.RelatedDashboards 5865 } 5866 5867 // GetReporting returns a pointer to the value of Reporting from ApmDatabaseInstanceEntityOutline 5868 func (x ApmDatabaseInstanceEntityOutline) GetReporting() bool { 5869 return x.Reporting 5870 } 5871 5872 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmDatabaseInstanceEntityOutline 5873 func (x ApmDatabaseInstanceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 5874 return x.ServiceLevel 5875 } 5876 5877 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmDatabaseInstanceEntityOutline 5878 func (x ApmDatabaseInstanceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 5879 return x.SummaryMetrics 5880 } 5881 5882 // GetTags returns a pointer to the value of Tags from ApmDatabaseInstanceEntityOutline 5883 func (x ApmDatabaseInstanceEntityOutline) GetTags() []EntityTag { 5884 return x.Tags 5885 } 5886 5887 // GetType returns a pointer to the value of Type from ApmDatabaseInstanceEntityOutline 5888 func (x ApmDatabaseInstanceEntityOutline) GetType() string { 5889 return x.Type 5890 } 5891 5892 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmDatabaseInstanceEntityOutline 5893 func (x ApmDatabaseInstanceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 5894 return x.UiTemplates 5895 } 5896 5897 // GetVendor returns a pointer to the value of Vendor from ApmDatabaseInstanceEntityOutline 5898 func (x ApmDatabaseInstanceEntityOutline) GetVendor() string { 5899 return x.Vendor 5900 } 5901 5902 func (x *ApmDatabaseInstanceEntityOutline) ImplementsAlertableEntityOutline() {} 5903 5904 func (x *ApmDatabaseInstanceEntityOutline) ImplementsEntityOutline() {} 5905 5906 // ApmExternalServiceEntity - An external service seen by an APM Application. 5907 type ApmExternalServiceEntity struct { 5908 Account accounts.AccountOutline `json:"account,omitempty"` 5909 // The New Relic account ID associated with this entity. 5910 AccountID int `json:"accountId,omitempty"` 5911 // The current alerting severity of the entity. 5912 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 5913 // The alert status of the entity. 5914 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 5915 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 5916 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 5917 // The list of dashboard templates available for this entity. 5918 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 5919 // The entity's domain 5920 Domain string `json:"domain,omitempty"` 5921 // A value representing the combination of the entity's domain and type. 5922 EntityType EntityType `json:"entityType,omitempty"` 5923 ExternalSummary ApmExternalServiceSummaryData `json:"externalSummary,omitempty"` 5924 // A unique entity identifier. 5925 GUID common.EntityGUID `json:"guid,omitempty"` 5926 // The list of golden metrics for a specific entity 5927 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 5928 // Existing API - to be replaced with V2 implementation. 5929 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 5930 // The stored golden signal(s) for the given entity. 5931 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 5932 // The list of golden tags for a specific entityType. 5933 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 5934 // The host of the external service. 5935 Host string `json:"host,omitempty"` 5936 // The time the entity was indexed. 5937 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 5938 // Make an `Entity` scoped query to NRDB with a NRQL string. 5939 // 5940 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 5941 // 5942 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 5943 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 5944 // The name of this entity. 5945 Name string `json:"name,omitempty"` 5946 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 5947 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 5948 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 5949 // The url to the entity. 5950 Permalink string `json:"permalink,omitempty"` 5951 // Recent violations on the entity. 5952 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 5953 // The recommended service levels for the entity. 5954 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 5955 // Related dashboards results 5956 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 5957 // Related entities result with optional filtering. 5958 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 5959 // A list of the entities' relationships. 5960 // 5961 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 5962 Relationships []EntityRelationship `json:"relationships,omitempty"` 5963 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 5964 Reporting bool `json:"reporting,omitempty"` 5965 // The service level defined for the entity. 5966 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 5967 // The list of summary metrics. 5968 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 5969 // The tags applied to the entity. 5970 // 5971 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 5972 Tags []EntityTag `json:"tags,omitempty"` 5973 // The tags applied to the entity with their metadata. 5974 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 5975 // Look up Distributed Tracing summary data for the selected `EntityGuid` 5976 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 5977 // The entity's type 5978 Type string `json:"type,omitempty"` 5979 // List of templates availables for this entity. 5980 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 5981 } 5982 5983 // GetAccount returns a pointer to the value of Account from ApmExternalServiceEntity 5984 func (x ApmExternalServiceEntity) GetAccount() accounts.AccountOutline { 5985 return x.Account 5986 } 5987 5988 // GetAccountID returns a pointer to the value of AccountID from ApmExternalServiceEntity 5989 func (x ApmExternalServiceEntity) GetAccountID() int { 5990 return x.AccountID 5991 } 5992 5993 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmExternalServiceEntity 5994 func (x ApmExternalServiceEntity) GetAlertSeverity() EntityAlertSeverity { 5995 return x.AlertSeverity 5996 } 5997 5998 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmExternalServiceEntity 5999 func (x ApmExternalServiceEntity) GetAlertStatus() EntityAlertStatus { 6000 return x.AlertStatus 6001 } 6002 6003 // GetAlertViolations returns a pointer to the value of AlertViolations from ApmExternalServiceEntity 6004 func (x ApmExternalServiceEntity) GetAlertViolations() []EntityAlertViolation { 6005 return x.AlertViolations 6006 } 6007 6008 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmExternalServiceEntity 6009 func (x ApmExternalServiceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 6010 return x.DashboardTemplates 6011 } 6012 6013 // GetDomain returns a pointer to the value of Domain from ApmExternalServiceEntity 6014 func (x ApmExternalServiceEntity) GetDomain() string { 6015 return x.Domain 6016 } 6017 6018 // GetEntityType returns a pointer to the value of EntityType from ApmExternalServiceEntity 6019 func (x ApmExternalServiceEntity) GetEntityType() EntityType { 6020 return x.EntityType 6021 } 6022 6023 // GetExternalSummary returns a pointer to the value of ExternalSummary from ApmExternalServiceEntity 6024 func (x ApmExternalServiceEntity) GetExternalSummary() ApmExternalServiceSummaryData { 6025 return x.ExternalSummary 6026 } 6027 6028 // GetGUID returns a pointer to the value of GUID from ApmExternalServiceEntity 6029 func (x ApmExternalServiceEntity) GetGUID() common.EntityGUID { 6030 return x.GUID 6031 } 6032 6033 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmExternalServiceEntity 6034 func (x ApmExternalServiceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 6035 return x.GoldenMetrics 6036 } 6037 6038 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmExternalServiceEntity 6039 func (x ApmExternalServiceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 6040 return x.GoldenSignalValues 6041 } 6042 6043 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmExternalServiceEntity 6044 func (x ApmExternalServiceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 6045 return x.GoldenSignalValuesV2 6046 } 6047 6048 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmExternalServiceEntity 6049 func (x ApmExternalServiceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 6050 return x.GoldenTags 6051 } 6052 6053 // GetHost returns a pointer to the value of Host from ApmExternalServiceEntity 6054 func (x ApmExternalServiceEntity) GetHost() string { 6055 return x.Host 6056 } 6057 6058 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmExternalServiceEntity 6059 func (x ApmExternalServiceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 6060 return x.IndexedAt 6061 } 6062 6063 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ApmExternalServiceEntity 6064 func (x ApmExternalServiceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 6065 return x.NRDBQuery 6066 } 6067 6068 // GetName returns a pointer to the value of Name from ApmExternalServiceEntity 6069 func (x ApmExternalServiceEntity) GetName() string { 6070 return x.Name 6071 } 6072 6073 // GetNerdStorage returns a pointer to the value of NerdStorage from ApmExternalServiceEntity 6074 func (x ApmExternalServiceEntity) GetNerdStorage() NerdStorageEntityScope { 6075 return x.NerdStorage 6076 } 6077 6078 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ApmExternalServiceEntity 6079 func (x ApmExternalServiceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 6080 return x.NerdStoreCollection 6081 } 6082 6083 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ApmExternalServiceEntity 6084 func (x ApmExternalServiceEntity) GetNerdStoreDocument() NerdStoreDocument { 6085 return x.NerdStoreDocument 6086 } 6087 6088 // GetPermalink returns a pointer to the value of Permalink from ApmExternalServiceEntity 6089 func (x ApmExternalServiceEntity) GetPermalink() string { 6090 return x.Permalink 6091 } 6092 6093 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ApmExternalServiceEntity 6094 func (x ApmExternalServiceEntity) GetRecentAlertViolations() []EntityAlertViolation { 6095 return x.RecentAlertViolations 6096 } 6097 6098 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmExternalServiceEntity 6099 func (x ApmExternalServiceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 6100 return x.RecommendedServiceLevel 6101 } 6102 6103 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmExternalServiceEntity 6104 func (x ApmExternalServiceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 6105 return x.RelatedDashboards 6106 } 6107 6108 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ApmExternalServiceEntity 6109 func (x ApmExternalServiceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 6110 return x.RelatedEntities 6111 } 6112 6113 // GetRelationships returns a pointer to the value of Relationships from ApmExternalServiceEntity 6114 func (x ApmExternalServiceEntity) GetRelationships() []EntityRelationship { 6115 return x.Relationships 6116 } 6117 6118 // GetReporting returns a pointer to the value of Reporting from ApmExternalServiceEntity 6119 func (x ApmExternalServiceEntity) GetReporting() bool { 6120 return x.Reporting 6121 } 6122 6123 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmExternalServiceEntity 6124 func (x ApmExternalServiceEntity) GetServiceLevel() ServiceLevelDefinition { 6125 return x.ServiceLevel 6126 } 6127 6128 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmExternalServiceEntity 6129 func (x ApmExternalServiceEntity) GetSummaryMetrics() []EntitySummaryMetric { 6130 return x.SummaryMetrics 6131 } 6132 6133 // GetTags returns a pointer to the value of Tags from ApmExternalServiceEntity 6134 func (x ApmExternalServiceEntity) GetTags() []EntityTag { 6135 return x.Tags 6136 } 6137 6138 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ApmExternalServiceEntity 6139 func (x ApmExternalServiceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 6140 return x.TagsWithMetadata 6141 } 6142 6143 // GetTracingSummary returns a pointer to the value of TracingSummary from ApmExternalServiceEntity 6144 func (x ApmExternalServiceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 6145 return x.TracingSummary 6146 } 6147 6148 // GetType returns a pointer to the value of Type from ApmExternalServiceEntity 6149 func (x ApmExternalServiceEntity) GetType() string { 6150 return x.Type 6151 } 6152 6153 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmExternalServiceEntity 6154 func (x ApmExternalServiceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 6155 return x.UiTemplates 6156 } 6157 6158 func (x *ApmExternalServiceEntity) ImplementsAlertableEntity() {} 6159 6160 func (x *ApmExternalServiceEntity) ImplementsEntity() {} 6161 6162 // ApmExternalServiceEntityOutline - An external service seen by an APM Application. 6163 type ApmExternalServiceEntityOutline struct { 6164 Account accounts.AccountOutline `json:"account,omitempty"` 6165 // The New Relic account ID associated with this entity. 6166 AccountID int `json:"accountId,omitempty"` 6167 // The current alerting severity of the entity. 6168 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 6169 // The alert status of the entity. 6170 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 6171 // The list of dashboard templates available for this entity. 6172 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 6173 // The entity's domain 6174 Domain string `json:"domain,omitempty"` 6175 // A value representing the combination of the entity's domain and type. 6176 EntityType EntityType `json:"entityType,omitempty"` 6177 ExternalSummary ApmExternalServiceSummaryData `json:"externalSummary,omitempty"` 6178 // A unique entity identifier. 6179 GUID common.EntityGUID `json:"guid,omitempty"` 6180 // The list of golden metrics for a specific entity 6181 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 6182 // Existing API - to be replaced with V2 implementation. 6183 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 6184 // The stored golden signal(s) for the given entity. 6185 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 6186 // The list of golden tags for a specific entityType. 6187 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 6188 // The host of the external service. 6189 Host string `json:"host,omitempty"` 6190 // The time the entity was indexed. 6191 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 6192 // The name of this entity. 6193 Name string `json:"name,omitempty"` 6194 // The url to the entity. 6195 Permalink string `json:"permalink,omitempty"` 6196 // The recommended service levels for the entity. 6197 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 6198 // Related dashboards results 6199 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 6200 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 6201 Reporting bool `json:"reporting,omitempty"` 6202 // The service level defined for the entity. 6203 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 6204 // The list of summary metrics. 6205 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 6206 // The tags applied to the entity. 6207 // 6208 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 6209 Tags []EntityTag `json:"tags,omitempty"` 6210 // The entity's type 6211 Type string `json:"type,omitempty"` 6212 // List of templates availables for this entity. 6213 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 6214 } 6215 6216 // GetAccount returns a pointer to the value of Account from ApmExternalServiceEntityOutline 6217 func (x ApmExternalServiceEntityOutline) GetAccount() accounts.AccountOutline { 6218 return x.Account 6219 } 6220 6221 // GetAccountID returns a pointer to the value of AccountID from ApmExternalServiceEntityOutline 6222 func (x ApmExternalServiceEntityOutline) GetAccountID() int { 6223 return x.AccountID 6224 } 6225 6226 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ApmExternalServiceEntityOutline 6227 func (x ApmExternalServiceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 6228 return x.AlertSeverity 6229 } 6230 6231 // GetAlertStatus returns a pointer to the value of AlertStatus from ApmExternalServiceEntityOutline 6232 func (x ApmExternalServiceEntityOutline) GetAlertStatus() EntityAlertStatus { 6233 return x.AlertStatus 6234 } 6235 6236 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ApmExternalServiceEntityOutline 6237 func (x ApmExternalServiceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 6238 return x.DashboardTemplates 6239 } 6240 6241 // GetDomain returns a pointer to the value of Domain from ApmExternalServiceEntityOutline 6242 func (x ApmExternalServiceEntityOutline) GetDomain() string { 6243 return x.Domain 6244 } 6245 6246 // GetEntityType returns a pointer to the value of EntityType from ApmExternalServiceEntityOutline 6247 func (x ApmExternalServiceEntityOutline) GetEntityType() EntityType { 6248 return x.EntityType 6249 } 6250 6251 // GetExternalSummary returns a pointer to the value of ExternalSummary from ApmExternalServiceEntityOutline 6252 func (x ApmExternalServiceEntityOutline) GetExternalSummary() ApmExternalServiceSummaryData { 6253 return x.ExternalSummary 6254 } 6255 6256 // GetGUID returns a pointer to the value of GUID from ApmExternalServiceEntityOutline 6257 func (x ApmExternalServiceEntityOutline) GetGUID() common.EntityGUID { 6258 return x.GUID 6259 } 6260 6261 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ApmExternalServiceEntityOutline 6262 func (x ApmExternalServiceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 6263 return x.GoldenMetrics 6264 } 6265 6266 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ApmExternalServiceEntityOutline 6267 func (x ApmExternalServiceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 6268 return x.GoldenSignalValues 6269 } 6270 6271 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ApmExternalServiceEntityOutline 6272 func (x ApmExternalServiceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 6273 return x.GoldenSignalValuesV2 6274 } 6275 6276 // GetGoldenTags returns a pointer to the value of GoldenTags from ApmExternalServiceEntityOutline 6277 func (x ApmExternalServiceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 6278 return x.GoldenTags 6279 } 6280 6281 // GetHost returns a pointer to the value of Host from ApmExternalServiceEntityOutline 6282 func (x ApmExternalServiceEntityOutline) GetHost() string { 6283 return x.Host 6284 } 6285 6286 // GetIndexedAt returns a pointer to the value of IndexedAt from ApmExternalServiceEntityOutline 6287 func (x ApmExternalServiceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 6288 return x.IndexedAt 6289 } 6290 6291 // GetName returns a pointer to the value of Name from ApmExternalServiceEntityOutline 6292 func (x ApmExternalServiceEntityOutline) GetName() string { 6293 return x.Name 6294 } 6295 6296 // GetPermalink returns a pointer to the value of Permalink from ApmExternalServiceEntityOutline 6297 func (x ApmExternalServiceEntityOutline) GetPermalink() string { 6298 return x.Permalink 6299 } 6300 6301 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ApmExternalServiceEntityOutline 6302 func (x ApmExternalServiceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 6303 return x.RecommendedServiceLevel 6304 } 6305 6306 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ApmExternalServiceEntityOutline 6307 func (x ApmExternalServiceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 6308 return x.RelatedDashboards 6309 } 6310 6311 // GetReporting returns a pointer to the value of Reporting from ApmExternalServiceEntityOutline 6312 func (x ApmExternalServiceEntityOutline) GetReporting() bool { 6313 return x.Reporting 6314 } 6315 6316 // GetServiceLevel returns a pointer to the value of ServiceLevel from ApmExternalServiceEntityOutline 6317 func (x ApmExternalServiceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 6318 return x.ServiceLevel 6319 } 6320 6321 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ApmExternalServiceEntityOutline 6322 func (x ApmExternalServiceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 6323 return x.SummaryMetrics 6324 } 6325 6326 // GetTags returns a pointer to the value of Tags from ApmExternalServiceEntityOutline 6327 func (x ApmExternalServiceEntityOutline) GetTags() []EntityTag { 6328 return x.Tags 6329 } 6330 6331 // GetType returns a pointer to the value of Type from ApmExternalServiceEntityOutline 6332 func (x ApmExternalServiceEntityOutline) GetType() string { 6333 return x.Type 6334 } 6335 6336 // GetUiTemplates returns a pointer to the value of UiTemplates from ApmExternalServiceEntityOutline 6337 func (x ApmExternalServiceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 6338 return x.UiTemplates 6339 } 6340 6341 func (x *ApmExternalServiceEntityOutline) ImplementsAlertableEntityOutline() {} 6342 6343 func (x *ApmExternalServiceEntityOutline) ImplementsEntityOutline() {} 6344 6345 // ApmExternalServiceSummaryData - Summary statistics about an External Service called by an APM App. 6346 type ApmExternalServiceSummaryData struct { 6347 // The average response time for external service calls in seconds. 6348 ResponseTimeAverage nrtime.Seconds `json:"responseTimeAverage,omitempty"` 6349 // The number of external service calls per minute. 6350 Throughput float64 `json:"throughput,omitempty"` 6351 } 6352 6353 // BrowserApplicationEntity - A Browser Application entity. 6354 type BrowserApplicationEntity struct { 6355 Account accounts.AccountOutline `json:"account,omitempty"` 6356 // The New Relic account ID associated with this entity. 6357 AccountID int `json:"accountId,omitempty"` 6358 // The type of Browser agent installed for this application. 6359 AgentInstallType BrowserAgentInstallType `json:"agentInstallType,omitempty"` 6360 // The current alerting severity of the entity. 6361 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 6362 // The alert status of the entity. 6363 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 6364 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 6365 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 6366 // The ID of the Browser App. 6367 ApplicationID int `json:"applicationId,omitempty"` 6368 // Settings that are common across browser applications. 6369 BrowserSettings AgentApplicationSettingsBrowserBase `json:"browserSettings,omitempty"` 6370 // Summary statistics about the Browser App. 6371 BrowserSummary BrowserApplicationSummaryData `json:"browserSummary,omitempty"` 6372 // Query upstream and downstream dependencies for an entity 6373 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 6374 // The list of dashboard templates available for this entity. 6375 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 6376 // The entity's domain 6377 Domain string `json:"domain,omitempty"` 6378 // A value representing the combination of the entity's domain and type. 6379 EntityType EntityType `json:"entityType,omitempty"` 6380 // An Exception that occurred in your Browser Application. 6381 Exception StackTraceBrowserException `json:"exception,omitempty"` 6382 // A unique entity identifier. 6383 GUID common.EntityGUID `json:"guid,omitempty"` 6384 // The list of golden metrics for a specific entity 6385 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 6386 // Existing API - to be replaced with V2 implementation. 6387 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 6388 // The stored golden signal(s) for the given entity. 6389 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 6390 // The list of golden tags for a specific entityType. 6391 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 6392 // The time the entity was indexed. 6393 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 6394 // Retrieves a rule. 6395 MetricNormalizationRule MetricNormalizationRule `json:"metricNormalizationRule,omitempty"` 6396 // Retrieves the rules for the application. 6397 MetricNormalizationRules []MetricNormalizationRule `json:"metricNormalizationRules"` 6398 // Make an `Entity` scoped query to NRDB with a NRQL string. 6399 // 6400 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 6401 // 6402 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 6403 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 6404 // The name of this entity. 6405 Name string `json:"name,omitempty"` 6406 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 6407 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 6408 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 6409 // The url to the entity. 6410 Permalink string `json:"permalink,omitempty"` 6411 // Recent violations on the entity. 6412 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 6413 // The recommended service levels for the entity. 6414 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 6415 // Related dashboards results 6416 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 6417 // Related entities result with optional filtering. 6418 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 6419 // Query upstream and downstream transaction dependencies for an entity 6420 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 6421 // A list of the entities' relationships. 6422 // 6423 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 6424 Relationships []EntityRelationship `json:"relationships,omitempty"` 6425 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 6426 Reporting bool `json:"reporting,omitempty"` 6427 // The running versions of the agent in the Browser App. 6428 RunningAgentVersions BrowserApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 6429 // The service level defined for the entity. 6430 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 6431 // The ID of the APM Application that serves this Browser App. 6432 ServingApmApplicationID int `json:"servingApmApplicationId,omitempty"` 6433 // Configuration settings for the Browser App 6434 Settings BrowserApplicationSettings `json:"settings,omitempty"` 6435 // The list of summary metrics. 6436 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 6437 // The tags applied to the entity. 6438 // 6439 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 6440 Tags []EntityTag `json:"tags,omitempty"` 6441 // The tags applied to the entity with their metadata. 6442 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 6443 // Look up Distributed Tracing summary data for the selected `EntityGuid` 6444 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 6445 // The entity's type 6446 Type string `json:"type,omitempty"` 6447 // List of templates availables for this entity. 6448 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 6449 } 6450 6451 // GetAccount returns a pointer to the value of Account from BrowserApplicationEntity 6452 func (x BrowserApplicationEntity) GetAccount() accounts.AccountOutline { 6453 return x.Account 6454 } 6455 6456 // GetAccountID returns a pointer to the value of AccountID from BrowserApplicationEntity 6457 func (x BrowserApplicationEntity) GetAccountID() int { 6458 return x.AccountID 6459 } 6460 6461 // GetAgentInstallType returns a pointer to the value of AgentInstallType from BrowserApplicationEntity 6462 func (x BrowserApplicationEntity) GetAgentInstallType() BrowserAgentInstallType { 6463 return x.AgentInstallType 6464 } 6465 6466 // GetAlertSeverity returns a pointer to the value of AlertSeverity from BrowserApplicationEntity 6467 func (x BrowserApplicationEntity) GetAlertSeverity() EntityAlertSeverity { 6468 return x.AlertSeverity 6469 } 6470 6471 // GetAlertStatus returns a pointer to the value of AlertStatus from BrowserApplicationEntity 6472 func (x BrowserApplicationEntity) GetAlertStatus() EntityAlertStatus { 6473 return x.AlertStatus 6474 } 6475 6476 // GetAlertViolations returns a pointer to the value of AlertViolations from BrowserApplicationEntity 6477 func (x BrowserApplicationEntity) GetAlertViolations() []EntityAlertViolation { 6478 return x.AlertViolations 6479 } 6480 6481 // GetApplicationID returns a pointer to the value of ApplicationID from BrowserApplicationEntity 6482 func (x BrowserApplicationEntity) GetApplicationID() int { 6483 return x.ApplicationID 6484 } 6485 6486 // GetBrowserSettings returns a pointer to the value of BrowserSettings from BrowserApplicationEntity 6487 func (x BrowserApplicationEntity) GetBrowserSettings() AgentApplicationSettingsBrowserBase { 6488 return x.BrowserSettings 6489 } 6490 6491 // GetBrowserSummary returns a pointer to the value of BrowserSummary from BrowserApplicationEntity 6492 func (x BrowserApplicationEntity) GetBrowserSummary() BrowserApplicationSummaryData { 6493 return x.BrowserSummary 6494 } 6495 6496 // GetConnections returns a pointer to the value of Connections from BrowserApplicationEntity 6497 func (x BrowserApplicationEntity) GetConnections() RelatedExternalsEntityResult { 6498 return x.Connections 6499 } 6500 6501 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from BrowserApplicationEntity 6502 func (x BrowserApplicationEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 6503 return x.DashboardTemplates 6504 } 6505 6506 // GetDomain returns a pointer to the value of Domain from BrowserApplicationEntity 6507 func (x BrowserApplicationEntity) GetDomain() string { 6508 return x.Domain 6509 } 6510 6511 // GetEntityType returns a pointer to the value of EntityType from BrowserApplicationEntity 6512 func (x BrowserApplicationEntity) GetEntityType() EntityType { 6513 return x.EntityType 6514 } 6515 6516 // GetException returns a pointer to the value of Exception from BrowserApplicationEntity 6517 func (x BrowserApplicationEntity) GetException() StackTraceBrowserException { 6518 return x.Exception 6519 } 6520 6521 // GetGUID returns a pointer to the value of GUID from BrowserApplicationEntity 6522 func (x BrowserApplicationEntity) GetGUID() common.EntityGUID { 6523 return x.GUID 6524 } 6525 6526 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from BrowserApplicationEntity 6527 func (x BrowserApplicationEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 6528 return x.GoldenMetrics 6529 } 6530 6531 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from BrowserApplicationEntity 6532 func (x BrowserApplicationEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 6533 return x.GoldenSignalValues 6534 } 6535 6536 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from BrowserApplicationEntity 6537 func (x BrowserApplicationEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 6538 return x.GoldenSignalValuesV2 6539 } 6540 6541 // GetGoldenTags returns a pointer to the value of GoldenTags from BrowserApplicationEntity 6542 func (x BrowserApplicationEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 6543 return x.GoldenTags 6544 } 6545 6546 // GetIndexedAt returns a pointer to the value of IndexedAt from BrowserApplicationEntity 6547 func (x BrowserApplicationEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 6548 return x.IndexedAt 6549 } 6550 6551 // GetMetricNormalizationRule returns a pointer to the value of MetricNormalizationRule from BrowserApplicationEntity 6552 func (x BrowserApplicationEntity) GetMetricNormalizationRule() MetricNormalizationRule { 6553 return x.MetricNormalizationRule 6554 } 6555 6556 // GetMetricNormalizationRules returns a pointer to the value of MetricNormalizationRules from BrowserApplicationEntity 6557 func (x BrowserApplicationEntity) GetMetricNormalizationRules() []MetricNormalizationRule { 6558 return x.MetricNormalizationRules 6559 } 6560 6561 // GetNRDBQuery returns a pointer to the value of NRDBQuery from BrowserApplicationEntity 6562 func (x BrowserApplicationEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 6563 return x.NRDBQuery 6564 } 6565 6566 // GetName returns a pointer to the value of Name from BrowserApplicationEntity 6567 func (x BrowserApplicationEntity) GetName() string { 6568 return x.Name 6569 } 6570 6571 // GetNerdStorage returns a pointer to the value of NerdStorage from BrowserApplicationEntity 6572 func (x BrowserApplicationEntity) GetNerdStorage() NerdStorageEntityScope { 6573 return x.NerdStorage 6574 } 6575 6576 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from BrowserApplicationEntity 6577 func (x BrowserApplicationEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 6578 return x.NerdStoreCollection 6579 } 6580 6581 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from BrowserApplicationEntity 6582 func (x BrowserApplicationEntity) GetNerdStoreDocument() NerdStoreDocument { 6583 return x.NerdStoreDocument 6584 } 6585 6586 // GetPermalink returns a pointer to the value of Permalink from BrowserApplicationEntity 6587 func (x BrowserApplicationEntity) GetPermalink() string { 6588 return x.Permalink 6589 } 6590 6591 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from BrowserApplicationEntity 6592 func (x BrowserApplicationEntity) GetRecentAlertViolations() []EntityAlertViolation { 6593 return x.RecentAlertViolations 6594 } 6595 6596 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from BrowserApplicationEntity 6597 func (x BrowserApplicationEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 6598 return x.RecommendedServiceLevel 6599 } 6600 6601 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from BrowserApplicationEntity 6602 func (x BrowserApplicationEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 6603 return x.RelatedDashboards 6604 } 6605 6606 // GetRelatedEntities returns a pointer to the value of RelatedEntities from BrowserApplicationEntity 6607 func (x BrowserApplicationEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 6608 return x.RelatedEntities 6609 } 6610 6611 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from BrowserApplicationEntity 6612 func (x BrowserApplicationEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 6613 return x.RelatedTransactions 6614 } 6615 6616 // GetRelationships returns a pointer to the value of Relationships from BrowserApplicationEntity 6617 func (x BrowserApplicationEntity) GetRelationships() []EntityRelationship { 6618 return x.Relationships 6619 } 6620 6621 // GetReporting returns a pointer to the value of Reporting from BrowserApplicationEntity 6622 func (x BrowserApplicationEntity) GetReporting() bool { 6623 return x.Reporting 6624 } 6625 6626 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from BrowserApplicationEntity 6627 func (x BrowserApplicationEntity) GetRunningAgentVersions() BrowserApplicationRunningAgentVersions { 6628 return x.RunningAgentVersions 6629 } 6630 6631 // GetServiceLevel returns a pointer to the value of ServiceLevel from BrowserApplicationEntity 6632 func (x BrowserApplicationEntity) GetServiceLevel() ServiceLevelDefinition { 6633 return x.ServiceLevel 6634 } 6635 6636 // GetServingApmApplicationID returns a pointer to the value of ServingApmApplicationID from BrowserApplicationEntity 6637 func (x BrowserApplicationEntity) GetServingApmApplicationID() int { 6638 return x.ServingApmApplicationID 6639 } 6640 6641 // GetSettings returns a pointer to the value of Settings from BrowserApplicationEntity 6642 func (x BrowserApplicationEntity) GetSettings() BrowserApplicationSettings { 6643 return x.Settings 6644 } 6645 6646 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from BrowserApplicationEntity 6647 func (x BrowserApplicationEntity) GetSummaryMetrics() []EntitySummaryMetric { 6648 return x.SummaryMetrics 6649 } 6650 6651 // GetTags returns a pointer to the value of Tags from BrowserApplicationEntity 6652 func (x BrowserApplicationEntity) GetTags() []EntityTag { 6653 return x.Tags 6654 } 6655 6656 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from BrowserApplicationEntity 6657 func (x BrowserApplicationEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 6658 return x.TagsWithMetadata 6659 } 6660 6661 // GetTracingSummary returns a pointer to the value of TracingSummary from BrowserApplicationEntity 6662 func (x BrowserApplicationEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 6663 return x.TracingSummary 6664 } 6665 6666 // GetType returns a pointer to the value of Type from BrowserApplicationEntity 6667 func (x BrowserApplicationEntity) GetType() string { 6668 return x.Type 6669 } 6670 6671 // GetUiTemplates returns a pointer to the value of UiTemplates from BrowserApplicationEntity 6672 func (x BrowserApplicationEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 6673 return x.UiTemplates 6674 } 6675 6676 func (x *BrowserApplicationEntity) ImplementsAlertableEntity() {} 6677 6678 func (x *BrowserApplicationEntity) ImplementsEntity() {} 6679 6680 // BrowserApplicationEntityOutline - A Browser Application entity outline. 6681 type BrowserApplicationEntityOutline struct { 6682 Account accounts.AccountOutline `json:"account,omitempty"` 6683 // The New Relic account ID associated with this entity. 6684 AccountID int `json:"accountId,omitempty"` 6685 // The type of Browser agent installed for this application. 6686 AgentInstallType BrowserAgentInstallType `json:"agentInstallType,omitempty"` 6687 // The current alerting severity of the entity. 6688 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 6689 // The alert status of the entity. 6690 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 6691 // The ID of the Browser App. 6692 ApplicationID int `json:"applicationId,omitempty"` 6693 // Summary statistics about the Browser App. 6694 BrowserSummary BrowserApplicationSummaryData `json:"browserSummary,omitempty"` 6695 // The list of dashboard templates available for this entity. 6696 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 6697 // The entity's domain 6698 Domain string `json:"domain,omitempty"` 6699 // A value representing the combination of the entity's domain and type. 6700 EntityType EntityType `json:"entityType,omitempty"` 6701 // A unique entity identifier. 6702 GUID common.EntityGUID `json:"guid,omitempty"` 6703 // The list of golden metrics for a specific entity 6704 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 6705 // Existing API - to be replaced with V2 implementation. 6706 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 6707 // The stored golden signal(s) for the given entity. 6708 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 6709 // The list of golden tags for a specific entityType. 6710 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 6711 // The time the entity was indexed. 6712 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 6713 // The name of this entity. 6714 Name string `json:"name,omitempty"` 6715 // The url to the entity. 6716 Permalink string `json:"permalink,omitempty"` 6717 // The recommended service levels for the entity. 6718 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 6719 // Related dashboards results 6720 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 6721 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 6722 Reporting bool `json:"reporting,omitempty"` 6723 // The running versions of the agent in the Browser App. 6724 RunningAgentVersions BrowserApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` 6725 // The service level defined for the entity. 6726 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 6727 // The ID of the APM Application that serves this Browser App. 6728 ServingApmApplicationID int `json:"servingApmApplicationId,omitempty"` 6729 // Configuration settings for the Browser App 6730 Settings BrowserApplicationSettings `json:"settings,omitempty"` 6731 // The list of summary metrics. 6732 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 6733 // The tags applied to the entity. 6734 // 6735 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 6736 Tags []EntityTag `json:"tags,omitempty"` 6737 // The entity's type 6738 Type string `json:"type,omitempty"` 6739 // List of templates availables for this entity. 6740 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 6741 } 6742 6743 // GetAccount returns a pointer to the value of Account from BrowserApplicationEntityOutline 6744 func (x BrowserApplicationEntityOutline) GetAccount() accounts.AccountOutline { 6745 return x.Account 6746 } 6747 6748 // GetAccountID returns a pointer to the value of AccountID from BrowserApplicationEntityOutline 6749 func (x BrowserApplicationEntityOutline) GetAccountID() int { 6750 return x.AccountID 6751 } 6752 6753 // GetAgentInstallType returns a pointer to the value of AgentInstallType from BrowserApplicationEntityOutline 6754 func (x BrowserApplicationEntityOutline) GetAgentInstallType() BrowserAgentInstallType { 6755 return x.AgentInstallType 6756 } 6757 6758 // GetAlertSeverity returns a pointer to the value of AlertSeverity from BrowserApplicationEntityOutline 6759 func (x BrowserApplicationEntityOutline) GetAlertSeverity() EntityAlertSeverity { 6760 return x.AlertSeverity 6761 } 6762 6763 // GetAlertStatus returns a pointer to the value of AlertStatus from BrowserApplicationEntityOutline 6764 func (x BrowserApplicationEntityOutline) GetAlertStatus() EntityAlertStatus { 6765 return x.AlertStatus 6766 } 6767 6768 // GetApplicationID returns a pointer to the value of ApplicationID from BrowserApplicationEntityOutline 6769 func (x BrowserApplicationEntityOutline) GetApplicationID() int { 6770 return x.ApplicationID 6771 } 6772 6773 // GetBrowserSummary returns a pointer to the value of BrowserSummary from BrowserApplicationEntityOutline 6774 func (x BrowserApplicationEntityOutline) GetBrowserSummary() BrowserApplicationSummaryData { 6775 return x.BrowserSummary 6776 } 6777 6778 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from BrowserApplicationEntityOutline 6779 func (x BrowserApplicationEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 6780 return x.DashboardTemplates 6781 } 6782 6783 // GetDomain returns a pointer to the value of Domain from BrowserApplicationEntityOutline 6784 func (x BrowserApplicationEntityOutline) GetDomain() string { 6785 return x.Domain 6786 } 6787 6788 // GetEntityType returns a pointer to the value of EntityType from BrowserApplicationEntityOutline 6789 func (x BrowserApplicationEntityOutline) GetEntityType() EntityType { 6790 return x.EntityType 6791 } 6792 6793 // GetGUID returns a pointer to the value of GUID from BrowserApplicationEntityOutline 6794 func (x BrowserApplicationEntityOutline) GetGUID() common.EntityGUID { 6795 return x.GUID 6796 } 6797 6798 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from BrowserApplicationEntityOutline 6799 func (x BrowserApplicationEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 6800 return x.GoldenMetrics 6801 } 6802 6803 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from BrowserApplicationEntityOutline 6804 func (x BrowserApplicationEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 6805 return x.GoldenSignalValues 6806 } 6807 6808 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from BrowserApplicationEntityOutline 6809 func (x BrowserApplicationEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 6810 return x.GoldenSignalValuesV2 6811 } 6812 6813 // GetGoldenTags returns a pointer to the value of GoldenTags from BrowserApplicationEntityOutline 6814 func (x BrowserApplicationEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 6815 return x.GoldenTags 6816 } 6817 6818 // GetIndexedAt returns a pointer to the value of IndexedAt from BrowserApplicationEntityOutline 6819 func (x BrowserApplicationEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 6820 return x.IndexedAt 6821 } 6822 6823 // GetName returns a pointer to the value of Name from BrowserApplicationEntityOutline 6824 func (x BrowserApplicationEntityOutline) GetName() string { 6825 return x.Name 6826 } 6827 6828 // GetPermalink returns a pointer to the value of Permalink from BrowserApplicationEntityOutline 6829 func (x BrowserApplicationEntityOutline) GetPermalink() string { 6830 return x.Permalink 6831 } 6832 6833 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from BrowserApplicationEntityOutline 6834 func (x BrowserApplicationEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 6835 return x.RecommendedServiceLevel 6836 } 6837 6838 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from BrowserApplicationEntityOutline 6839 func (x BrowserApplicationEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 6840 return x.RelatedDashboards 6841 } 6842 6843 // GetReporting returns a pointer to the value of Reporting from BrowserApplicationEntityOutline 6844 func (x BrowserApplicationEntityOutline) GetReporting() bool { 6845 return x.Reporting 6846 } 6847 6848 // GetRunningAgentVersions returns a pointer to the value of RunningAgentVersions from BrowserApplicationEntityOutline 6849 func (x BrowserApplicationEntityOutline) GetRunningAgentVersions() BrowserApplicationRunningAgentVersions { 6850 return x.RunningAgentVersions 6851 } 6852 6853 // GetServiceLevel returns a pointer to the value of ServiceLevel from BrowserApplicationEntityOutline 6854 func (x BrowserApplicationEntityOutline) GetServiceLevel() ServiceLevelDefinition { 6855 return x.ServiceLevel 6856 } 6857 6858 // GetServingApmApplicationID returns a pointer to the value of ServingApmApplicationID from BrowserApplicationEntityOutline 6859 func (x BrowserApplicationEntityOutline) GetServingApmApplicationID() int { 6860 return x.ServingApmApplicationID 6861 } 6862 6863 // GetSettings returns a pointer to the value of Settings from BrowserApplicationEntityOutline 6864 func (x BrowserApplicationEntityOutline) GetSettings() BrowserApplicationSettings { 6865 return x.Settings 6866 } 6867 6868 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from BrowserApplicationEntityOutline 6869 func (x BrowserApplicationEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 6870 return x.SummaryMetrics 6871 } 6872 6873 // GetTags returns a pointer to the value of Tags from BrowserApplicationEntityOutline 6874 func (x BrowserApplicationEntityOutline) GetTags() []EntityTag { 6875 return x.Tags 6876 } 6877 6878 // GetType returns a pointer to the value of Type from BrowserApplicationEntityOutline 6879 func (x BrowserApplicationEntityOutline) GetType() string { 6880 return x.Type 6881 } 6882 6883 // GetUiTemplates returns a pointer to the value of UiTemplates from BrowserApplicationEntityOutline 6884 func (x BrowserApplicationEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 6885 return x.UiTemplates 6886 } 6887 6888 func (x *BrowserApplicationEntityOutline) ImplementsAlertableEntityOutline() {} 6889 6890 func (x *BrowserApplicationEntityOutline) ImplementsEntityOutline() {} 6891 6892 // BrowserApplicationRunningAgentVersions - Represents the currently running agent versions in a Browser App. 6893 // An app could be running multiple versions of an agent (across different browsers, for example). 6894 type BrowserApplicationRunningAgentVersions struct { 6895 // The maximum (newest) agent version running in the Browser App. 6896 MaxVersion int `json:"maxVersion,omitempty"` 6897 // The minimum (oldest) agent version running in the Browser App. 6898 MinVersion int `json:"minVersion,omitempty"` 6899 } 6900 6901 // BrowserApplicationSettings - Configuration settings for the Browser App 6902 type BrowserApplicationSettings struct { 6903 // The current Apdex target setting 6904 ApdexTarget float64 `json:"apdexTarget,omitempty"` 6905 } 6906 6907 // BrowserApplicationSummaryData - Summary statistics about the Browser App. 6908 type BrowserApplicationSummaryData struct { 6909 // The number of AJAX requests per minute 6910 AjaxRequestThroughput float64 `json:"ajaxRequestThroughput,omitempty"` 6911 // The average AJAX response time in seconds. 6912 AjaxResponseTimeAverage nrtime.Seconds `json:"ajaxResponseTimeAverage,omitempty"` 6913 // The percentage of page views with a JS error. 6914 JsErrorRate float64 `json:"jsErrorRate,omitempty"` 6915 // The number of page loads per minute 6916 PageLoadThroughput float64 `json:"pageLoadThroughput,omitempty"` 6917 // The average page view time in seconds. 6918 PageLoadTimeAverage float64 `json:"pageLoadTimeAverage,omitempty"` 6919 // The median page view time in seconds. 6920 PageLoadTimeMedian float64 `json:"pageLoadTimeMedian,omitempty"` 6921 // The average SPA response time in seconds. 6922 SpaResponseTimeAverage nrtime.Seconds `json:"spaResponseTimeAverage,omitempty"` 6923 // The median SPA response time in seconds. 6924 SpaResponseTimeMedian nrtime.Seconds `json:"spaResponseTimeMedian,omitempty"` 6925 } 6926 6927 type Capability struct { 6928 Name string `json:"name,omitempty"` 6929 } 6930 6931 // CollectionEntity - A group of entities defined by entity search queries and specific GUIDs 6932 type CollectionEntity struct { 6933 Collection EntityCollection `json:"collection,omitempty"` 6934 GUID common.EntityGUID `json:"guid,omitempty"` 6935 } 6936 6937 // GetCollection returns a pointer to the value of Collection from CollectionEntity 6938 func (x CollectionEntity) GetCollection() EntityCollection { 6939 return x.Collection 6940 } 6941 6942 // GetGUID returns a pointer to the value of GUID from CollectionEntity 6943 func (x CollectionEntity) GetGUID() common.EntityGUID { 6944 return x.GUID 6945 } 6946 6947 func (x *CollectionEntity) ImplementsCollectionEntity() {} 6948 6949 // DashboardAreaWidgetConfiguration - Configuration for visualization type 'viz.area' 6950 type DashboardAreaWidgetConfiguration struct { 6951 // nrql queries 6952 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 6953 } 6954 6955 // DashboardBarWidgetConfiguration - Configuration for visualization type 'viz.bar' 6956 type DashboardBarWidgetConfiguration struct { 6957 // nrql queries 6958 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 6959 } 6960 6961 // DashboardBillboardWidgetConfiguration - Configuration for visualization type 'viz.billboard' 6962 type DashboardBillboardWidgetConfiguration struct { 6963 // nrql queries 6964 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 6965 // Thresholds 6966 Thresholds []DashboardBillboardWidgetThreshold `json:"thresholds,omitempty"` 6967 } 6968 6969 // DashboardBillboardWidgetThreshold - Billboard widget threshold. 6970 type DashboardBillboardWidgetThreshold struct { 6971 // Alert severity. 6972 AlertSeverity DashboardAlertSeverity `json:"alertSeverity,omitempty"` 6973 // Alert value. 6974 Value float64 `json:"value,omitempty"` 6975 } 6976 6977 // DashboardEntity - A Dashboard entity. 6978 type DashboardEntity struct { 6979 Account accounts.AccountOutline `json:"account,omitempty"` 6980 // The New Relic account ID associated with this entity. 6981 AccountID int `json:"accountId,omitempty"` 6982 // The current alerting severity of the entity. 6983 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 6984 // The alert status of the entity. 6985 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 6986 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 6987 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 6988 // Dashboard creation timestamp. 6989 CreatedAt nrtime.DateTime `json:"createdAt,omitempty"` 6990 // Dashboard creation timestamp. 6991 CreatedAtInternal string `json:"createdAtInternal,omitempty"` 6992 // The parent entity `guid` of the dashboard. 6993 DashboardParentGUID common.EntityGUID `json:"dashboardParentGuid,omitempty"` 6994 // The list of dashboard templates available for this entity. 6995 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 6996 // Dashboard description. 6997 Description string `json:"description,omitempty"` 6998 // Dashboard description. 6999 DescriptionInternal string `json:"descriptionInternal,omitempty"` 7000 // The entity's domain 7001 Domain string `json:"domain,omitempty"` 7002 // Dashboard editable configuration. 7003 EditableInternal DashboardEditable `json:"editableInternal,omitempty"` 7004 // A value representing the combination of the entity's domain and type. 7005 EntityType EntityType `json:"entityType,omitempty"` 7006 // A unique entity identifier. 7007 GUID common.EntityGUID `json:"guid,omitempty"` 7008 // The list of golden metrics for a specific entity 7009 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 7010 // Existing API - to be replaced with V2 implementation. 7011 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 7012 // The stored golden signal(s) for the given entity. 7013 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 7014 // The list of golden tags for a specific entityType. 7015 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 7016 // The time the entity was indexed. 7017 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 7018 // Make an `Entity` scoped query to NRDB with a NRQL string. 7019 // 7020 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 7021 // 7022 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 7023 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 7024 // The name of this entity. 7025 Name string `json:"name,omitempty"` 7026 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 7027 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 7028 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 7029 // Dashboard owner. 7030 Owner DashboardOwnerInfo `json:"owner,omitempty"` 7031 // Dashboard owner's email. 7032 OwnerEmailInternal string `json:"ownerEmailInternal,omitempty"` 7033 // Dashboard pages. 7034 Pages []DashboardPage `json:"pages,omitempty"` 7035 // Dashboard pages. 7036 PagesInternal []DashboardPageInternal `json:"pagesInternal,omitempty"` 7037 // The url to the entity. 7038 Permalink string `json:"permalink,omitempty"` 7039 // Dashboard permissions configuration. 7040 Permissions DashboardPermissions `json:"permissions,omitempty"` 7041 // Recent violations on the entity. 7042 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 7043 // The recommended service levels for the entity. 7044 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 7045 // Related dashboards results 7046 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 7047 // Related entities result with optional filtering. 7048 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 7049 // A list of the entities' relationships. 7050 // 7051 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 7052 Relationships []EntityRelationship `json:"relationships,omitempty"` 7053 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 7054 Reporting bool `json:"reporting,omitempty"` 7055 // The service level defined for the entity. 7056 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 7057 // The list of summary metrics. 7058 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 7059 // The tags applied to the entity. 7060 // 7061 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 7062 Tags []EntityTag `json:"tags,omitempty"` 7063 // The tags applied to the entity with their metadata. 7064 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 7065 // Look up Distributed Tracing summary data for the selected `EntityGuid` 7066 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 7067 // The entity's type 7068 Type string `json:"type,omitempty"` 7069 // List of templates availables for this entity. 7070 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 7071 // Dashboard update timestamp. 7072 UpdatedAt nrtime.DateTime `json:"updatedAt,omitempty"` 7073 // Dashboard update timestamp. 7074 UpdatedAtInternal string `json:"updatedAtInternal,omitempty"` 7075 // Dashboard visibility configuration. 7076 VisibilityInternal DashboardVisibility `json:"visibilityInternal,omitempty"` 7077 } 7078 7079 // GetAccount returns a pointer to the value of Account from DashboardEntity 7080 func (x DashboardEntity) GetAccount() accounts.AccountOutline { 7081 return x.Account 7082 } 7083 7084 // GetAccountID returns a pointer to the value of AccountID from DashboardEntity 7085 func (x DashboardEntity) GetAccountID() int { 7086 return x.AccountID 7087 } 7088 7089 // GetAlertSeverity returns a pointer to the value of AlertSeverity from DashboardEntity 7090 func (x DashboardEntity) GetAlertSeverity() EntityAlertSeverity { 7091 return x.AlertSeverity 7092 } 7093 7094 // GetAlertStatus returns a pointer to the value of AlertStatus from DashboardEntity 7095 func (x DashboardEntity) GetAlertStatus() EntityAlertStatus { 7096 return x.AlertStatus 7097 } 7098 7099 // GetAlertViolations returns a pointer to the value of AlertViolations from DashboardEntity 7100 func (x DashboardEntity) GetAlertViolations() []EntityAlertViolation { 7101 return x.AlertViolations 7102 } 7103 7104 // GetCreatedAt returns a pointer to the value of CreatedAt from DashboardEntity 7105 func (x DashboardEntity) GetCreatedAt() nrtime.DateTime { 7106 return x.CreatedAt 7107 } 7108 7109 // GetCreatedAtInternal returns a pointer to the value of CreatedAtInternal from DashboardEntity 7110 func (x DashboardEntity) GetCreatedAtInternal() string { 7111 return x.CreatedAtInternal 7112 } 7113 7114 // GetDashboardParentGUID returns a pointer to the value of DashboardParentGUID from DashboardEntity 7115 func (x DashboardEntity) GetDashboardParentGUID() common.EntityGUID { 7116 return x.DashboardParentGUID 7117 } 7118 7119 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from DashboardEntity 7120 func (x DashboardEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 7121 return x.DashboardTemplates 7122 } 7123 7124 // GetDescription returns a pointer to the value of Description from DashboardEntity 7125 func (x DashboardEntity) GetDescription() string { 7126 return x.Description 7127 } 7128 7129 // GetDescriptionInternal returns a pointer to the value of DescriptionInternal from DashboardEntity 7130 func (x DashboardEntity) GetDescriptionInternal() string { 7131 return x.DescriptionInternal 7132 } 7133 7134 // GetDomain returns a pointer to the value of Domain from DashboardEntity 7135 func (x DashboardEntity) GetDomain() string { 7136 return x.Domain 7137 } 7138 7139 // GetEditableInternal returns a pointer to the value of EditableInternal from DashboardEntity 7140 func (x DashboardEntity) GetEditableInternal() DashboardEditable { 7141 return x.EditableInternal 7142 } 7143 7144 // GetEntityType returns a pointer to the value of EntityType from DashboardEntity 7145 func (x DashboardEntity) GetEntityType() EntityType { 7146 return x.EntityType 7147 } 7148 7149 // GetGUID returns a pointer to the value of GUID from DashboardEntity 7150 func (x DashboardEntity) GetGUID() common.EntityGUID { 7151 return x.GUID 7152 } 7153 7154 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from DashboardEntity 7155 func (x DashboardEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 7156 return x.GoldenMetrics 7157 } 7158 7159 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from DashboardEntity 7160 func (x DashboardEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 7161 return x.GoldenSignalValues 7162 } 7163 7164 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from DashboardEntity 7165 func (x DashboardEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 7166 return x.GoldenSignalValuesV2 7167 } 7168 7169 // GetGoldenTags returns a pointer to the value of GoldenTags from DashboardEntity 7170 func (x DashboardEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 7171 return x.GoldenTags 7172 } 7173 7174 // GetIndexedAt returns a pointer to the value of IndexedAt from DashboardEntity 7175 func (x DashboardEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 7176 return x.IndexedAt 7177 } 7178 7179 // GetNRDBQuery returns a pointer to the value of NRDBQuery from DashboardEntity 7180 func (x DashboardEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 7181 return x.NRDBQuery 7182 } 7183 7184 // GetName returns a pointer to the value of Name from DashboardEntity 7185 func (x DashboardEntity) GetName() string { 7186 return x.Name 7187 } 7188 7189 // GetNerdStorage returns a pointer to the value of NerdStorage from DashboardEntity 7190 func (x DashboardEntity) GetNerdStorage() NerdStorageEntityScope { 7191 return x.NerdStorage 7192 } 7193 7194 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from DashboardEntity 7195 func (x DashboardEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 7196 return x.NerdStoreCollection 7197 } 7198 7199 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from DashboardEntity 7200 func (x DashboardEntity) GetNerdStoreDocument() NerdStoreDocument { 7201 return x.NerdStoreDocument 7202 } 7203 7204 // GetOwner returns a pointer to the value of Owner from DashboardEntity 7205 func (x DashboardEntity) GetOwner() DashboardOwnerInfo { 7206 return x.Owner 7207 } 7208 7209 // GetOwnerEmailInternal returns a pointer to the value of OwnerEmailInternal from DashboardEntity 7210 func (x DashboardEntity) GetOwnerEmailInternal() string { 7211 return x.OwnerEmailInternal 7212 } 7213 7214 // GetPages returns a pointer to the value of Pages from DashboardEntity 7215 func (x DashboardEntity) GetPages() []DashboardPage { 7216 return x.Pages 7217 } 7218 7219 // GetPagesInternal returns a pointer to the value of PagesInternal from DashboardEntity 7220 func (x DashboardEntity) GetPagesInternal() []DashboardPageInternal { 7221 return x.PagesInternal 7222 } 7223 7224 // GetPermalink returns a pointer to the value of Permalink from DashboardEntity 7225 func (x DashboardEntity) GetPermalink() string { 7226 return x.Permalink 7227 } 7228 7229 // GetPermissions returns a pointer to the value of Permissions from DashboardEntity 7230 func (x DashboardEntity) GetPermissions() DashboardPermissions { 7231 return x.Permissions 7232 } 7233 7234 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from DashboardEntity 7235 func (x DashboardEntity) GetRecentAlertViolations() []EntityAlertViolation { 7236 return x.RecentAlertViolations 7237 } 7238 7239 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from DashboardEntity 7240 func (x DashboardEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 7241 return x.RecommendedServiceLevel 7242 } 7243 7244 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from DashboardEntity 7245 func (x DashboardEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 7246 return x.RelatedDashboards 7247 } 7248 7249 // GetRelatedEntities returns a pointer to the value of RelatedEntities from DashboardEntity 7250 func (x DashboardEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 7251 return x.RelatedEntities 7252 } 7253 7254 // GetRelationships returns a pointer to the value of Relationships from DashboardEntity 7255 func (x DashboardEntity) GetRelationships() []EntityRelationship { 7256 return x.Relationships 7257 } 7258 7259 // GetReporting returns a pointer to the value of Reporting from DashboardEntity 7260 func (x DashboardEntity) GetReporting() bool { 7261 return x.Reporting 7262 } 7263 7264 // GetServiceLevel returns a pointer to the value of ServiceLevel from DashboardEntity 7265 func (x DashboardEntity) GetServiceLevel() ServiceLevelDefinition { 7266 return x.ServiceLevel 7267 } 7268 7269 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from DashboardEntity 7270 func (x DashboardEntity) GetSummaryMetrics() []EntitySummaryMetric { 7271 return x.SummaryMetrics 7272 } 7273 7274 // GetTags returns a pointer to the value of Tags from DashboardEntity 7275 func (x DashboardEntity) GetTags() []EntityTag { 7276 return x.Tags 7277 } 7278 7279 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from DashboardEntity 7280 func (x DashboardEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 7281 return x.TagsWithMetadata 7282 } 7283 7284 // GetTracingSummary returns a pointer to the value of TracingSummary from DashboardEntity 7285 func (x DashboardEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 7286 return x.TracingSummary 7287 } 7288 7289 // GetType returns a pointer to the value of Type from DashboardEntity 7290 func (x DashboardEntity) GetType() string { 7291 return x.Type 7292 } 7293 7294 // GetUiTemplates returns a pointer to the value of UiTemplates from DashboardEntity 7295 func (x DashboardEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 7296 return x.UiTemplates 7297 } 7298 7299 // GetUpdatedAt returns a pointer to the value of UpdatedAt from DashboardEntity 7300 func (x DashboardEntity) GetUpdatedAt() nrtime.DateTime { 7301 return x.UpdatedAt 7302 } 7303 7304 // GetUpdatedAtInternal returns a pointer to the value of UpdatedAtInternal from DashboardEntity 7305 func (x DashboardEntity) GetUpdatedAtInternal() string { 7306 return x.UpdatedAtInternal 7307 } 7308 7309 // GetVisibilityInternal returns a pointer to the value of VisibilityInternal from DashboardEntity 7310 func (x DashboardEntity) GetVisibilityInternal() DashboardVisibility { 7311 return x.VisibilityInternal 7312 } 7313 7314 func (x *DashboardEntity) ImplementsAlertableEntity() {} 7315 7316 func (x *DashboardEntity) ImplementsEntity() {} 7317 7318 // DashboardEntityOutline - A Dashboard entity outline. 7319 type DashboardEntityOutline struct { 7320 Account accounts.AccountOutline `json:"account,omitempty"` 7321 // The New Relic account ID associated with this entity. 7322 AccountID int `json:"accountId,omitempty"` 7323 // The current alerting severity of the entity. 7324 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 7325 // The alert status of the entity. 7326 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 7327 // The date and time the dashboard was created 7328 CreatedAt nrtime.DateTime `json:"createdAt,omitempty"` 7329 // The parent entity `guid` of the dashboard. 7330 DashboardParentGUID common.EntityGUID `json:"dashboardParentGuid,omitempty"` 7331 // The list of dashboard templates available for this entity. 7332 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 7333 // The entity's domain 7334 Domain string `json:"domain,omitempty"` 7335 // A value representing the combination of the entity's domain and type. 7336 EntityType EntityType `json:"entityType,omitempty"` 7337 // A unique entity identifier. 7338 GUID common.EntityGUID `json:"guid,omitempty"` 7339 // The list of golden metrics for a specific entity 7340 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 7341 // Existing API - to be replaced with V2 implementation. 7342 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 7343 // The stored golden signal(s) for the given entity. 7344 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 7345 // The list of golden tags for a specific entityType. 7346 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 7347 // The time the entity was indexed. 7348 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 7349 // The name of this entity. 7350 Name string `json:"name,omitempty"` 7351 // The owner information of the dashboard. 7352 Owner DashboardEntityOwnerInfo `json:"owner,omitempty"` 7353 // The url to the entity. 7354 Permalink string `json:"permalink,omitempty"` 7355 // The permissions of the dashboard. 7356 Permissions DashboardEntityPermissions `json:"permissions,omitempty"` 7357 // The recommended service levels for the entity. 7358 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 7359 // Related dashboards results 7360 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 7361 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 7362 Reporting bool `json:"reporting,omitempty"` 7363 // The service level defined for the entity. 7364 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 7365 // The list of summary metrics. 7366 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 7367 // The tags applied to the entity. 7368 // 7369 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 7370 Tags []EntityTag `json:"tags,omitempty"` 7371 // The entity's type 7372 Type string `json:"type,omitempty"` 7373 // List of templates availables for this entity. 7374 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 7375 // The date and time the dashboard was updated 7376 UpdatedAt nrtime.DateTime `json:"updatedAt,omitempty"` 7377 } 7378 7379 // GetAccount returns a pointer to the value of Account from DashboardEntityOutline 7380 func (x DashboardEntityOutline) GetAccount() accounts.AccountOutline { 7381 return x.Account 7382 } 7383 7384 // GetAccountID returns a pointer to the value of AccountID from DashboardEntityOutline 7385 func (x DashboardEntityOutline) GetAccountID() int { 7386 return x.AccountID 7387 } 7388 7389 // GetAlertSeverity returns a pointer to the value of AlertSeverity from DashboardEntityOutline 7390 func (x DashboardEntityOutline) GetAlertSeverity() EntityAlertSeverity { 7391 return x.AlertSeverity 7392 } 7393 7394 // GetAlertStatus returns a pointer to the value of AlertStatus from DashboardEntityOutline 7395 func (x DashboardEntityOutline) GetAlertStatus() EntityAlertStatus { 7396 return x.AlertStatus 7397 } 7398 7399 // GetCreatedAt returns a pointer to the value of CreatedAt from DashboardEntityOutline 7400 func (x DashboardEntityOutline) GetCreatedAt() nrtime.DateTime { 7401 return x.CreatedAt 7402 } 7403 7404 // GetDashboardParentGUID returns a pointer to the value of DashboardParentGUID from DashboardEntityOutline 7405 func (x DashboardEntityOutline) GetDashboardParentGUID() common.EntityGUID { 7406 return x.DashboardParentGUID 7407 } 7408 7409 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from DashboardEntityOutline 7410 func (x DashboardEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 7411 return x.DashboardTemplates 7412 } 7413 7414 // GetDomain returns a pointer to the value of Domain from DashboardEntityOutline 7415 func (x DashboardEntityOutline) GetDomain() string { 7416 return x.Domain 7417 } 7418 7419 // GetEntityType returns a pointer to the value of EntityType from DashboardEntityOutline 7420 func (x DashboardEntityOutline) GetEntityType() EntityType { 7421 return x.EntityType 7422 } 7423 7424 // GetGUID returns a pointer to the value of GUID from DashboardEntityOutline 7425 func (x DashboardEntityOutline) GetGUID() common.EntityGUID { 7426 return x.GUID 7427 } 7428 7429 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from DashboardEntityOutline 7430 func (x DashboardEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 7431 return x.GoldenMetrics 7432 } 7433 7434 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from DashboardEntityOutline 7435 func (x DashboardEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 7436 return x.GoldenSignalValues 7437 } 7438 7439 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from DashboardEntityOutline 7440 func (x DashboardEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 7441 return x.GoldenSignalValuesV2 7442 } 7443 7444 // GetGoldenTags returns a pointer to the value of GoldenTags from DashboardEntityOutline 7445 func (x DashboardEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 7446 return x.GoldenTags 7447 } 7448 7449 // GetIndexedAt returns a pointer to the value of IndexedAt from DashboardEntityOutline 7450 func (x DashboardEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 7451 return x.IndexedAt 7452 } 7453 7454 // GetName returns a pointer to the value of Name from DashboardEntityOutline 7455 func (x DashboardEntityOutline) GetName() string { 7456 return x.Name 7457 } 7458 7459 // GetOwner returns a pointer to the value of Owner from DashboardEntityOutline 7460 func (x DashboardEntityOutline) GetOwner() DashboardEntityOwnerInfo { 7461 return x.Owner 7462 } 7463 7464 // GetPermalink returns a pointer to the value of Permalink from DashboardEntityOutline 7465 func (x DashboardEntityOutline) GetPermalink() string { 7466 return x.Permalink 7467 } 7468 7469 // GetPermissions returns a pointer to the value of Permissions from DashboardEntityOutline 7470 func (x DashboardEntityOutline) GetPermissions() DashboardEntityPermissions { 7471 return x.Permissions 7472 } 7473 7474 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from DashboardEntityOutline 7475 func (x DashboardEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 7476 return x.RecommendedServiceLevel 7477 } 7478 7479 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from DashboardEntityOutline 7480 func (x DashboardEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 7481 return x.RelatedDashboards 7482 } 7483 7484 // GetReporting returns a pointer to the value of Reporting from DashboardEntityOutline 7485 func (x DashboardEntityOutline) GetReporting() bool { 7486 return x.Reporting 7487 } 7488 7489 // GetServiceLevel returns a pointer to the value of ServiceLevel from DashboardEntityOutline 7490 func (x DashboardEntityOutline) GetServiceLevel() ServiceLevelDefinition { 7491 return x.ServiceLevel 7492 } 7493 7494 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from DashboardEntityOutline 7495 func (x DashboardEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 7496 return x.SummaryMetrics 7497 } 7498 7499 // GetTags returns a pointer to the value of Tags from DashboardEntityOutline 7500 func (x DashboardEntityOutline) GetTags() []EntityTag { 7501 return x.Tags 7502 } 7503 7504 // GetType returns a pointer to the value of Type from DashboardEntityOutline 7505 func (x DashboardEntityOutline) GetType() string { 7506 return x.Type 7507 } 7508 7509 // GetUiTemplates returns a pointer to the value of UiTemplates from DashboardEntityOutline 7510 func (x DashboardEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 7511 return x.UiTemplates 7512 } 7513 7514 // GetUpdatedAt returns a pointer to the value of UpdatedAt from DashboardEntityOutline 7515 func (x DashboardEntityOutline) GetUpdatedAt() nrtime.DateTime { 7516 return x.UpdatedAt 7517 } 7518 7519 func (x *DashboardEntityOutline) ImplementsAlertableEntityOutline() {} 7520 7521 func (x *DashboardEntityOutline) ImplementsEntityOutline() {} 7522 7523 // DashboardEntityOwnerInfo - Dashboard owner 7524 type DashboardEntityOwnerInfo struct { 7525 // The email of the dashboard owner 7526 Email string `json:"email,omitempty"` 7527 // The user ID of the dashboard owner 7528 UserID int `json:"userId,omitempty"` 7529 } 7530 7531 // DashboardFacetChartWidget - Facet chart widget. 7532 type DashboardFacetChartWidget struct { 7533 // accountId. 7534 AccountID int `json:"accountId,omitempty"` 7535 // data. 7536 Data []DashboardNRQLWidgetData `json:"data"` 7537 // layout. 7538 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7539 // presentation. 7540 Presentation DashboardFacetChartWidgetPresentation `json:"presentation"` 7541 // visualization. 7542 Visualization DashboardFacetChartWidgetVisualizationType `json:"visualization"` 7543 // widgetId. 7544 WidgetId int `json:"widgetId,omitempty"` 7545 } 7546 7547 func (x *DashboardFacetChartWidget) ImplementsDashboardWidgetCommons() {} 7548 7549 // DashboardFacetChartWidgetPresentation - Facet chart widget presentation. 7550 type DashboardFacetChartWidgetPresentation struct { 7551 // drilldownDashboardId. 7552 DrilldownDashboardId int `json:"drilldownDashboardId,omitempty"` 7553 // notes. 7554 Notes string `json:"notes,omitempty"` 7555 // title. 7556 Title string `json:"title,omitempty"` 7557 } 7558 7559 // DashboardInaccessibleWidget - Inaccessible widget. 7560 type DashboardInaccessibleWidget struct { 7561 // layout. 7562 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7563 // visualization. 7564 Visualization DashboardInaccessibleWidgetVisualizationType `json:"visualization,omitempty"` 7565 // widgetId. 7566 WidgetId int `json:"widgetId,omitempty"` 7567 } 7568 7569 func (x *DashboardInaccessibleWidget) ImplementsDashboardWidgetCommons() {} 7570 7571 // DashboardInventoryWidget - Inventory widget. 7572 type DashboardInventoryWidget struct { 7573 // accountId. 7574 AccountID int `json:"accountId,omitempty"` 7575 // data. 7576 Data []DashboardInventoryWidgetData `json:"data,omitempty"` 7577 // layout. 7578 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7579 // presentation. 7580 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7581 // visualization. 7582 Visualization DashboardInventoryWidgetVisualizationType `json:"visualization"` 7583 // widgetId. 7584 WidgetId int `json:"widgetId,omitempty"` 7585 } 7586 7587 func (x *DashboardInventoryWidget) ImplementsDashboardWidgetCommons() {} 7588 7589 // DashboardInventoryWidgetData - Inventory widget data. 7590 type DashboardInventoryWidgetData struct { 7591 // filters. 7592 Filters DashboardEncodedInfraFilterSet `json:"filters,omitempty"` 7593 // sources. 7594 Sources []string `json:"sources,omitempty"` 7595 } 7596 7597 // DashboardLineWidgetConfiguration - Configuration for visualization type 'viz.line' 7598 type DashboardLineWidgetConfiguration struct { 7599 // nrql queries 7600 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 7601 } 7602 7603 // DashboardMarkdownWidget - Markdown widget. 7604 type DashboardMarkdownWidget struct { 7605 // accountId. 7606 AccountID int `json:"accountId,omitempty"` 7607 // data. 7608 Data []DashboardMarkdownWidgetData `json:"data,omitempty"` 7609 // layout. 7610 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7611 // presentation. 7612 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7613 // visualization. 7614 Visualization DashboardMarkdownWidgetVisualizationType `json:"visualization"` 7615 // widgetId. 7616 WidgetId int `json:"widgetId,omitempty"` 7617 } 7618 7619 func (x *DashboardMarkdownWidget) ImplementsDashboardWidgetCommons() {} 7620 7621 // DashboardMarkdownWidgetConfiguration - Configuration for visualization type 'viz.markdown' 7622 type DashboardMarkdownWidgetConfiguration struct { 7623 // Markdown content of the widget 7624 Text string `json:"text"` 7625 } 7626 7627 // DashboardMarkdownWidgetData - Markdown widget data. 7628 type DashboardMarkdownWidgetData struct { 7629 // source. 7630 Source string `json:"source,omitempty"` 7631 } 7632 7633 // DashboardMetricLineChartWidget - Metric line chart widget. 7634 type DashboardMetricLineChartWidget struct { 7635 // accountId. 7636 AccountID int `json:"accountId,omitempty"` 7637 // data. 7638 Data []DashboardMetricLineChartWidgetData `json:"data,omitempty"` 7639 // layout. 7640 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7641 // presentation. 7642 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7643 // visualization. 7644 Visualization DashboardMetricLineChartWidgetVisualizationType `json:"visualization"` 7645 // widgetId. 7646 WidgetId int `json:"widgetId,omitempty"` 7647 } 7648 7649 func (x *DashboardMetricLineChartWidget) ImplementsDashboardWidgetCommons() {} 7650 7651 // DashboardMetricLineChartWidgetData - Metric line chart widget data. 7652 type DashboardMetricLineChartWidgetData struct { 7653 // compareWith. 7654 CompareWith []DashboardMetricWidgetCompareWith `json:"compareWith,omitempty"` 7655 // Period of time of the requested data in milliseconds. 7656 Duration Milliseconds `json:"duration"` 7657 // endTime. 7658 EndTime *nrtime.EpochMilliseconds `json:"endTime,omitempty"` 7659 // entityIds. 7660 EntityIds []int `json:"entityIds"` 7661 // facet. 7662 Facet string `json:"facet,omitempty"` 7663 // limit. 7664 Limit int `json:"limit,omitempty"` 7665 // metrics. 7666 Metrics []DashboardWidgetDataMetric `json:"metrics"` 7667 // orderBy. 7668 OrderBy string `json:"orderBy,omitempty"` 7669 // rawMetricName. 7670 RawMetricName string `json:"rawMetricName,omitempty"` 7671 } 7672 7673 // DashboardMetricWidgetCompareWith - Metric widget compare with. 7674 type DashboardMetricWidgetCompareWith struct { 7675 // offsetDuration. 7676 OffsetDuration string `json:"offsetDuration,omitempty"` 7677 // presentation. 7678 Presentation DashboardMetricWidgetCompareWithPresentation `json:"presentation,omitempty"` 7679 } 7680 7681 // DashboardMetricWidgetCompareWithPresentation - Metric widget compare with presentation. 7682 type DashboardMetricWidgetCompareWithPresentation struct { 7683 // color. 7684 Color string `json:"color,omitempty"` 7685 // name. 7686 Name string `json:"name,omitempty"` 7687 } 7688 7689 // DashboardNRQLWidgetData - Nrql widget data. 7690 type DashboardNRQLWidgetData struct { 7691 // Unique identifier for the account. 7692 AccountID int `json:"accountId,omitempty"` 7693 // nrql. 7694 NRQL string `json:"nrql,omitempty"` 7695 } 7696 7697 // DashboardOwnerInfo - Information on the owner of a dashboard or page 7698 type DashboardOwnerInfo struct { 7699 // Email. 7700 Email string `json:"email,omitempty"` 7701 // User id. 7702 UserID int `json:"userId,omitempty"` 7703 } 7704 7705 // DashboardPage - Page in a dashboard entity 7706 type DashboardPage struct { 7707 // Page creation timestamp. 7708 CreatedAt nrtime.DateTime `json:"createdAt,omitempty"` 7709 // Page description. 7710 Description string `json:"description,omitempty"` 7711 // Unique entity identifier. 7712 GUID common.EntityGUID `json:"guid,omitempty"` 7713 // Page name. 7714 Name string `json:"name,omitempty"` 7715 // Page owner 7716 Owner DashboardOwnerInfo `json:"owner,omitempty"` 7717 // Page update timestamp. 7718 UpdatedAt nrtime.DateTime `json:"updatedAt,omitempty"` 7719 // Page widgets. 7720 Widgets []DashboardWidget `json:"widgets,omitempty"` 7721 } 7722 7723 // DashboardPageInternal - Page in a `DashboardEntity`. 7724 type DashboardPageInternal struct { 7725 // Page creation timestamp. 7726 CreatedAt string `json:"createdAt,omitempty"` 7727 // Page description. 7728 Description string `json:"description,omitempty"` 7729 // Page editable configuration. 7730 Editable DashboardEditable `json:"editable,omitempty"` 7731 // Unique entity identifier. 7732 GUID common.EntityGUID `json:"guid,omitempty"` 7733 // Number of columns configured in the Page grid. 7734 GridColumnCount int `json:"gridColumnCount,omitempty"` 7735 // Page name. 7736 Name string `json:"name,omitempty"` 7737 // Page owner's email. 7738 OwnerEmail string `json:"ownerEmail,omitempty"` 7739 // Page update timestamp. 7740 UpdatedAt string `json:"updatedAt,omitempty"` 7741 // Page visibility configuration. 7742 Visibility DashboardVisibility `json:"visibility,omitempty"` 7743 // Page widgets. 7744 Widgets DashboardWidgetsInternal `json:"widgets,omitempty"` 7745 } 7746 7747 // DashboardPieWidgetConfiguration - Configuration for visualization type 'viz.pie' 7748 type DashboardPieWidgetConfiguration struct { 7749 // nrql queries 7750 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 7751 } 7752 7753 // DashboardPredefinedMetricChartWidget - Predefined metric chart widget. 7754 type DashboardPredefinedMetricChartWidget struct { 7755 // accountId. 7756 AccountID int `json:"accountId,omitempty"` 7757 // data. 7758 Data []DashboardPredefinedMetricChartWidgetData `json:"data,omitempty"` 7759 // layout. 7760 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7761 // presentation. 7762 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7763 // visualization. 7764 Visualization DashboardPredefinedMetricChartWidgetVisualizationType `json:"visualization"` 7765 // widgetId. 7766 WidgetId int `json:"widgetId,omitempty"` 7767 } 7768 7769 func (x *DashboardPredefinedMetricChartWidget) ImplementsDashboardWidgetCommons() {} 7770 7771 // DashboardPredefinedMetricChartWidgetData - Predefined metric chart widget data. 7772 type DashboardPredefinedMetricChartWidgetData struct { 7773 // Period of time of the requested data in milliseconds. 7774 Duration Milliseconds `json:"duration,omitempty"` 7775 // endTime. 7776 EndTime *nrtime.EpochMilliseconds `json:"endTime,omitempty"` 7777 // entityIds. 7778 EntityIds []int `json:"entityIds,omitempty"` 7779 // metrics. 7780 Metrics []DashboardWidgetDataMetric `json:"metrics,omitempty"` 7781 } 7782 7783 // DashboardServiceMapWidget - Service map widget. 7784 type DashboardServiceMapWidget struct { 7785 // accountId. 7786 AccountID int `json:"accountId,omitempty"` 7787 // data. 7788 Data []DashboardServiceMapWidgetData `json:"data,omitempty"` 7789 // layout. 7790 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7791 // presentation. 7792 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7793 // visualization. 7794 Visualization DashboardServiceMapWidgetVisualizationType `json:"visualization"` 7795 // widgetId. 7796 WidgetId int `json:"widgetId,omitempty"` 7797 } 7798 7799 func (x *DashboardServiceMapWidget) ImplementsDashboardWidgetCommons() {} 7800 7801 // DashboardServiceMapWidgetAdditionalEntityData - Service map widget additional entity data. 7802 type DashboardServiceMapWidgetAdditionalEntityData struct { 7803 // guid. 7804 GUID common.EntityGUID `json:"guid,omitempty"` 7805 // sourceGuid. 7806 SourceGUID common.EntityGUID `json:"sourceGuid,omitempty"` 7807 // targetGuid. 7808 TargetGUID common.EntityGUID `json:"targetGuid,omitempty"` 7809 } 7810 7811 // DashboardServiceMapWidgetData - Service map widget data. 7812 type DashboardServiceMapWidgetData struct { 7813 // additionalEntities. 7814 AdditionalEntities []DashboardServiceMapWidgetAdditionalEntityData `json:"additionalEntities,omitempty"` 7815 // deemphasizedConditions. 7816 DeemphasizedConditions DashboardServiceMapWidgetDeemphasizedData `json:"deemphasizedConditions,omitempty"` 7817 // entitySearchQuery. 7818 EntitySearchQuery string `json:"entitySearchQuery,omitempty"` 7819 // hiddenEntities. 7820 HiddenEntities []DashboardServiceMapWidgetHiddenEntityData `json:"hiddenEntities,omitempty"` 7821 // primaryEntities. 7822 PrimaryEntities []DashboardServiceMapWidgetEntityData `json:"primaryEntities,omitempty"` 7823 } 7824 7825 // DashboardServiceMapWidgetDeemphasizedData - Service map widget deemphasized data. 7826 type DashboardServiceMapWidgetDeemphasizedData struct { 7827 // alertStatus. 7828 AlertStatus []DashboardEntityAlertStatus `json:"alertStatus,omitempty"` 7829 // entityType. 7830 EntityType []DashboardEntityType `json:"entityType,omitempty"` 7831 } 7832 7833 // DashboardServiceMapWidgetEntityData - Service map widget entity data. 7834 type DashboardServiceMapWidgetEntityData struct { 7835 // guid. 7836 GUID common.EntityGUID `json:"guid,omitempty"` 7837 } 7838 7839 // DashboardServiceMapWidgetHiddenEntityData - Service map widget hidden entity data. 7840 type DashboardServiceMapWidgetHiddenEntityData struct { 7841 // guid. 7842 GUID common.EntityGUID `json:"guid,omitempty"` 7843 // sourceGuid. 7844 SourceGUID common.EntityGUID `json:"sourceGuid,omitempty"` 7845 // targetGuid. 7846 TargetGUID common.EntityGUID `json:"targetGuid,omitempty"` 7847 } 7848 7849 // DashboardSimpleEventWidget - Simple event widget. 7850 type DashboardSimpleEventWidget struct { 7851 // accountId. 7852 AccountID int `json:"accountId,omitempty"` 7853 // data. 7854 Data []DashboardNRQLWidgetData `json:"data,omitempty"` 7855 // layout. 7856 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7857 // presentation. 7858 Presentation DashboardWidgetPresentation `json:"presentation,omitempty"` 7859 // visualization. 7860 Visualization DashboardSimpleEventWidgetVisualizationType `json:"visualization"` 7861 // widgetId. 7862 WidgetId int `json:"widgetId,omitempty"` 7863 } 7864 7865 func (x *DashboardSimpleEventWidget) ImplementsDashboardWidgetCommons() {} 7866 7867 // DashboardTableWidgetConfiguration - Configuration for visualization type 'viz.table' 7868 type DashboardTableWidgetConfiguration struct { 7869 // nrql queries 7870 NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries,omitempty"` 7871 } 7872 7873 // DashboardThresholdEventWidget - Threshold event widget. 7874 type DashboardThresholdEventWidget struct { 7875 // accountId. 7876 AccountID int `json:"accountId,omitempty"` 7877 // data. 7878 Data []DashboardNRQLWidgetData `json:"data,omitempty"` 7879 // layout. 7880 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 7881 // presentation. 7882 Presentation DashboardThresholdEventWidgetPresentation `json:"presentation,omitempty"` 7883 // visualization. 7884 Visualization DashboardThresholdEventWidgetVisualizationType `json:"visualization"` 7885 // widgetId. 7886 WidgetId int `json:"widgetId,omitempty"` 7887 } 7888 7889 func (x *DashboardThresholdEventWidget) ImplementsDashboardWidgetCommons() {} 7890 7891 // DashboardThresholdEventWidgetPresentation - Threshold event widget presentation. 7892 type DashboardThresholdEventWidgetPresentation struct { 7893 // notes. 7894 Notes string `json:"notes,omitempty"` 7895 // threshold. 7896 Threshold DashboardThresholdEventWidgetPresentationThreshold `json:"threshold,omitempty"` 7897 // title. 7898 Title string `json:"title,omitempty"` 7899 } 7900 7901 // DashboardThresholdEventWidgetPresentationThreshold - Threshold event widget presentation threshold. 7902 type DashboardThresholdEventWidgetPresentationThreshold struct { 7903 // green. 7904 Green float64 `json:"green,omitempty"` 7905 // red. 7906 Red float64 `json:"red,omitempty"` 7907 // yellow. 7908 Yellow float64 `json:"yellow,omitempty"` 7909 } 7910 7911 // DashboardWidget - Widgets in a Dashboard Page. 7912 type DashboardWidget struct { 7913 // Typed configuration 7914 Configuration DashboardWidgetConfiguration `json:"configuration,omitempty"` 7915 // id 7916 ID string `json:"id"` 7917 // layout 7918 Layout DashboardWidgetLayout `json:"layout,omitempty"` 7919 // Entities related to the widget. Currently only supports one Dashboard entity guid, but may allow other cases in the future. 7920 LinkedEntities []EntityOutlineInterface `json:"linkedEntities,omitempty"` 7921 // Untyped configuration 7922 RawConfiguration DashboardWidgetRawConfiguration `json:"rawConfiguration"` 7923 // title 7924 Title string `json:"title,omitempty"` 7925 // Specifies how this widget will be visualized. 7926 Visualization DashboardWidgetVisualization `json:"visualization"` 7927 } 7928 7929 // special 7930 func (x *DashboardWidget) UnmarshalJSON(b []byte) error { 7931 var objMap map[string]*json.RawMessage 7932 err := json.Unmarshal(b, &objMap) 7933 if err != nil { 7934 return err 7935 } 7936 7937 for k, v := range objMap { 7938 if v == nil { 7939 continue 7940 } 7941 7942 switch k { 7943 case "configuration": 7944 err = json.Unmarshal(*v, &x.Configuration) 7945 if err != nil { 7946 return err 7947 } 7948 case "id": 7949 err = json.Unmarshal(*v, &x.ID) 7950 if err != nil { 7951 return err 7952 } 7953 case "layout": 7954 err = json.Unmarshal(*v, &x.Layout) 7955 if err != nil { 7956 return err 7957 } 7958 case "linkedEntities": 7959 if v == nil { 7960 continue 7961 } 7962 var rawMessageLinkedEntities []*json.RawMessage 7963 err = json.Unmarshal(*v, &rawMessageLinkedEntities) 7964 if err != nil { 7965 return err 7966 } 7967 7968 for _, m := range rawMessageLinkedEntities { 7969 xxx, err := UnmarshalEntityOutlineInterface(*m) 7970 if err != nil { 7971 return err 7972 } 7973 7974 if xxx != nil { 7975 x.LinkedEntities = append(x.LinkedEntities, *xxx) 7976 } 7977 } 7978 case "rawConfiguration": 7979 err = json.Unmarshal(*v, &x.RawConfiguration) 7980 if err != nil { 7981 return err 7982 } 7983 case "title": 7984 err = json.Unmarshal(*v, &x.Title) 7985 if err != nil { 7986 return err 7987 } 7988 case "visualization": 7989 err = json.Unmarshal(*v, &x.Visualization) 7990 if err != nil { 7991 return err 7992 } 7993 } 7994 } 7995 7996 return nil 7997 } 7998 7999 // DashboardWidgetCommons - Common interface for all widgets. 8000 type DashboardWidgetCommons struct { 8001 // layout. 8002 Layout DashboardWidgetLayoutInternal `json:"layout,omitempty"` 8003 // widgetId. 8004 WidgetId int `json:"widgetId,omitempty"` 8005 } 8006 8007 func (x *DashboardWidgetCommons) ImplementsDashboardWidgetCommons() {} 8008 8009 // DashboardWidgetConfiguration - Typed configuration for known visualizations. Only one (at most) will be populated for a given widget. 8010 type DashboardWidgetConfiguration struct { 8011 // Configuration for visualization type 'viz.area' 8012 Area DashboardAreaWidgetConfiguration `json:"area,omitempty"` 8013 // Configuration for visualization type 'viz.bar' 8014 Bar DashboardBarWidgetConfiguration `json:"bar,omitempty"` 8015 // Configuration for visualization type 'viz.billboard' 8016 Billboard DashboardBillboardWidgetConfiguration `json:"billboard,omitempty"` 8017 // Configuration for visualization type 'viz.line' 8018 Line DashboardLineWidgetConfiguration `json:"line,omitempty"` 8019 // Configuration for visualization type 'viz.markdown' 8020 Markdown DashboardMarkdownWidgetConfiguration `json:"markdown,omitempty"` 8021 // Configuration for visualization type 'viz.pie' 8022 Pie DashboardPieWidgetConfiguration `json:"pie,omitempty"` 8023 // Configuration for visualization type 'viz.table' 8024 Table DashboardTableWidgetConfiguration `json:"table,omitempty"` 8025 } 8026 8027 // DashboardWidgetDataMetric - Widget data metric. 8028 type DashboardWidgetDataMetric struct { 8029 // name. 8030 Name string `json:"name,omitempty"` 8031 // scope. 8032 Scope string `json:"scope,omitempty"` 8033 // units. 8034 Units string `json:"units,omitempty"` 8035 // values. 8036 Values []string `json:"values,omitempty"` 8037 } 8038 8039 // DashboardWidgetLayout - Widget layout. 8040 type DashboardWidgetLayout struct { 8041 // column. 8042 Column int `json:"column,omitempty"` 8043 // height. 8044 Height int `json:"height,omitempty"` 8045 // row. 8046 Row int `json:"row,omitempty"` 8047 // width. 8048 Width int `json:"width,omitempty"` 8049 } 8050 8051 // DashboardWidgetLayoutInternal - Widget layout. 8052 type DashboardWidgetLayoutInternal struct { 8053 // Indicates the column within the Page grid where the widget will be placed. 8054 Column int `json:"column,omitempty"` 8055 // Indicates the number of columns within the Page grid that the widget will occupy vertically. 8056 Height int `json:"height,omitempty"` 8057 // Indicates the row within the Page grid system where the widget will be placed. 8058 Row int `json:"row,omitempty"` 8059 // Indicates the number of rows within the Page grid that the widget will occupy horizontally. 8060 // The maximum width is 12. When the input width is greater than the maximum is set to the maximum by default. 8061 Width int `json:"width,omitempty"` 8062 } 8063 8064 // DashboardWidgetNRQLQuery - Single NRQL query for a widget. 8065 type DashboardWidgetNRQLQuery struct { 8066 // accountId 8067 AccountID int `json:"accountId"` 8068 // NRQL formatted query 8069 Query nrdb.NRQL `json:"query"` 8070 } 8071 8072 // DashboardWidgetPresentation - Widget presentation. 8073 type DashboardWidgetPresentation struct { 8074 // notes. 8075 Notes string `json:"notes,omitempty"` 8076 // title. 8077 Title string `json:"title,omitempty"` 8078 } 8079 8080 // DashboardWidgetVisualization - Visualization configuration 8081 type DashboardWidgetVisualization struct { 8082 // Nerdpack artifact ID 8083 ID string `json:"id,omitempty"` 8084 } 8085 8086 // DashboardWidgetsInternal - Widgets in a `DashboardPage`. 8087 type DashboardWidgetsInternal struct { 8088 // Facet chart widgets. 8089 FacetChart []DashboardFacetChartWidget `json:"facetChart,omitempty"` 8090 // Inaccessible widgets. 8091 Inaccessible []DashboardInaccessibleWidget `json:"inaccessible,omitempty"` 8092 // Inventory widgets. 8093 Inventory []DashboardInventoryWidget `json:"inventory,omitempty"` 8094 // Markdown widgets. 8095 Markdown []DashboardMarkdownWidget `json:"markdown,omitempty"` 8096 // Metric line chart widgets. 8097 MetricLineChart []DashboardMetricLineChartWidget `json:"metricLineChart,omitempty"` 8098 // Predefined metric chart widgets. 8099 PredefinedMetricChart []DashboardPredefinedMetricChartWidget `json:"predefinedMetricChart,omitempty"` 8100 // Service map widgets. 8101 ServiceMap []DashboardServiceMapWidget `json:"serviceMap,omitempty"` 8102 // Simple event widgets. 8103 SimpleEvent []DashboardSimpleEventWidget `json:"simpleEvent,omitempty"` 8104 // Threshold event widgets. 8105 ThresholdEvent []DashboardThresholdEventWidget `json:"thresholdEvent,omitempty"` 8106 } 8107 8108 // DistributedTracingEntityTracingSummary - Details tracing summary data for the provided `EntityGuid` that occurred during the provided `startTime` and `endTime` 8109 type DistributedTracingEntityTracingSummary struct { 8110 // The number of traces where this entity produced an error 8111 ErrorTraceCount int `json:"errorTraceCount,omitempty"` 8112 // The percentage of error traces produced by this entity compared to all error traces in the system 8113 PercentOfAllErrorTraces float64 `json:"percentOfAllErrorTraces,omitempty"` 8114 } 8115 8116 // DomainType - Details about an entity type 8117 type DomainType struct { 8118 // The domain of the entity. 8119 // 8120 // The domain must be a value matching /[A-Z][A-Z0-9_]{2,14}/. 8121 Domain string `json:"domain"` 8122 // The type of the entity. 8123 // 8124 // The type must be a value matching /[A-Z][A-Z0-9_]{2,49}/. 8125 // 8126 // Some examples are APPLICATION, HOST or CONTAINER. 8127 Type string `json:"type"` 8128 } 8129 8130 // DomainTypeInput - Input for getting details about an entity type 8131 type DomainTypeInput struct { 8132 // The domain of the entity. 8133 // 8134 // The domain must be a value matching /[A-Z][A-Z0-9_]{2,14}/. 8135 Domain string `json:"domain"` 8136 // The type of the entity. 8137 // 8138 // The type must be a value matching /[A-Z][A-Z0-9_]{2,49}/. 8139 // 8140 // Some examples are APPLICATION, HOST or CONTAINER. 8141 Type string `json:"type"` 8142 } 8143 8144 // Entity - The `Entity` interface allows fetching detailed entity information for a single entity. 8145 // 8146 // To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 8147 type Entity struct { 8148 Account accounts.AccountOutline `json:"account,omitempty"` 8149 // The New Relic account ID associated with this entity. 8150 AccountID int `json:"accountId,omitempty"` 8151 // The current alerting severity of the entity. 8152 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 8153 // The alert status of the entity. 8154 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 8155 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 8156 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 8157 // The list of dashboard templates available for this entity. 8158 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 8159 // The entity's domain 8160 Domain string `json:"domain,omitempty"` 8161 // A value representing the combination of the entity's domain and type. 8162 EntityType EntityType `json:"entityType,omitempty"` 8163 // A unique entity identifier. 8164 GUID common.EntityGUID `json:"guid,omitempty"` 8165 // The list of golden metrics for a specific entity 8166 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 8167 // Existing API - to be replaced with V2 implementation. 8168 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 8169 // The stored golden signal(s) for the given entity. 8170 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 8171 // The list of golden tags for a specific entityType. 8172 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 8173 // The time the entity was indexed. 8174 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 8175 // Make an `Entity` scoped query to NRDB with a NRQL string. 8176 // 8177 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 8178 // 8179 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 8180 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 8181 // The name of this entity. 8182 Name string `json:"name,omitempty"` 8183 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 8184 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 8185 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 8186 // The url to the entity. 8187 Permalink string `json:"permalink,omitempty"` 8188 // Recent violations on the entity. 8189 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 8190 // The recommended service levels for the entity. 8191 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 8192 // Related dashboards results 8193 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 8194 // Related entities result with optional filtering. 8195 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 8196 // A list of the entities' relationships. 8197 // 8198 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 8199 Relationships []EntityRelationship `json:"relationships,omitempty"` 8200 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 8201 Reporting bool `json:"reporting,omitempty"` 8202 // The service level defined for the entity. 8203 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 8204 // The list of summary metrics. 8205 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 8206 // The tags applied to the entity. 8207 // 8208 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 8209 Tags []EntityTag `json:"tags,omitempty"` 8210 // The tags applied to the entity with their metadata. 8211 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 8212 // Look up Distributed Tracing summary data for the selected `EntityGuid` 8213 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 8214 // The entity's type 8215 Type string `json:"type,omitempty"` 8216 // List of templates availables for this entity. 8217 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 8218 } 8219 8220 func (x *Entity) ImplementsAlertableEntity() {} 8221 8222 func (x *Entity) ImplementsEntity() {} 8223 8224 type EntityAlertViolation struct { 8225 // A link to the agent in the time window in which the violation occurred. 8226 AgentURL string `json:"agentUrl,omitempty"` 8227 // The severity of the violation. 8228 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 8229 // The current alert status of the violation. 8230 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 8231 // Timestamp of when the violation was closed. 8232 ClosedAt *nrtime.EpochMilliseconds `json:"closedAt,omitempty"` 8233 // The description of the violation. 8234 Label string `json:"label,omitempty"` 8235 // The priority of the violation. 8236 Level string `json:"level,omitempty"` 8237 // Timestamp of when the violation was opened. 8238 OpenedAt *nrtime.EpochMilliseconds `json:"openedAt,omitempty"` 8239 // The id of the violation. 8240 ViolationId int `json:"violationId,omitempty"` 8241 // A link to the violation if it is connected to an incident. 8242 ViolationURL string `json:"violationUrl,omitempty"` 8243 } 8244 8245 // EntityCollection - A collection of user defined Entities and Entity Search queries. 8246 type EntityCollection struct { 8247 // The account the collection is part of 8248 Account accounts.AccountReference `json:"account,omitempty"` 8249 // The user who created the collection 8250 CreatedBy users.UserReference `json:"createdBy,omitempty"` 8251 // The definition of the collection. 8252 Definition EntityCollectionDefinition `json:"definition,omitempty"` 8253 // The GUID of the Entity 8254 GUID common.EntityGUID `json:"guid,omitempty"` 8255 // The result of searching for the members of the collection. 8256 Members EntitySearch `json:"members,omitempty"` 8257 // The name of the collection. 8258 Name string `json:"name,omitempty"` 8259 // The type of Collection 8260 Type EntityCollectionType `json:"type,omitempty"` 8261 } 8262 8263 // EntityCollectionDefinition - The definition of a collection. 8264 type EntityCollectionDefinition struct { 8265 // A list of entity GUIDs. These entities will belong to the collection as long as their accounts are included in the scope accounts of the collection. 8266 EntityGUIDs []common.EntityGUID `json:"entityGuids,omitempty"` 8267 // The Entity Search query that returns the full collection of entities. 8268 EntitySearchQuery string `json:"entitySearchQuery,omitempty"` 8269 // The Accounts that will be used to scope the collection. 8270 ScopeAccounts EntityCollectionScopeAccounts `json:"scopeAccounts,omitempty"` 8271 // A list of entity search queries. The resulting entities will be limited to the scope accounts of the collection. 8272 SearchQueries []string `json:"searchQueries,omitempty"` 8273 } 8274 8275 // EntityCollectionScopeAccounts - The Accounts used to scope a collection. 8276 type EntityCollectionScopeAccounts struct { 8277 // The Account IDs that make up the account scoping. 8278 AccountIDs []int `json:"accountIds,omitempty"` 8279 } 8280 8281 // EntityDashboardTemplatesDashboardTemplate - Object that contains a dashboard templates 8282 type EntityDashboardTemplatesDashboardTemplate struct { 8283 // Dashboard template in Mosaic format, obtained from a dashboard template located in the Entity Synthesis Definitions repository. 8284 MosaicTemplate EntityDashboardTemplatesRawMosaicTemplate `json:"mosaicTemplate"` 8285 } 8286 8287 // EntityDashboardTemplatesUi - A type that encapsulates the templates configuration for the UI. 8288 type EntityDashboardTemplatesUi struct { 8289 // The template to feed mosaic with in order to build an interface. 8290 Template EntityDashboardTemplatesRawMosaicTemplate `json:"template,omitempty"` 8291 } 8292 8293 type EntityGUIDSegments struct { 8294 AccountID int `json:"accountId,omitempty"` 8295 Domain string `json:"domain,omitempty"` 8296 DomainId string `json:"domainId,omitempty"` 8297 GUID common.EntityGUID `json:"guid,omitempty"` 8298 Type string `json:"type,omitempty"` 8299 } 8300 8301 // EntityGoldenAggregatedMetrics - metrics aggregated by title and name. 8302 type EntityGoldenAggregatedMetrics struct { 8303 // The kind of the golden metric. i.e: counter, average,.. 8304 Kind string `json:"kind"` 8305 // The synthesised metric name. i.e: mewrelic.goldenmetrics.apm.application.throughput 8306 MetricName string `json:"metricName"` 8307 // The name of the golden metric. 8308 Name string `json:"name"` 8309 // queries aggregated by accountID 8310 Queries []EntityGoldenAggregatedQueries `json:"queries,omitempty"` 8311 // The title of the golden metric. 8312 Title string `json:"title"` 8313 // The unit used to represent the golden metric. 8314 Unit EntityGoldenMetricUnit `json:"unit"` 8315 } 8316 8317 // EntityGoldenAggregatedQueries - queries aggregated by accountId. for multiple guids under same account and domainType will be concatenated in IN CLAUSE of query 8318 type EntityGoldenAggregatedQueries struct { 8319 // accountID that the golden metrics belong to 8320 AccountID int `json:"accountId"` 8321 // The definition of the golden metric. 8322 Definition EntityGoldenMetricDefinition `json:"definition"` 8323 // The golden metric NRQL query. 8324 Query string `json:"query"` 8325 } 8326 8327 // EntityGoldenContext - An object that represent the context. 8328 type EntityGoldenContext struct { 8329 // Account context. 8330 Account int `json:"account,omitempty"` 8331 // Collection guid context. 8332 GUID common.EntityGUID `json:"guid,omitempty"` 8333 } 8334 8335 // EntityGoldenContextInput - Input type used to define the context for the golden metrics. 8336 type EntityGoldenContextInput struct { 8337 // Account context. 8338 Account int `json:"account,omitempty"` 8339 // Collection guid context. 8340 GUID common.EntityGUID `json:"guid,omitempty"` 8341 } 8342 8343 // EntityGoldenContextScopedGoldenMetrics - An object that represents the golden metrics scoped by context 8344 type EntityGoldenContextScopedGoldenMetrics struct { 8345 // Context for the golden metric 8346 Context EntityGoldenContext `json:"context"` 8347 // Metrics for the domain and type 8348 Metrics []EntityGoldenMetric `json:"metrics"` 8349 } 8350 8351 // EntityGoldenContextScopedGoldenTags - An object that represents the golden tags scoped by context 8352 type EntityGoldenContextScopedGoldenTags struct { 8353 // Context for the golden tags 8354 Context EntityGoldenContext `json:"context"` 8355 // Tags for the domain and type 8356 Tags []EntityGoldenTag `json:"tags"` 8357 } 8358 8359 // EntityGoldenGroupedGoldenMetrics - golden metrics grouped by domainType and account 8360 type EntityGoldenGroupedGoldenMetrics struct { 8361 // entity domain and entity type which the grouped golden metrics belong to 8362 DomainType DomainType `json:"domainType"` 8363 // golden metrics grouped by account 8364 Metrics []EntityGoldenAggregatedMetrics `json:"metrics"` 8365 } 8366 8367 // EntityGoldenMetric - An object that represents a golden metric. 8368 type EntityGoldenMetric struct { 8369 // The definition of the golden metric. 8370 Definition EntityGoldenMetricDefinition `json:"definition"` 8371 // The kind of the golden metric. i.e: counter, average,.. 8372 Kind string `json:"kind"` 8373 // The synthesised metric name. i.e: mewrelic.goldenmetrics.apm.application.throughput 8374 MetricName string `json:"metricName"` 8375 // The name of the golden metric. 8376 Name string `json:"name"` 8377 // The golden metric NRQL query. 8378 Query string `json:"query"` 8379 // The title of the golden metric. 8380 Title string `json:"title"` 8381 // The unit used to represent the golden metric. 8382 Unit EntityGoldenMetricUnit `json:"unit"` 8383 } 8384 8385 // EntityGoldenMetricDefinition - The definition of the metric. 8386 type EntityGoldenMetricDefinition struct { 8387 // The field used to filter the entity in the metric. This will be added to the WHERE by default. 8388 EventId string `json:"eventId"` 8389 // Indicates if the eventId field references a GUID, a domainId or an entity name. 8390 EventObjectId EntityGoldenEventObjectId `json:"eventObjectId"` 8391 // The field to FACET by. 8392 Facet string `json:"facet"` 8393 // The FROM clause of the query. 8394 From string `json:"from"` 8395 // The SELECT clause of the query. 8396 Select string `json:"select"` 8397 // If a complementary WHERE clause is required to identify the entity type this field will contain it. 8398 Where string `json:"where,omitempty"` 8399 } 8400 8401 // EntityGoldenNRQLTimeWindowInput - Time range to apply to the golden metric NRQL query 8402 type EntityGoldenNRQLTimeWindowInput struct { 8403 // Start time. 8404 Since nrdb.NRQL `json:"since,omitempty"` 8405 // End time. 8406 Until nrdb.NRQL `json:"until,omitempty"` 8407 } 8408 8409 // EntityGoldenTag - An object that represents a golden tag. 8410 type EntityGoldenTag struct { 8411 // The golden tag key. 8412 Key string `json:"key"` 8413 } 8414 8415 // EntityGraphAttribute - A key and a list of values 8416 type EntityGraphAttribute struct { 8417 // The attribute key 8418 Key string `json:"key"` 8419 // The attribute values 8420 Values []string `json:"values"` 8421 } 8422 8423 // EntityGraphVertex - A single vertex that represents an Entity. 8424 type EntityGraphVertex struct { 8425 // The alert status 8426 AlertSeverity EntityAlertSeverity `json:"alertSeverity"` 8427 // A list of user defined tag values 8428 Attributes []EntityGraphAttribute `json:"attributes,omitempty"` 8429 // A boolean representing if the entity is currently deleted. 8430 Deleted bool `json:"deleted"` 8431 // The entity domain type. 8432 EntityDomainType DomainType `json:"entityDomainType"` 8433 // Flags used to indicate special information about an entity 8434 EntityFlags []EntityGraphEntityFlags `json:"entityFlags"` 8435 // The entity guid. 8436 EntityGUID common.EntityGUID `json:"entityGuid"` 8437 // The entity name. 8438 Name string `json:"name"` 8439 } 8440 8441 // EntityOutline - The `EntityOutline` interface object allows fetching basic entity data for many entities at a time. 8442 // 8443 // To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 8444 type EntityOutline struct { 8445 Account accounts.AccountOutline `json:"account,omitempty"` 8446 // The New Relic account ID associated with this entity. 8447 AccountID int `json:"accountId,omitempty"` 8448 // The current alerting severity of the entity. 8449 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 8450 // The alert status of the entity. 8451 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 8452 // The list of dashboard templates available for this entity. 8453 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 8454 // The entity's domain 8455 Domain string `json:"domain,omitempty"` 8456 // A value representing the combination of the entity's domain and type. 8457 EntityType EntityType `json:"entityType,omitempty"` 8458 // A unique entity identifier. 8459 GUID common.EntityGUID `json:"guid,omitempty"` 8460 // The list of golden metrics for a specific entity 8461 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 8462 // Existing API - to be replaced with V2 implementation. 8463 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 8464 // The stored golden signal(s) for the given entity. 8465 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 8466 // The list of golden tags for a specific entityType. 8467 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 8468 // The time the entity was indexed. 8469 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 8470 // The name of this entity. 8471 Name string `json:"name,omitempty"` 8472 // The url to the entity. 8473 Permalink string `json:"permalink,omitempty"` 8474 // The recommended service levels for the entity. 8475 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 8476 // Related dashboards results 8477 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 8478 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 8479 Reporting bool `json:"reporting,omitempty"` 8480 // The service level defined for the entity. 8481 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 8482 // The list of summary metrics. 8483 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 8484 // The tags applied to the entity. 8485 // 8486 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 8487 Tags []EntityTag `json:"tags,omitempty"` 8488 // The entity's type 8489 Type string `json:"type,omitempty"` 8490 // List of templates availables for this entity. 8491 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 8492 } 8493 8494 func (x *EntityOutline) ImplementsAlertableEntityOutline() {} 8495 8496 func (x *EntityOutline) ImplementsEntityOutline() {} 8497 8498 // EntityRelationship - An entity relationship 8499 type EntityRelationship struct { 8500 // The source entity of the relationship. 8501 Source EntityRelationshipNode `json:"source,omitempty"` 8502 // The target entity of the relationship. 8503 Target EntityRelationshipNode `json:"target,omitempty"` 8504 // The type of the relationship. For details, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 8505 Type EntityRelationshipType `json:"type,omitempty"` 8506 } 8507 8508 // EntityRelationshipDetectedEdge - An entity relationship automatically detected by NewRelic. 8509 type EntityRelationshipDetectedEdge struct { 8510 // The time the relationship was created. 8511 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt"` 8512 // The source entity of the relationship. 8513 Source EntityRelationshipVertex `json:"source"` 8514 // The target entity of the relationship. 8515 Target EntityRelationshipVertex `json:"target"` 8516 // The type of the relationship. 8517 Type EntityRelationshipEdgeType `json:"type"` 8518 } 8519 8520 func (x *EntityRelationshipDetectedEdge) ImplementsEntityRelationshipEdge() {} 8521 8522 // EntityRelationshipEdge - An entity relationship. 8523 type EntityRelationshipEdge struct { 8524 // The time the relationship was created. 8525 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt"` 8526 // The source entity of the relationship. 8527 Source EntityRelationshipVertex `json:"source"` 8528 // The target entity of the relationship. 8529 Target EntityRelationshipVertex `json:"target"` 8530 // The type of the relationship. 8531 Type EntityRelationshipEdgeType `json:"type"` 8532 } 8533 8534 func (x *EntityRelationshipEdge) ImplementsEntityRelationshipEdge() {} 8535 8536 // EntityRelationshipEdgeFilter - EntityRelationship edge filter. 8537 type EntityRelationshipEdgeFilter struct { 8538 // Filter by direction of relationship. 8539 Direction EntityRelationshipEdgeDirection `json:"direction,omitempty"` 8540 // Filter on entity domain-types. 8541 EntityDomainTypes EntityRelationshipEntityDomainTypeFilter `json:"entityDomainTypes,omitempty"` 8542 // Filter on relationship types. 8543 RelationshipTypes EntityRelationshipEdgeTypeFilter `json:"relationshipTypes,omitempty"` 8544 } 8545 8546 // EntityRelationshipEdgeTypeFilter - Filter on relationship types. 8547 type EntityRelationshipEdgeTypeFilter struct { 8548 // Filter the relationships to those that are not of specific relationship types. 8549 Exclude []EntityRelationshipEdgeType `json:"exclude"` 8550 // Filter the relationships to those of specific relationship types. 8551 Include []EntityRelationshipEdgeType `json:"include"` 8552 } 8553 8554 // EntityRelationshipEntityDomainTypeFilter - Filter on entity domain-types. 8555 type EntityRelationshipEntityDomainTypeFilter struct { 8556 // Filter based on the isAlertable field in the entity domain type definition. If true, will exclude all non alertable entities from the result. If false, will exclude the alertable entities. 8557 Alertable bool `json:"alertable,omitempty"` 8558 // Filter the relationships to those between entities that are not of specific domain-types. 8559 Exclude []DomainTypeInput `json:"exclude,omitempty"` 8560 // Filter the relationships to those between entities of specific domain-types. 8561 Include []DomainTypeInput `json:"include,omitempty"` 8562 } 8563 8564 // EntityRelationshipFilter - Relationship filter 8565 type EntityRelationshipFilter struct { 8566 // Filter the relationships to those that contain a specific entity type. 8567 EntityType []EntityType `json:"entityType,omitempty"` 8568 // Filter the relationships to those that contain a specific Infrastructure integration entity type 8569 InfrastructureIntegrationType []EntityInfrastructureIntegrationType `json:"infrastructureIntegrationType,omitempty"` 8570 } 8571 8572 // EntityRelationshipNode - A node in an Entity relationship. 8573 type EntityRelationshipNode struct { 8574 // The Account ID for the relationship node. 8575 AccountID int `json:"accountId,omitempty"` 8576 Entity EntityOutlineInterface `json:"entity,omitempty"` 8577 // The `EntityType` of the relationship node. 8578 EntityType EntityType `json:"entityType,omitempty"` 8579 // The Entity `guid` for the relationship node. 8580 GUID common.EntityGUID `json:"guid,omitempty"` 8581 } 8582 8583 // special 8584 func (x *EntityRelationshipNode) UnmarshalJSON(b []byte) error { 8585 var objMap map[string]*json.RawMessage 8586 err := json.Unmarshal(b, &objMap) 8587 if err != nil { 8588 return err 8589 } 8590 8591 for k, v := range objMap { 8592 if v == nil { 8593 continue 8594 } 8595 8596 switch k { 8597 case "accountId": 8598 err = json.Unmarshal(*v, &x.AccountID) 8599 if err != nil { 8600 return err 8601 } 8602 case "entity": 8603 if v == nil { 8604 continue 8605 } 8606 xxx, err := UnmarshalEntityOutlineInterface(*v) 8607 if err != nil { 8608 return err 8609 } 8610 8611 if xxx != nil { 8612 x.Entity = *xxx 8613 } 8614 case "entityType": 8615 err = json.Unmarshal(*v, &x.EntityType) 8616 if err != nil { 8617 return err 8618 } 8619 case "guid": 8620 err = json.Unmarshal(*v, &x.GUID) 8621 if err != nil { 8622 return err 8623 } 8624 } 8625 } 8626 8627 return nil 8628 } 8629 8630 // EntityRelationshipRelatedEntitiesResult - Response containing related entities 8631 type EntityRelationshipRelatedEntitiesResult struct { 8632 // The total number of related entities. 8633 Count int `json:"count"` 8634 // The next cursor for fetching additional paginated results. 8635 NextCursor string `json:"nextCursor,omitempty"` 8636 // The list of related entities. 8637 Results []EntityRelationshipEdgeInterface `json:"results"` 8638 } 8639 8640 // special 8641 func (x *EntityRelationshipRelatedEntitiesResult) UnmarshalJSON(b []byte) error { 8642 var objMap map[string]*json.RawMessage 8643 err := json.Unmarshal(b, &objMap) 8644 if err != nil { 8645 return err 8646 } 8647 8648 for k, v := range objMap { 8649 if v == nil { 8650 continue 8651 } 8652 8653 switch k { 8654 case "count": 8655 err = json.Unmarshal(*v, &x.Count) 8656 if err != nil { 8657 return err 8658 } 8659 case "nextCursor": 8660 err = json.Unmarshal(*v, &x.NextCursor) 8661 if err != nil { 8662 return err 8663 } 8664 case "results": 8665 if v == nil { 8666 continue 8667 } 8668 var rawMessageResults []*json.RawMessage 8669 err = json.Unmarshal(*v, &rawMessageResults) 8670 if err != nil { 8671 return err 8672 } 8673 8674 for _, m := range rawMessageResults { 8675 xxx, err := UnmarshalEntityRelationshipEdgeInterface(*m) 8676 if err != nil { 8677 return err 8678 } 8679 8680 if xxx != nil { 8681 x.Results = append(x.Results, *xxx) 8682 } 8683 } 8684 } 8685 } 8686 8687 return nil 8688 } 8689 8690 // EntityRelationshipUserDefinedEdge - An entity user-defined relationship. 8691 type EntityRelationshipUserDefinedEdge struct { 8692 // The time the relationship was created. 8693 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt"` 8694 // The user that created the relationship. 8695 CreatedByUser users.UserReference `json:"createdByUser"` 8696 // The source entity of the relationship. 8697 Source EntityRelationshipVertex `json:"source"` 8698 // The target entity of the relationship. 8699 Target EntityRelationshipVertex `json:"target"` 8700 // The type of the relationship. 8701 Type EntityRelationshipEdgeType `json:"type"` 8702 } 8703 8704 func (x *EntityRelationshipUserDefinedEdge) ImplementsEntityRelationshipEdge() {} 8705 8706 // EntityRelationshipVertex - A vertex in an entity relationship edge. 8707 type EntityRelationshipVertex struct { 8708 // The account ID of the relationship node. 8709 AccountID int `json:"accountId"` 8710 // The entity of the relationship node. 8711 Entity EntityOutlineInterface `json:"entity"` 8712 // The entity guid of the relationship node. 8713 GUID common.EntityGUID `json:"guid"` 8714 } 8715 8716 // special 8717 func (x *EntityRelationshipVertex) UnmarshalJSON(b []byte) error { 8718 var objMap map[string]*json.RawMessage 8719 err := json.Unmarshal(b, &objMap) 8720 if err != nil { 8721 return err 8722 } 8723 8724 for k, v := range objMap { 8725 if v == nil { 8726 continue 8727 } 8728 8729 switch k { 8730 case "accountId": 8731 err = json.Unmarshal(*v, &x.AccountID) 8732 if err != nil { 8733 return err 8734 } 8735 case "entity": 8736 if v == nil { 8737 continue 8738 } 8739 xxx, err := UnmarshalEntityOutlineInterface(*v) 8740 if err != nil { 8741 return err 8742 } 8743 8744 if xxx != nil { 8745 x.Entity = *xxx 8746 } 8747 case "guid": 8748 err = json.Unmarshal(*v, &x.GUID) 8749 if err != nil { 8750 return err 8751 } 8752 } 8753 } 8754 8755 return nil 8756 } 8757 8758 // EntitySearch - A data structure that contains the detailed response of an entity search. 8759 // 8760 // The direct search result is available through `results`. Information about the 8761 // query itself is available through `query`, `types`, and `count`. 8762 type EntitySearch struct { 8763 // The number of entities returned by the entity search. 8764 Count int `json:"count,omitempty"` 8765 // A count of the Entity Search results faceted by a chosen set of criteria. 8766 // 8767 // Note: Unlike a NRQL facet, the facet results do not include entities where the facet value does not exist. Additionally, entities can be tagged with multiple tag values for one tag key. For these reasons, depending on the facet values chosen, the `counts` field will not always equal the `entitySearch.count` field. 8768 Counts []EntitySearchCounts `json:"counts,omitempty"` 8769 // A count of the Entity Search results faceted by a chosen set of criteria. 8770 // 8771 // Note: Unlike a NRQL facet, the facet results do not include entities where the facet value does not exist. Additionally, entities can be tagged with multiple tag values for one tag key. For these reasons, depending on the facet values chosen, the `counts` field will not always equal the `entitySearch.count` field. 8772 FacetedCounts EntitySearchFacetedCountsResult `json:"facetedCounts,omitempty"` 8773 // Results of the entity search grouped by the supplied criteria. 8774 GroupedResults []EntitySearchGroupedResult `json:"groupedResults,omitempty"` 8775 // The entity search query string that was generated by the `query` argument or the `queryBuilder` argument. 8776 Query string `json:"query,omitempty"` 8777 // The paginated results of the entity search. 8778 Results EntitySearchResult `json:"results,omitempty"` 8779 // The entity types returned by the entity search. 8780 Types []EntitySearchTypes `json:"types,omitempty"` 8781 } 8782 8783 // EntitySearchCounts - The groupings and counts of entities returned for the specified criteria. 8784 type EntitySearchCounts struct { 8785 // The number of entities that match the specified criteria. 8786 Count int `json:"count,omitempty"` 8787 // The group of entities returned for the specified criteria. 8788 Facet AttributeMap `json:"facet,omitempty"` 8789 } 8790 8791 // EntitySearchCountsFacetInput - An object representing facets to count by. 8792 type EntitySearchCountsFacetInput struct { 8793 // A criterion on which to facet entity search counts. 8794 FacetCriterion FacetCriterion `json:"facetCriterion,omitempty"` 8795 // The ordering that will be applied to the entity search facet. 8796 OrderBy SortBy `json:"orderBy,omitempty"` 8797 } 8798 8799 // EntitySearchFacetedCountsResult - The result of a faceted entity search counts query. 8800 type EntitySearchFacetedCountsResult struct { 8801 // The groupings and counts of entities returned for the specified criteria. 8802 Counts []EntitySearchCounts `json:"counts,omitempty"` 8803 // The list of facets for which the search results exceeded the limit. 8804 FacetLimits []string `json:"facetLimits,omitempty"` 8805 } 8806 8807 // EntitySearchGroupedResult - Entity search results that have been grouped by criteria 8808 type EntitySearchGroupedResult struct { 8809 // The total number of entities in this group 8810 Count int `json:"count,omitempty"` 8811 // The entities contained in this group. 8812 // 8813 // For information on New Relic entities, visit [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 8814 // 8815 // To see some query examples of entity information, 8816 // visit [our entity GraphQL API docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). 8817 Entities []EntityOutlineInterface `json:"entities,omitempty"` 8818 // The group value for this collection of entities 8819 Group AttributeMap `json:"group,omitempty"` 8820 } 8821 8822 // special 8823 func (x *EntitySearchGroupedResult) UnmarshalJSON(b []byte) error { 8824 var objMap map[string]*json.RawMessage 8825 err := json.Unmarshal(b, &objMap) 8826 if err != nil { 8827 return err 8828 } 8829 8830 for k, v := range objMap { 8831 if v == nil { 8832 continue 8833 } 8834 8835 switch k { 8836 case "count": 8837 err = json.Unmarshal(*v, &x.Count) 8838 if err != nil { 8839 return err 8840 } 8841 case "entities": 8842 if v == nil { 8843 continue 8844 } 8845 var rawMessageEntities []*json.RawMessage 8846 err = json.Unmarshal(*v, &rawMessageEntities) 8847 if err != nil { 8848 return err 8849 } 8850 8851 for _, m := range rawMessageEntities { 8852 xxx, err := UnmarshalEntityOutlineInterface(*m) 8853 if err != nil { 8854 return err 8855 } 8856 8857 if xxx != nil { 8858 x.Entities = append(x.Entities, *xxx) 8859 } 8860 } 8861 case "group": 8862 err = json.Unmarshal(*v, &x.Group) 8863 if err != nil { 8864 return err 8865 } 8866 } 8867 } 8868 8869 return nil 8870 } 8871 8872 // EntitySearchGroupedResultsOptions - Additional entity search result grouping options. 8873 type EntitySearchGroupedResultsOptions struct { 8874 // A limit on the number of result groups returned. 8875 GroupLimit int `json:"groupLimit,omitempty"` 8876 // A list of group values to filter grouped results by. For example, if you group search results by account ID, and add a `groupValueFilter` of `["1", "2"]`, the only groups returned will be groups for accounts 1 and 2 (if entities belonging to those accounts are returned by the search). 8877 // 8878 // Note this should always be a list of strings, even when the value is normally an int (ex: account ID). 8879 GroupValuesFilter []string `json:"groupValuesFilter"` 8880 } 8881 8882 // EntitySearchGroupingCriterion - A single value to group entity results by. You may supply either an entity `attribute` or `tag` value, but not both. 8883 type EntitySearchGroupingCriterion struct { 8884 // An entity attribute to group results by. 8885 Attribute EntitySearchGroupingAttribute `json:"attribute,omitempty"` 8886 // An entity tag key to group by. Do not use a `tags.` prefix. 8887 // Examples: "environment", "team". 8888 Tag string `json:"tag,omitempty"` 8889 } 8890 8891 // EntitySearchOptions - Additional entity search options. 8892 type EntitySearchOptions struct { 8893 // Whether or not matching on tag keys and values should be case-sensitive. 8894 CaseSensitiveTagMatching bool `json:"caseSensitiveTagMatching,omitempty"` 8895 // A limit to apply to the number of entities returned. Note: this option can only _lower_ the default limits. 8896 Limit int `json:"limit,omitempty"` 8897 } 8898 8899 // EntitySearchQueryBuilder - An object that can be used to discover and create the entity search query argument. 8900 type EntitySearchQueryBuilder struct { 8901 // The alerting severity of the entity. 8902 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 8903 // The alertable status of the entity 8904 Alertable bool `json:"alertable,omitempty"` 8905 // The entity domain. 8906 Domain EntitySearchQueryBuilderDomain `json:"domain,omitempty"` 8907 // **WARNING! This argument is deprecated and will not be updated with new infrastructure integration types.** If you want to query for a type not in this list, use the `query` argument instead of `queryBuilder`. To see the query string that is generated by your `queryBuilder` search, ask for the `query` field in the result object. You can then use this to build a query supplied to the `query` argument and remove your `queryBuilder`. 8908 // 8909 // The Infrastructure integration type. This should be used in place of the `type` field to search for Infrastructure integration specific types. 8910 InfrastructureIntegrationType EntityInfrastructureIntegrationType `json:"infrastructureIntegrationType,omitempty"` 8911 // The entity name. 8912 Name string `json:"name,omitempty"` 8913 // The reporting status of the entity. 8914 Reporting bool `json:"reporting,omitempty"` 8915 // A list of tags applied to the entity. 8916 Tags []EntitySearchQueryBuilderTag `json:"tags,omitempty"` 8917 // The entity type. 8918 // 8919 // If you are querying for Infrastructure integration types, use the `infrastructureIntegrationType` field instead of `type`. 8920 Type EntitySearchQueryBuilderType `json:"type,omitempty"` 8921 } 8922 8923 // EntitySearchQueryBuilderTag - An entity tag. 8924 type EntitySearchQueryBuilderTag struct { 8925 // The tag key. You can search using a `tags.` prefix or omit it and receive the same results. 8926 // 8927 // Examples: `tags.environment`, `environment`. 8928 Key string `json:"key"` 8929 // The tag value. 8930 Value string `json:"value"` 8931 } 8932 8933 // EntitySearchResult - A section of the entity search results. If there is a `nextCursor` present, there are more results available. 8934 type EntitySearchResult struct { 8935 // The accounts that hold the entities contained in this section entity search results. 8936 Accounts []AccountAccessInfo `json:"accounts,omitempty"` 8937 // The entities contained in this section of the entity search results. 8938 // 8939 // For information on New Relic entities, visit [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 8940 // 8941 // To see some query examples of entity information, 8942 // visit [our entity GraphQL API docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). 8943 Entities []EntityOutlineInterface `json:"entities,omitempty"` 8944 // Contains information about the different entity types returned in the entity search results. 8945 EntityTypes []EntityTypeResults `json:"entityTypes,omitempty"` 8946 // golden metrics grouped by domainAndEntityType-accountId-entityGuid 8947 GroupedGoldenMetrics []EntityGoldenGroupedGoldenMetrics `json:"groupedGoldenMetrics,omitempty"` 8948 // The next cursor for fetching additional paginated entity search results. 8949 NextCursor string `json:"nextCursor,omitempty"` 8950 } 8951 8952 // special 8953 func (x *EntitySearchResult) UnmarshalJSON(b []byte) error { 8954 var objMap map[string]*json.RawMessage 8955 err := json.Unmarshal(b, &objMap) 8956 if err != nil { 8957 return err 8958 } 8959 8960 for k, v := range objMap { 8961 if v == nil { 8962 continue 8963 } 8964 8965 switch k { 8966 case "accounts": 8967 err = json.Unmarshal(*v, &x.Accounts) 8968 if err != nil { 8969 return err 8970 } 8971 case "entities": 8972 if v == nil { 8973 continue 8974 } 8975 var rawMessageEntities []*json.RawMessage 8976 err = json.Unmarshal(*v, &rawMessageEntities) 8977 if err != nil { 8978 return err 8979 } 8980 8981 for _, m := range rawMessageEntities { 8982 xxx, err := UnmarshalEntityOutlineInterface(*m) 8983 if err != nil { 8984 return err 8985 } 8986 8987 if xxx != nil { 8988 x.Entities = append(x.Entities, *xxx) 8989 } 8990 } 8991 case "entityTypes": 8992 err = json.Unmarshal(*v, &x.EntityTypes) 8993 if err != nil { 8994 return err 8995 } 8996 case "groupedGoldenMetrics": 8997 err = json.Unmarshal(*v, &x.GroupedGoldenMetrics) 8998 if err != nil { 8999 return err 9000 } 9001 case "nextCursor": 9002 err = json.Unmarshal(*v, &x.NextCursor) 9003 if err != nil { 9004 return err 9005 } 9006 } 9007 } 9008 9009 return nil 9010 } 9011 9012 // EntitySearchTypes - A detailed entity search response object type. 9013 type EntitySearchTypes struct { 9014 // The number of results with this type. 9015 Count int `json:"count,omitempty"` 9016 // The domain of the search result group. 9017 Domain string `json:"domain,omitempty"` 9018 // The combined domain & type of the search result group. 9019 EntityType EntityType `json:"entityType,omitempty"` 9020 // The type of the search result group. 9021 Type string `json:"type,omitempty"` 9022 } 9023 9024 // EntitySummaryMetric - A single summary metric object. 9025 type EntitySummaryMetric struct { 9026 // The name of the summary metric. 9027 Name string `json:"name,omitempty"` 9028 // The human-readable title of the summary metric. 9029 Title string `json:"title,omitempty"` 9030 // The value of the summary metric. 9031 Value EntitySummaryMetricValueInterface `json:"value,omitempty"` 9032 } 9033 9034 // special 9035 func (x *EntitySummaryMetric) UnmarshalJSON(b []byte) error { 9036 var objMap map[string]*json.RawMessage 9037 err := json.Unmarshal(b, &objMap) 9038 if err != nil { 9039 return err 9040 } 9041 9042 for k, v := range objMap { 9043 if v == nil { 9044 continue 9045 } 9046 9047 switch k { 9048 case "name": 9049 err = json.Unmarshal(*v, &x.Name) 9050 if err != nil { 9051 return err 9052 } 9053 case "title": 9054 err = json.Unmarshal(*v, &x.Title) 9055 if err != nil { 9056 return err 9057 } 9058 case "value": 9059 if v == nil { 9060 continue 9061 } 9062 xxx, err := UnmarshalEntitySummaryMetricValueInterface(*v) 9063 if err != nil { 9064 return err 9065 } 9066 9067 if xxx != nil { 9068 x.Value = *xxx 9069 } 9070 } 9071 } 9072 9073 return nil 9074 } 9075 9076 // EntitySummaryMetricDefinition - An object which provides the definition of a single entity summary metric. 9077 type EntitySummaryMetricDefinition struct { 9078 // The name of the summary metric. 9079 Name string `json:"name"` 9080 // The human-readable title of the summary metric. 9081 Title string `json:"title"` 9082 // The unit of the summary metric. 9083 Unit EntitySummaryMetricUnit `json:"unit"` 9084 } 9085 9086 // EntitySummaryMetricValue - The interface representing the summary metric value. 9087 type EntitySummaryMetricValue struct { 9088 // The unit of the summary metric. 9089 Unit EntitySummaryMetricUnit `json:"unit,omitempty"` 9090 } 9091 9092 func (x *EntitySummaryMetricValue) ImplementsEntitySummaryMetricValue() {} 9093 9094 // EntitySummaryNumericMetricValue - A numeric summary metric value. 9095 type EntitySummaryNumericMetricValue struct { 9096 // The numeric value of a summary metric. 9097 NumericValue float64 `json:"numericValue,omitempty"` 9098 // The unit of the summary metric. 9099 Unit EntitySummaryMetricUnit `json:"unit,omitempty"` 9100 } 9101 9102 func (x *EntitySummaryNumericMetricValue) ImplementsEntitySummaryMetricValue() {} 9103 9104 // EntitySummaryStringMetricValue - A string summary metric value. 9105 type EntitySummaryStringMetricValue struct { 9106 // The string value of a summary metric. 9107 StringValue string `json:"stringValue,omitempty"` 9108 // The unit of the summary metric. 9109 Unit EntitySummaryMetricUnit `json:"unit,omitempty"` 9110 } 9111 9112 func (x *EntitySummaryStringMetricValue) ImplementsEntitySummaryMetricValue() {} 9113 9114 // EntityTag - A tag that has been applied to an entity. 9115 type EntityTag struct { 9116 // The tag's key 9117 Key string `json:"key,omitempty"` 9118 // A list of the tag values 9119 Values []string `json:"values,omitempty"` 9120 } 9121 9122 // EntityTagValueWithMetadata - The value and metadata of a single entity tag. 9123 type EntityTagValueWithMetadata struct { 9124 // Whether or not the tag can be mutated by the user. 9125 Mutable bool `json:"mutable,omitempty"` 9126 // The tag value. 9127 Value string `json:"value,omitempty"` 9128 } 9129 9130 // EntityTagWithMetadata - The tags with metadata of the entity. 9131 type EntityTagWithMetadata struct { 9132 // The tag's key. 9133 Key string `json:"key,omitempty"` 9134 // A list of tag values with metadata information. 9135 Values []EntityTagValueWithMetadata `json:"values,omitempty"` 9136 } 9137 9138 // EntityTypeResults - Detailed information about entity types. 9139 type EntityTypeResults struct { 9140 // The list of dashboard templates available for a specific entity and type. 9141 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 9142 // The domain of the entity type 9143 Domain string `json:"domain,omitempty"` 9144 // The list of golden metrics for a specific entityType. This query will contain a template query with a WHERE filtering by GUID or domainId. You will need to replace the 'DOMAIN_IDS' or 'ENTITY_GUIDS' strings with the list of ids you want to display 9145 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 9146 // The list of golden tags for a specific entityType. 9147 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 9148 // The list of metric definitions. 9149 SummaryMetricDefinitions []EntitySummaryMetricDefinition `json:"summaryMetricDefinitions"` 9150 // The type of the entity type 9151 Type string `json:"type,omitempty"` 9152 // Entity type UI definitions for this domain and type 9153 UiDefinitions EntityTypeUiDefinitionsResult `json:"uiDefinitions,omitempty"` 9154 } 9155 9156 // EntityTypeUiDefinitionsContext - Represents an entity type context. 9157 type EntityTypeUiDefinitionsContext struct { 9158 // Only entities of the following domain types are able to use this entity type. 9159 EntityTypesDomainType []DomainType `json:"entityTypesDomainType,omitempty"` 9160 // Only the following entity guids are able to use this entity type. 9161 EntityTypesGUID []string `json:"entityTypesGuid,omitempty"` 9162 // Only launchers in the following list are able to use this entity type. 9163 Launchers []string `json:"launchers,omitempty"` 9164 // Only nerdlets in the following list are able to use this entity type. 9165 Nerdlets []string `json:"nerdlets,omitempty"` 9166 } 9167 9168 // EntityTypeUiDefinitionsNerdletSection - Represents a nerdlet section. 9169 type EntityTypeUiDefinitionsNerdletSection struct { 9170 // Name of the section. 9171 Name string `json:"name"` 9172 // Nerdlets that belong to the section. 9173 Nerdlets []string `json:"nerdlets"` 9174 } 9175 9176 // EntityTypeUiDefinitionsResult - An object that an entity type UI definition. 9177 type EntityTypeUiDefinitionsResult struct { 9178 // The category of the entity type. This is used in the New Relic One platform to group entity types. 9179 Category string `json:"category"` 9180 // Context for this entity type. 9181 Context EntityTypeUiDefinitionsContext `json:"context,omitempty"` 9182 // Entity type's description. 9183 Description string `json:"description"` 9184 // Entity type's display name. 9185 DisplayName string `json:"displayName"` 9186 // Entity type's plural display name. When present, it should override the default pluralization. 9187 DisplayNamePlural string `json:"displayNamePlural,omitempty"` 9188 // Domain of an entity. 9189 Domain string `json:"domain"` 9190 // The Legacy product name this entity type is replacing. 9191 DomainName string `json:"domainName,omitempty"` 9192 // The icon to be used for this Entity Type. It has to be the name of any of the icons in NR-UI. 9193 Icon string `json:"icon"` 9194 // Indicates if this entity type is a collection that can contain one or more other entity types i.e. 'FAVORITE' (Watching) or 'ALERT' (Alerting). 9195 IsCollection bool `json:"isCollection,omitempty"` 9196 // The nerdlet sections to be shown in the entity detail view. 9197 NerdletSections []EntityTypeUiDefinitionsNerdletSection `json:"nerdletSections,omitempty"` 9198 // The id of the Nerdlet to be rendered as the overview for this type of entity in the Explorer. 9199 OverviewNerdletId string `json:"overviewNerdletId,omitempty"` 9200 // Type of an entity within the given domain. 9201 Type string `json:"type"` 9202 } 9203 9204 // ErrorTrackingErrorGroup - A grouping of similar error events. 9205 type ErrorTrackingErrorGroup struct { 9206 // User assigned to the error group 9207 AssignedUser users.UserReference `json:"assignedUser,omitempty"` 9208 // Notifications channels associated with the error group 9209 Channels []ErrorTrackingNotificationChannel `json:"channels"` 9210 // User comments 9211 Comments ErrorTrackingErrorGroupCommentsResponse `json:"comments,omitempty"` 9212 // A unique identifier for the error group 9213 ID string `json:"id"` 9214 // Notification sessions generated from this error group 9215 NotificationSessions ErrorTrackingErrorGroupNotificationSessionsResponse `json:"notificationSessions,omitempty"` 9216 // Value to indicate the current state of the group. 9217 State ErrorTrackingErrorGroupState `json:"state,omitempty"` 9218 } 9219 9220 // ErrorTrackingErrorGroupComment - A comment associated with an error group. 9221 type ErrorTrackingErrorGroupComment struct { 9222 // User that authored the comment. 9223 Author users.UserReference `json:"author"` 9224 // Comment deletion status 9225 Deleted bool `json:"deleted"` 9226 // Timestamp of last update. 9227 EditedAt *nrtime.EpochMilliseconds `json:"editedAt,omitempty"` 9228 // Text body of the comment. 9229 Text string `json:"text"` 9230 // Comment creation time. 9231 Timestamp *nrtime.EpochMilliseconds `json:"timestamp"` 9232 } 9233 9234 // ErrorTrackingErrorGroupCommentsResponse - Response for error group comments. 9235 type ErrorTrackingErrorGroupCommentsResponse struct { 9236 // Cursor to get the next page of results. 9237 NextCursor string `json:"nextCursor,omitempty"` 9238 // List of comments. 9239 Results []ErrorTrackingErrorGroupComment `json:"results"` 9240 // Total comments matching query 9241 TotalCount int `json:"totalCount,omitempty"` 9242 } 9243 9244 // ErrorTrackingErrorGroupCount - Number of error group events. 9245 type ErrorTrackingErrorGroupCount struct { 9246 // Numeric count of the events 9247 Count int `json:"count"` 9248 } 9249 9250 // ErrorTrackingErrorGroupNotificationSessionsResponse - Response for error group sessions. 9251 type ErrorTrackingErrorGroupNotificationSessionsResponse struct { 9252 // Cursor to get the next page of results. 9253 NextCursor string `json:"nextCursor,omitempty"` 9254 // List of sessions. 9255 Results []ErrorTrackingNotificationSession `json:"results"` 9256 // Total sessions matching query 9257 TotalCount int `json:"totalCount,omitempty"` 9258 } 9259 9260 // ErrorTrackingNotificationChannel - Channel configured in the notifications gateway 9261 type ErrorTrackingNotificationChannel struct { 9262 // The destination of the notification 9263 Destination ErrorTrackingNotificationDestination `json:"destination,omitempty"` 9264 // The unique identifier of the notifications service channel used for delivery 9265 ID string `json:"id"` 9266 } 9267 9268 // ErrorTrackingNotificationEvent - A notification sent from a channel. 9269 type ErrorTrackingNotificationEvent struct { 9270 // Time of event 9271 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt"` 9272 // Notification event response 9273 Evidence string `json:"evidence,omitempty"` 9274 // Event status 9275 Status ErrorTrackingNotificationEventStatus `json:"status,omitempty"` 9276 } 9277 9278 // ErrorTrackingNotificationPolicy - Policy associated with a workload and grouping rule for notifications. 9279 type ErrorTrackingNotificationPolicy struct { 9280 // List of possible routes for delivery, first match will be used 9281 Channels []ErrorTrackingNotificationChannel `json:"channels"` 9282 // Unique identifier of the policy. 9283 ID string `json:"id"` 9284 // Name of the policy. 9285 Name string `json:"name"` 9286 // Unique identifier of the workload the policy is associated with. 9287 WorkloadGUID common.EntityGUID `json:"workloadGuid"` 9288 } 9289 9290 // ErrorTrackingNotificationSession - A unique session initiated via notification channel. 9291 type ErrorTrackingNotificationSession struct { 9292 // Notification channel used to generate the session 9293 Channel ErrorTrackingNotificationChannel `json:"channel"` 9294 // Notification events related to the session 9295 Events []ErrorTrackingNotificationEvent `json:"events"` 9296 // Unique identifier of the session 9297 ID string `json:"id"` 9298 // Timestamp when session was initiated 9299 InitiatedAt *nrtime.EpochMilliseconds `json:"initiatedAt"` 9300 } 9301 9302 // ExternalEntity - An External entity. 9303 type ExternalEntity struct { 9304 Account accounts.AccountOutline `json:"account,omitempty"` 9305 // The New Relic account ID associated with this entity. 9306 AccountID int `json:"accountId,omitempty"` 9307 // The current alerting severity of the entity. 9308 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 9309 // The alert status of the entity. 9310 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 9311 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 9312 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 9313 // The list of dashboard templates available for this entity. 9314 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 9315 // The entity's domain 9316 Domain string `json:"domain,omitempty"` 9317 // A value representing the combination of the entity's domain and type. 9318 EntityType EntityType `json:"entityType,omitempty"` 9319 // A unique entity identifier. 9320 GUID common.EntityGUID `json:"guid,omitempty"` 9321 // The list of golden metrics for a specific entity 9322 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 9323 // Existing API - to be replaced with V2 implementation. 9324 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 9325 // The stored golden signal(s) for the given entity. 9326 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 9327 // The list of golden tags for a specific entityType. 9328 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 9329 // The time the entity was indexed. 9330 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 9331 // Make an `Entity` scoped query to NRDB with a NRQL string. 9332 // 9333 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 9334 // 9335 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 9336 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 9337 // The name of this entity. 9338 Name string `json:"name,omitempty"` 9339 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 9340 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 9341 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 9342 // The url to the entity. 9343 Permalink string `json:"permalink,omitempty"` 9344 // Recent violations on the entity. 9345 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 9346 // The recommended service levels for the entity. 9347 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 9348 // Related dashboards results 9349 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 9350 // Related entities result with optional filtering. 9351 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 9352 // A list of the entities' relationships. 9353 // 9354 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 9355 Relationships []EntityRelationship `json:"relationships,omitempty"` 9356 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 9357 Reporting bool `json:"reporting,omitempty"` 9358 // The service level defined for the entity. 9359 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 9360 // The list of summary metrics. 9361 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 9362 // The tags applied to the entity. 9363 // 9364 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 9365 Tags []EntityTag `json:"tags,omitempty"` 9366 // The tags applied to the entity with their metadata. 9367 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 9368 // Look up Distributed Tracing summary data for the selected `EntityGuid` 9369 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 9370 // The entity's type 9371 Type string `json:"type,omitempty"` 9372 // List of templates availables for this entity. 9373 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 9374 } 9375 9376 // GetAccount returns a pointer to the value of Account from ExternalEntity 9377 func (x ExternalEntity) GetAccount() accounts.AccountOutline { 9378 return x.Account 9379 } 9380 9381 // GetAccountID returns a pointer to the value of AccountID from ExternalEntity 9382 func (x ExternalEntity) GetAccountID() int { 9383 return x.AccountID 9384 } 9385 9386 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ExternalEntity 9387 func (x ExternalEntity) GetAlertSeverity() EntityAlertSeverity { 9388 return x.AlertSeverity 9389 } 9390 9391 // GetAlertStatus returns a pointer to the value of AlertStatus from ExternalEntity 9392 func (x ExternalEntity) GetAlertStatus() EntityAlertStatus { 9393 return x.AlertStatus 9394 } 9395 9396 // GetAlertViolations returns a pointer to the value of AlertViolations from ExternalEntity 9397 func (x ExternalEntity) GetAlertViolations() []EntityAlertViolation { 9398 return x.AlertViolations 9399 } 9400 9401 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ExternalEntity 9402 func (x ExternalEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 9403 return x.DashboardTemplates 9404 } 9405 9406 // GetDomain returns a pointer to the value of Domain from ExternalEntity 9407 func (x ExternalEntity) GetDomain() string { 9408 return x.Domain 9409 } 9410 9411 // GetEntityType returns a pointer to the value of EntityType from ExternalEntity 9412 func (x ExternalEntity) GetEntityType() EntityType { 9413 return x.EntityType 9414 } 9415 9416 // GetGUID returns a pointer to the value of GUID from ExternalEntity 9417 func (x ExternalEntity) GetGUID() common.EntityGUID { 9418 return x.GUID 9419 } 9420 9421 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ExternalEntity 9422 func (x ExternalEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 9423 return x.GoldenMetrics 9424 } 9425 9426 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ExternalEntity 9427 func (x ExternalEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 9428 return x.GoldenSignalValues 9429 } 9430 9431 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ExternalEntity 9432 func (x ExternalEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 9433 return x.GoldenSignalValuesV2 9434 } 9435 9436 // GetGoldenTags returns a pointer to the value of GoldenTags from ExternalEntity 9437 func (x ExternalEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 9438 return x.GoldenTags 9439 } 9440 9441 // GetIndexedAt returns a pointer to the value of IndexedAt from ExternalEntity 9442 func (x ExternalEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 9443 return x.IndexedAt 9444 } 9445 9446 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ExternalEntity 9447 func (x ExternalEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 9448 return x.NRDBQuery 9449 } 9450 9451 // GetName returns a pointer to the value of Name from ExternalEntity 9452 func (x ExternalEntity) GetName() string { 9453 return x.Name 9454 } 9455 9456 // GetNerdStorage returns a pointer to the value of NerdStorage from ExternalEntity 9457 func (x ExternalEntity) GetNerdStorage() NerdStorageEntityScope { 9458 return x.NerdStorage 9459 } 9460 9461 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ExternalEntity 9462 func (x ExternalEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 9463 return x.NerdStoreCollection 9464 } 9465 9466 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ExternalEntity 9467 func (x ExternalEntity) GetNerdStoreDocument() NerdStoreDocument { 9468 return x.NerdStoreDocument 9469 } 9470 9471 // GetPermalink returns a pointer to the value of Permalink from ExternalEntity 9472 func (x ExternalEntity) GetPermalink() string { 9473 return x.Permalink 9474 } 9475 9476 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ExternalEntity 9477 func (x ExternalEntity) GetRecentAlertViolations() []EntityAlertViolation { 9478 return x.RecentAlertViolations 9479 } 9480 9481 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ExternalEntity 9482 func (x ExternalEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 9483 return x.RecommendedServiceLevel 9484 } 9485 9486 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ExternalEntity 9487 func (x ExternalEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 9488 return x.RelatedDashboards 9489 } 9490 9491 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ExternalEntity 9492 func (x ExternalEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 9493 return x.RelatedEntities 9494 } 9495 9496 // GetRelationships returns a pointer to the value of Relationships from ExternalEntity 9497 func (x ExternalEntity) GetRelationships() []EntityRelationship { 9498 return x.Relationships 9499 } 9500 9501 // GetReporting returns a pointer to the value of Reporting from ExternalEntity 9502 func (x ExternalEntity) GetReporting() bool { 9503 return x.Reporting 9504 } 9505 9506 // GetServiceLevel returns a pointer to the value of ServiceLevel from ExternalEntity 9507 func (x ExternalEntity) GetServiceLevel() ServiceLevelDefinition { 9508 return x.ServiceLevel 9509 } 9510 9511 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ExternalEntity 9512 func (x ExternalEntity) GetSummaryMetrics() []EntitySummaryMetric { 9513 return x.SummaryMetrics 9514 } 9515 9516 // GetTags returns a pointer to the value of Tags from ExternalEntity 9517 func (x ExternalEntity) GetTags() []EntityTag { 9518 return x.Tags 9519 } 9520 9521 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ExternalEntity 9522 func (x ExternalEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 9523 return x.TagsWithMetadata 9524 } 9525 9526 // GetTracingSummary returns a pointer to the value of TracingSummary from ExternalEntity 9527 func (x ExternalEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 9528 return x.TracingSummary 9529 } 9530 9531 // GetType returns a pointer to the value of Type from ExternalEntity 9532 func (x ExternalEntity) GetType() string { 9533 return x.Type 9534 } 9535 9536 // GetUiTemplates returns a pointer to the value of UiTemplates from ExternalEntity 9537 func (x ExternalEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 9538 return x.UiTemplates 9539 } 9540 9541 func (x *ExternalEntity) ImplementsAlertableEntity() {} 9542 9543 func (x *ExternalEntity) ImplementsEntity() {} 9544 9545 // ExternalEntityOutline - An External entity outline. 9546 type ExternalEntityOutline struct { 9547 Account accounts.AccountOutline `json:"account,omitempty"` 9548 // The New Relic account ID associated with this entity. 9549 AccountID int `json:"accountId,omitempty"` 9550 // The current alerting severity of the entity. 9551 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 9552 // The alert status of the entity. 9553 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 9554 // The list of dashboard templates available for this entity. 9555 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 9556 // The entity's domain 9557 Domain string `json:"domain,omitempty"` 9558 // A value representing the combination of the entity's domain and type. 9559 EntityType EntityType `json:"entityType,omitempty"` 9560 // A unique entity identifier. 9561 GUID common.EntityGUID `json:"guid,omitempty"` 9562 // The list of golden metrics for a specific entity 9563 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 9564 // Existing API - to be replaced with V2 implementation. 9565 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 9566 // The stored golden signal(s) for the given entity. 9567 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 9568 // The list of golden tags for a specific entityType. 9569 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 9570 // The time the entity was indexed. 9571 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 9572 // The name of this entity. 9573 Name string `json:"name,omitempty"` 9574 // The url to the entity. 9575 Permalink string `json:"permalink,omitempty"` 9576 // The recommended service levels for the entity. 9577 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 9578 // Related dashboards results 9579 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 9580 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 9581 Reporting bool `json:"reporting,omitempty"` 9582 // The service level defined for the entity. 9583 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 9584 // The list of summary metrics. 9585 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 9586 // The tags applied to the entity. 9587 // 9588 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 9589 Tags []EntityTag `json:"tags,omitempty"` 9590 // The entity's type 9591 Type string `json:"type,omitempty"` 9592 // List of templates availables for this entity. 9593 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 9594 } 9595 9596 // GetAccount returns a pointer to the value of Account from ExternalEntityOutline 9597 func (x ExternalEntityOutline) GetAccount() accounts.AccountOutline { 9598 return x.Account 9599 } 9600 9601 // GetAccountID returns a pointer to the value of AccountID from ExternalEntityOutline 9602 func (x ExternalEntityOutline) GetAccountID() int { 9603 return x.AccountID 9604 } 9605 9606 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ExternalEntityOutline 9607 func (x ExternalEntityOutline) GetAlertSeverity() EntityAlertSeverity { 9608 return x.AlertSeverity 9609 } 9610 9611 // GetAlertStatus returns a pointer to the value of AlertStatus from ExternalEntityOutline 9612 func (x ExternalEntityOutline) GetAlertStatus() EntityAlertStatus { 9613 return x.AlertStatus 9614 } 9615 9616 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ExternalEntityOutline 9617 func (x ExternalEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 9618 return x.DashboardTemplates 9619 } 9620 9621 // GetDomain returns a pointer to the value of Domain from ExternalEntityOutline 9622 func (x ExternalEntityOutline) GetDomain() string { 9623 return x.Domain 9624 } 9625 9626 // GetEntityType returns a pointer to the value of EntityType from ExternalEntityOutline 9627 func (x ExternalEntityOutline) GetEntityType() EntityType { 9628 return x.EntityType 9629 } 9630 9631 // GetGUID returns a pointer to the value of GUID from ExternalEntityOutline 9632 func (x ExternalEntityOutline) GetGUID() common.EntityGUID { 9633 return x.GUID 9634 } 9635 9636 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ExternalEntityOutline 9637 func (x ExternalEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 9638 return x.GoldenMetrics 9639 } 9640 9641 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ExternalEntityOutline 9642 func (x ExternalEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 9643 return x.GoldenSignalValues 9644 } 9645 9646 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ExternalEntityOutline 9647 func (x ExternalEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 9648 return x.GoldenSignalValuesV2 9649 } 9650 9651 // GetGoldenTags returns a pointer to the value of GoldenTags from ExternalEntityOutline 9652 func (x ExternalEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 9653 return x.GoldenTags 9654 } 9655 9656 // GetIndexedAt returns a pointer to the value of IndexedAt from ExternalEntityOutline 9657 func (x ExternalEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 9658 return x.IndexedAt 9659 } 9660 9661 // GetName returns a pointer to the value of Name from ExternalEntityOutline 9662 func (x ExternalEntityOutline) GetName() string { 9663 return x.Name 9664 } 9665 9666 // GetPermalink returns a pointer to the value of Permalink from ExternalEntityOutline 9667 func (x ExternalEntityOutline) GetPermalink() string { 9668 return x.Permalink 9669 } 9670 9671 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ExternalEntityOutline 9672 func (x ExternalEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 9673 return x.RecommendedServiceLevel 9674 } 9675 9676 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ExternalEntityOutline 9677 func (x ExternalEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 9678 return x.RelatedDashboards 9679 } 9680 9681 // GetReporting returns a pointer to the value of Reporting from ExternalEntityOutline 9682 func (x ExternalEntityOutline) GetReporting() bool { 9683 return x.Reporting 9684 } 9685 9686 // GetServiceLevel returns a pointer to the value of ServiceLevel from ExternalEntityOutline 9687 func (x ExternalEntityOutline) GetServiceLevel() ServiceLevelDefinition { 9688 return x.ServiceLevel 9689 } 9690 9691 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ExternalEntityOutline 9692 func (x ExternalEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 9693 return x.SummaryMetrics 9694 } 9695 9696 // GetTags returns a pointer to the value of Tags from ExternalEntityOutline 9697 func (x ExternalEntityOutline) GetTags() []EntityTag { 9698 return x.Tags 9699 } 9700 9701 // GetType returns a pointer to the value of Type from ExternalEntityOutline 9702 func (x ExternalEntityOutline) GetType() string { 9703 return x.Type 9704 } 9705 9706 // GetUiTemplates returns a pointer to the value of UiTemplates from ExternalEntityOutline 9707 func (x ExternalEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 9708 return x.UiTemplates 9709 } 9710 9711 func (x *ExternalEntityOutline) ImplementsAlertableEntityOutline() {} 9712 9713 func (x *ExternalEntityOutline) ImplementsEntityOutline() {} 9714 9715 // FacetCriterion - A single faceting criterion. You may supply either a `facet` or a `tag` value, but not both. 9716 type FacetCriterion struct { 9717 // One of a list of possible entity search facets. 9718 Facet EntitySearchCountsFacet `json:"facet,omitempty"` 9719 // An entity tag key on which to facet entity search results. 9720 Tag string `json:"tag,omitempty"` 9721 } 9722 9723 // FeatureFlag - Feature Flags will be evaluated against existing flags only. Querying a flag that 9724 // does not exist will not create the flag. 9725 // 9726 // To create a flag, please visit the Feature Flag UI 9727 type FeatureFlag struct { 9728 Context []FeatureFlagContext `json:"context,omitempty"` 9729 Name string `json:"name,omitempty"` 9730 Value bool `json:"value,omitempty"` 9731 } 9732 9733 // GenericEntity - A generic entity. 9734 type GenericEntity struct { 9735 Account accounts.AccountOutline `json:"account,omitempty"` 9736 // The New Relic account ID associated with this entity. 9737 AccountID int `json:"accountId,omitempty"` 9738 // The current alerting severity of the entity. 9739 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 9740 // The alert status of the entity. 9741 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 9742 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 9743 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 9744 // The list of dashboard templates available for this entity. 9745 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 9746 // The entity's domain 9747 Domain string `json:"domain,omitempty"` 9748 // A value representing the combination of the entity's domain and type. 9749 EntityType EntityType `json:"entityType,omitempty"` 9750 // A unique entity identifier. 9751 GUID common.EntityGUID `json:"guid,omitempty"` 9752 // The list of golden metrics for a specific entity 9753 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 9754 // Existing API - to be replaced with V2 implementation. 9755 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 9756 // The stored golden signal(s) for the given entity. 9757 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 9758 // The list of golden tags for a specific entityType. 9759 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 9760 // The time the entity was indexed. 9761 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 9762 // Make an `Entity` scoped query to NRDB with a NRQL string. 9763 // 9764 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 9765 // 9766 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 9767 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 9768 // The name of this entity. 9769 Name string `json:"name,omitempty"` 9770 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 9771 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 9772 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 9773 // The url to the entity. 9774 Permalink string `json:"permalink,omitempty"` 9775 // Recent violations on the entity. 9776 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 9777 // The recommended service levels for the entity. 9778 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 9779 // Related dashboards results 9780 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 9781 // Related entities result with optional filtering. 9782 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 9783 // A list of the entities' relationships. 9784 // 9785 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 9786 Relationships []EntityRelationship `json:"relationships,omitempty"` 9787 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 9788 Reporting bool `json:"reporting,omitempty"` 9789 // The service level defined for the entity. 9790 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 9791 // The list of summary metrics. 9792 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 9793 // The tags applied to the entity. 9794 // 9795 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 9796 Tags []EntityTag `json:"tags,omitempty"` 9797 // The tags applied to the entity with their metadata. 9798 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 9799 // Look up Distributed Tracing summary data for the selected `EntityGuid` 9800 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 9801 // The entity's type 9802 Type string `json:"type,omitempty"` 9803 // List of templates availables for this entity. 9804 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 9805 } 9806 9807 // GetAccount returns a pointer to the value of Account from GenericEntity 9808 func (x GenericEntity) GetAccount() accounts.AccountOutline { 9809 return x.Account 9810 } 9811 9812 // GetAccountID returns a pointer to the value of AccountID from GenericEntity 9813 func (x GenericEntity) GetAccountID() int { 9814 return x.AccountID 9815 } 9816 9817 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericEntity 9818 func (x GenericEntity) GetAlertSeverity() EntityAlertSeverity { 9819 return x.AlertSeverity 9820 } 9821 9822 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericEntity 9823 func (x GenericEntity) GetAlertStatus() EntityAlertStatus { 9824 return x.AlertStatus 9825 } 9826 9827 // GetAlertViolations returns a pointer to the value of AlertViolations from GenericEntity 9828 func (x GenericEntity) GetAlertViolations() []EntityAlertViolation { 9829 return x.AlertViolations 9830 } 9831 9832 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericEntity 9833 func (x GenericEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 9834 return x.DashboardTemplates 9835 } 9836 9837 // GetDomain returns a pointer to the value of Domain from GenericEntity 9838 func (x GenericEntity) GetDomain() string { 9839 return x.Domain 9840 } 9841 9842 // GetEntityType returns a pointer to the value of EntityType from GenericEntity 9843 func (x GenericEntity) GetEntityType() EntityType { 9844 return x.EntityType 9845 } 9846 9847 // GetGUID returns a pointer to the value of GUID from GenericEntity 9848 func (x GenericEntity) GetGUID() common.EntityGUID { 9849 return x.GUID 9850 } 9851 9852 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericEntity 9853 func (x GenericEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 9854 return x.GoldenMetrics 9855 } 9856 9857 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericEntity 9858 func (x GenericEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 9859 return x.GoldenSignalValues 9860 } 9861 9862 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericEntity 9863 func (x GenericEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 9864 return x.GoldenSignalValuesV2 9865 } 9866 9867 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericEntity 9868 func (x GenericEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 9869 return x.GoldenTags 9870 } 9871 9872 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericEntity 9873 func (x GenericEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 9874 return x.IndexedAt 9875 } 9876 9877 // GetNRDBQuery returns a pointer to the value of NRDBQuery from GenericEntity 9878 func (x GenericEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 9879 return x.NRDBQuery 9880 } 9881 9882 // GetName returns a pointer to the value of Name from GenericEntity 9883 func (x GenericEntity) GetName() string { 9884 return x.Name 9885 } 9886 9887 // GetNerdStorage returns a pointer to the value of NerdStorage from GenericEntity 9888 func (x GenericEntity) GetNerdStorage() NerdStorageEntityScope { 9889 return x.NerdStorage 9890 } 9891 9892 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from GenericEntity 9893 func (x GenericEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 9894 return x.NerdStoreCollection 9895 } 9896 9897 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from GenericEntity 9898 func (x GenericEntity) GetNerdStoreDocument() NerdStoreDocument { 9899 return x.NerdStoreDocument 9900 } 9901 9902 // GetPermalink returns a pointer to the value of Permalink from GenericEntity 9903 func (x GenericEntity) GetPermalink() string { 9904 return x.Permalink 9905 } 9906 9907 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from GenericEntity 9908 func (x GenericEntity) GetRecentAlertViolations() []EntityAlertViolation { 9909 return x.RecentAlertViolations 9910 } 9911 9912 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericEntity 9913 func (x GenericEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 9914 return x.RecommendedServiceLevel 9915 } 9916 9917 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericEntity 9918 func (x GenericEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 9919 return x.RelatedDashboards 9920 } 9921 9922 // GetRelatedEntities returns a pointer to the value of RelatedEntities from GenericEntity 9923 func (x GenericEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 9924 return x.RelatedEntities 9925 } 9926 9927 // GetRelationships returns a pointer to the value of Relationships from GenericEntity 9928 func (x GenericEntity) GetRelationships() []EntityRelationship { 9929 return x.Relationships 9930 } 9931 9932 // GetReporting returns a pointer to the value of Reporting from GenericEntity 9933 func (x GenericEntity) GetReporting() bool { 9934 return x.Reporting 9935 } 9936 9937 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericEntity 9938 func (x GenericEntity) GetServiceLevel() ServiceLevelDefinition { 9939 return x.ServiceLevel 9940 } 9941 9942 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericEntity 9943 func (x GenericEntity) GetSummaryMetrics() []EntitySummaryMetric { 9944 return x.SummaryMetrics 9945 } 9946 9947 // GetTags returns a pointer to the value of Tags from GenericEntity 9948 func (x GenericEntity) GetTags() []EntityTag { 9949 return x.Tags 9950 } 9951 9952 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from GenericEntity 9953 func (x GenericEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 9954 return x.TagsWithMetadata 9955 } 9956 9957 // GetTracingSummary returns a pointer to the value of TracingSummary from GenericEntity 9958 func (x GenericEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 9959 return x.TracingSummary 9960 } 9961 9962 // GetType returns a pointer to the value of Type from GenericEntity 9963 func (x GenericEntity) GetType() string { 9964 return x.Type 9965 } 9966 9967 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericEntity 9968 func (x GenericEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 9969 return x.UiTemplates 9970 } 9971 9972 func (x *GenericEntity) ImplementsAlertableEntity() {} 9973 9974 func (x *GenericEntity) ImplementsEntity() {} 9975 9976 // GenericEntityOutline - A generic entity outline. 9977 type GenericEntityOutline struct { 9978 Account accounts.AccountOutline `json:"account,omitempty"` 9979 // The New Relic account ID associated with this entity. 9980 AccountID int `json:"accountId,omitempty"` 9981 // The current alerting severity of the entity. 9982 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 9983 // The alert status of the entity. 9984 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 9985 // The list of dashboard templates available for this entity. 9986 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 9987 // The entity's domain 9988 Domain string `json:"domain,omitempty"` 9989 // A value representing the combination of the entity's domain and type. 9990 EntityType EntityType `json:"entityType,omitempty"` 9991 // A unique entity identifier. 9992 GUID common.EntityGUID `json:"guid,omitempty"` 9993 // The list of golden metrics for a specific entity 9994 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 9995 // Existing API - to be replaced with V2 implementation. 9996 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 9997 // The stored golden signal(s) for the given entity. 9998 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 9999 // The list of golden tags for a specific entityType. 10000 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 10001 // The time the entity was indexed. 10002 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 10003 // The name of this entity. 10004 Name string `json:"name,omitempty"` 10005 // The url to the entity. 10006 Permalink string `json:"permalink,omitempty"` 10007 // The recommended service levels for the entity. 10008 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 10009 // Related dashboards results 10010 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 10011 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 10012 Reporting bool `json:"reporting,omitempty"` 10013 // The service level defined for the entity. 10014 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 10015 // The list of summary metrics. 10016 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 10017 // The tags applied to the entity. 10018 // 10019 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 10020 Tags []EntityTag `json:"tags,omitempty"` 10021 // The entity's type 10022 Type string `json:"type,omitempty"` 10023 // List of templates availables for this entity. 10024 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 10025 } 10026 10027 // GetAccount returns a pointer to the value of Account from GenericEntityOutline 10028 func (x GenericEntityOutline) GetAccount() accounts.AccountOutline { 10029 return x.Account 10030 } 10031 10032 // GetAccountID returns a pointer to the value of AccountID from GenericEntityOutline 10033 func (x GenericEntityOutline) GetAccountID() int { 10034 return x.AccountID 10035 } 10036 10037 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericEntityOutline 10038 func (x GenericEntityOutline) GetAlertSeverity() EntityAlertSeverity { 10039 return x.AlertSeverity 10040 } 10041 10042 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericEntityOutline 10043 func (x GenericEntityOutline) GetAlertStatus() EntityAlertStatus { 10044 return x.AlertStatus 10045 } 10046 10047 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericEntityOutline 10048 func (x GenericEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 10049 return x.DashboardTemplates 10050 } 10051 10052 // GetDomain returns a pointer to the value of Domain from GenericEntityOutline 10053 func (x GenericEntityOutline) GetDomain() string { 10054 return x.Domain 10055 } 10056 10057 // GetEntityType returns a pointer to the value of EntityType from GenericEntityOutline 10058 func (x GenericEntityOutline) GetEntityType() EntityType { 10059 return x.EntityType 10060 } 10061 10062 // GetGUID returns a pointer to the value of GUID from GenericEntityOutline 10063 func (x GenericEntityOutline) GetGUID() common.EntityGUID { 10064 return x.GUID 10065 } 10066 10067 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericEntityOutline 10068 func (x GenericEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 10069 return x.GoldenMetrics 10070 } 10071 10072 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericEntityOutline 10073 func (x GenericEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 10074 return x.GoldenSignalValues 10075 } 10076 10077 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericEntityOutline 10078 func (x GenericEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 10079 return x.GoldenSignalValuesV2 10080 } 10081 10082 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericEntityOutline 10083 func (x GenericEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 10084 return x.GoldenTags 10085 } 10086 10087 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericEntityOutline 10088 func (x GenericEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 10089 return x.IndexedAt 10090 } 10091 10092 // GetName returns a pointer to the value of Name from GenericEntityOutline 10093 func (x GenericEntityOutline) GetName() string { 10094 return x.Name 10095 } 10096 10097 // GetPermalink returns a pointer to the value of Permalink from GenericEntityOutline 10098 func (x GenericEntityOutline) GetPermalink() string { 10099 return x.Permalink 10100 } 10101 10102 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericEntityOutline 10103 func (x GenericEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 10104 return x.RecommendedServiceLevel 10105 } 10106 10107 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericEntityOutline 10108 func (x GenericEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 10109 return x.RelatedDashboards 10110 } 10111 10112 // GetReporting returns a pointer to the value of Reporting from GenericEntityOutline 10113 func (x GenericEntityOutline) GetReporting() bool { 10114 return x.Reporting 10115 } 10116 10117 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericEntityOutline 10118 func (x GenericEntityOutline) GetServiceLevel() ServiceLevelDefinition { 10119 return x.ServiceLevel 10120 } 10121 10122 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericEntityOutline 10123 func (x GenericEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 10124 return x.SummaryMetrics 10125 } 10126 10127 // GetTags returns a pointer to the value of Tags from GenericEntityOutline 10128 func (x GenericEntityOutline) GetTags() []EntityTag { 10129 return x.Tags 10130 } 10131 10132 // GetType returns a pointer to the value of Type from GenericEntityOutline 10133 func (x GenericEntityOutline) GetType() string { 10134 return x.Type 10135 } 10136 10137 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericEntityOutline 10138 func (x GenericEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 10139 return x.UiTemplates 10140 } 10141 10142 func (x *GenericEntityOutline) ImplementsAlertableEntityOutline() {} 10143 10144 func (x *GenericEntityOutline) ImplementsEntityOutline() {} 10145 10146 // GenericInfrastructureEntity - An Infrastructure entity. 10147 type GenericInfrastructureEntity struct { 10148 Account accounts.AccountOutline `json:"account,omitempty"` 10149 // The New Relic account ID associated with this entity. 10150 AccountID int `json:"accountId,omitempty"` 10151 // The current alerting severity of the entity. 10152 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 10153 // The alert status of the entity. 10154 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 10155 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 10156 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 10157 // The list of dashboard templates available for this entity. 10158 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 10159 // The entity's domain 10160 Domain string `json:"domain,omitempty"` 10161 // A value representing the combination of the entity's domain and type. 10162 EntityType EntityType `json:"entityType,omitempty"` 10163 // A unique entity identifier. 10164 GUID common.EntityGUID `json:"guid,omitempty"` 10165 // The list of golden metrics for a specific entity 10166 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 10167 // Existing API - to be replaced with V2 implementation. 10168 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 10169 // The stored golden signal(s) for the given entity. 10170 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 10171 // The list of golden tags for a specific entityType. 10172 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 10173 // The time the entity was indexed. 10174 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 10175 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 10176 // Make an `Entity` scoped query to NRDB with a NRQL string. 10177 // 10178 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 10179 // 10180 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 10181 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 10182 // The name of this entity. 10183 Name string `json:"name,omitempty"` 10184 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 10185 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 10186 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 10187 // The url to the entity. 10188 Permalink string `json:"permalink,omitempty"` 10189 // Recent violations on the entity. 10190 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 10191 // The recommended service levels for the entity. 10192 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 10193 // Related dashboards results 10194 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 10195 // Related entities result with optional filtering. 10196 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 10197 // A list of the entities' relationships. 10198 // 10199 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 10200 Relationships []EntityRelationship `json:"relationships,omitempty"` 10201 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 10202 Reporting bool `json:"reporting,omitempty"` 10203 // The service level defined for the entity. 10204 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 10205 // The list of summary metrics. 10206 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 10207 // The tags applied to the entity. 10208 // 10209 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 10210 Tags []EntityTag `json:"tags,omitempty"` 10211 // The tags applied to the entity with their metadata. 10212 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 10213 // Look up Distributed Tracing summary data for the selected `EntityGuid` 10214 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 10215 // The entity's type 10216 Type string `json:"type,omitempty"` 10217 // List of templates availables for this entity. 10218 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 10219 } 10220 10221 // GetAccount returns a pointer to the value of Account from GenericInfrastructureEntity 10222 func (x GenericInfrastructureEntity) GetAccount() accounts.AccountOutline { 10223 return x.Account 10224 } 10225 10226 // GetAccountID returns a pointer to the value of AccountID from GenericInfrastructureEntity 10227 func (x GenericInfrastructureEntity) GetAccountID() int { 10228 return x.AccountID 10229 } 10230 10231 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericInfrastructureEntity 10232 func (x GenericInfrastructureEntity) GetAlertSeverity() EntityAlertSeverity { 10233 return x.AlertSeverity 10234 } 10235 10236 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericInfrastructureEntity 10237 func (x GenericInfrastructureEntity) GetAlertStatus() EntityAlertStatus { 10238 return x.AlertStatus 10239 } 10240 10241 // GetAlertViolations returns a pointer to the value of AlertViolations from GenericInfrastructureEntity 10242 func (x GenericInfrastructureEntity) GetAlertViolations() []EntityAlertViolation { 10243 return x.AlertViolations 10244 } 10245 10246 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericInfrastructureEntity 10247 func (x GenericInfrastructureEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 10248 return x.DashboardTemplates 10249 } 10250 10251 // GetDomain returns a pointer to the value of Domain from GenericInfrastructureEntity 10252 func (x GenericInfrastructureEntity) GetDomain() string { 10253 return x.Domain 10254 } 10255 10256 // GetEntityType returns a pointer to the value of EntityType from GenericInfrastructureEntity 10257 func (x GenericInfrastructureEntity) GetEntityType() EntityType { 10258 return x.EntityType 10259 } 10260 10261 // GetGUID returns a pointer to the value of GUID from GenericInfrastructureEntity 10262 func (x GenericInfrastructureEntity) GetGUID() common.EntityGUID { 10263 return x.GUID 10264 } 10265 10266 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericInfrastructureEntity 10267 func (x GenericInfrastructureEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 10268 return x.GoldenMetrics 10269 } 10270 10271 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericInfrastructureEntity 10272 func (x GenericInfrastructureEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 10273 return x.GoldenSignalValues 10274 } 10275 10276 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericInfrastructureEntity 10277 func (x GenericInfrastructureEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 10278 return x.GoldenSignalValuesV2 10279 } 10280 10281 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericInfrastructureEntity 10282 func (x GenericInfrastructureEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 10283 return x.GoldenTags 10284 } 10285 10286 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericInfrastructureEntity 10287 func (x GenericInfrastructureEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 10288 return x.IndexedAt 10289 } 10290 10291 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from GenericInfrastructureEntity 10292 func (x GenericInfrastructureEntity) GetIntegrationTypeCode() string { 10293 return x.IntegrationTypeCode 10294 } 10295 10296 // GetNRDBQuery returns a pointer to the value of NRDBQuery from GenericInfrastructureEntity 10297 func (x GenericInfrastructureEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 10298 return x.NRDBQuery 10299 } 10300 10301 // GetName returns a pointer to the value of Name from GenericInfrastructureEntity 10302 func (x GenericInfrastructureEntity) GetName() string { 10303 return x.Name 10304 } 10305 10306 // GetNerdStorage returns a pointer to the value of NerdStorage from GenericInfrastructureEntity 10307 func (x GenericInfrastructureEntity) GetNerdStorage() NerdStorageEntityScope { 10308 return x.NerdStorage 10309 } 10310 10311 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from GenericInfrastructureEntity 10312 func (x GenericInfrastructureEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 10313 return x.NerdStoreCollection 10314 } 10315 10316 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from GenericInfrastructureEntity 10317 func (x GenericInfrastructureEntity) GetNerdStoreDocument() NerdStoreDocument { 10318 return x.NerdStoreDocument 10319 } 10320 10321 // GetPermalink returns a pointer to the value of Permalink from GenericInfrastructureEntity 10322 func (x GenericInfrastructureEntity) GetPermalink() string { 10323 return x.Permalink 10324 } 10325 10326 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from GenericInfrastructureEntity 10327 func (x GenericInfrastructureEntity) GetRecentAlertViolations() []EntityAlertViolation { 10328 return x.RecentAlertViolations 10329 } 10330 10331 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericInfrastructureEntity 10332 func (x GenericInfrastructureEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 10333 return x.RecommendedServiceLevel 10334 } 10335 10336 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericInfrastructureEntity 10337 func (x GenericInfrastructureEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 10338 return x.RelatedDashboards 10339 } 10340 10341 // GetRelatedEntities returns a pointer to the value of RelatedEntities from GenericInfrastructureEntity 10342 func (x GenericInfrastructureEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 10343 return x.RelatedEntities 10344 } 10345 10346 // GetRelationships returns a pointer to the value of Relationships from GenericInfrastructureEntity 10347 func (x GenericInfrastructureEntity) GetRelationships() []EntityRelationship { 10348 return x.Relationships 10349 } 10350 10351 // GetReporting returns a pointer to the value of Reporting from GenericInfrastructureEntity 10352 func (x GenericInfrastructureEntity) GetReporting() bool { 10353 return x.Reporting 10354 } 10355 10356 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericInfrastructureEntity 10357 func (x GenericInfrastructureEntity) GetServiceLevel() ServiceLevelDefinition { 10358 return x.ServiceLevel 10359 } 10360 10361 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericInfrastructureEntity 10362 func (x GenericInfrastructureEntity) GetSummaryMetrics() []EntitySummaryMetric { 10363 return x.SummaryMetrics 10364 } 10365 10366 // GetTags returns a pointer to the value of Tags from GenericInfrastructureEntity 10367 func (x GenericInfrastructureEntity) GetTags() []EntityTag { 10368 return x.Tags 10369 } 10370 10371 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from GenericInfrastructureEntity 10372 func (x GenericInfrastructureEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 10373 return x.TagsWithMetadata 10374 } 10375 10376 // GetTracingSummary returns a pointer to the value of TracingSummary from GenericInfrastructureEntity 10377 func (x GenericInfrastructureEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 10378 return x.TracingSummary 10379 } 10380 10381 // GetType returns a pointer to the value of Type from GenericInfrastructureEntity 10382 func (x GenericInfrastructureEntity) GetType() string { 10383 return x.Type 10384 } 10385 10386 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericInfrastructureEntity 10387 func (x GenericInfrastructureEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 10388 return x.UiTemplates 10389 } 10390 10391 func (x *GenericInfrastructureEntity) ImplementsAlertableEntity() {} 10392 10393 func (x *GenericInfrastructureEntity) ImplementsEntity() {} 10394 10395 func (x *GenericInfrastructureEntity) ImplementsInfrastructureIntegrationEntity() {} 10396 10397 // GenericInfrastructureEntityOutline - An Infrastructure entity outline. 10398 type GenericInfrastructureEntityOutline struct { 10399 Account accounts.AccountOutline `json:"account,omitempty"` 10400 // The New Relic account ID associated with this entity. 10401 AccountID int `json:"accountId,omitempty"` 10402 // The current alerting severity of the entity. 10403 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 10404 // The alert status of the entity. 10405 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 10406 // The list of dashboard templates available for this entity. 10407 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 10408 // The entity's domain 10409 Domain string `json:"domain,omitempty"` 10410 // A value representing the combination of the entity's domain and type. 10411 EntityType EntityType `json:"entityType,omitempty"` 10412 // A unique entity identifier. 10413 GUID common.EntityGUID `json:"guid,omitempty"` 10414 // The list of golden metrics for a specific entity 10415 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 10416 // Existing API - to be replaced with V2 implementation. 10417 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 10418 // The stored golden signal(s) for the given entity. 10419 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 10420 // The list of golden tags for a specific entityType. 10421 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 10422 // The time the entity was indexed. 10423 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 10424 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 10425 // The name of this entity. 10426 Name string `json:"name,omitempty"` 10427 // The url to the entity. 10428 Permalink string `json:"permalink,omitempty"` 10429 // The recommended service levels for the entity. 10430 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 10431 // Related dashboards results 10432 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 10433 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 10434 Reporting bool `json:"reporting,omitempty"` 10435 // The service level defined for the entity. 10436 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 10437 // The list of summary metrics. 10438 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 10439 // The tags applied to the entity. 10440 // 10441 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 10442 Tags []EntityTag `json:"tags,omitempty"` 10443 // The entity's type 10444 Type string `json:"type,omitempty"` 10445 // List of templates availables for this entity. 10446 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 10447 } 10448 10449 // GetAccount returns a pointer to the value of Account from GenericInfrastructureEntityOutline 10450 func (x GenericInfrastructureEntityOutline) GetAccount() accounts.AccountOutline { 10451 return x.Account 10452 } 10453 10454 // GetAccountID returns a pointer to the value of AccountID from GenericInfrastructureEntityOutline 10455 func (x GenericInfrastructureEntityOutline) GetAccountID() int { 10456 return x.AccountID 10457 } 10458 10459 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericInfrastructureEntityOutline 10460 func (x GenericInfrastructureEntityOutline) GetAlertSeverity() EntityAlertSeverity { 10461 return x.AlertSeverity 10462 } 10463 10464 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericInfrastructureEntityOutline 10465 func (x GenericInfrastructureEntityOutline) GetAlertStatus() EntityAlertStatus { 10466 return x.AlertStatus 10467 } 10468 10469 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericInfrastructureEntityOutline 10470 func (x GenericInfrastructureEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 10471 return x.DashboardTemplates 10472 } 10473 10474 // GetDomain returns a pointer to the value of Domain from GenericInfrastructureEntityOutline 10475 func (x GenericInfrastructureEntityOutline) GetDomain() string { 10476 return x.Domain 10477 } 10478 10479 // GetEntityType returns a pointer to the value of EntityType from GenericInfrastructureEntityOutline 10480 func (x GenericInfrastructureEntityOutline) GetEntityType() EntityType { 10481 return x.EntityType 10482 } 10483 10484 // GetGUID returns a pointer to the value of GUID from GenericInfrastructureEntityOutline 10485 func (x GenericInfrastructureEntityOutline) GetGUID() common.EntityGUID { 10486 return x.GUID 10487 } 10488 10489 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericInfrastructureEntityOutline 10490 func (x GenericInfrastructureEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 10491 return x.GoldenMetrics 10492 } 10493 10494 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericInfrastructureEntityOutline 10495 func (x GenericInfrastructureEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 10496 return x.GoldenSignalValues 10497 } 10498 10499 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericInfrastructureEntityOutline 10500 func (x GenericInfrastructureEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 10501 return x.GoldenSignalValuesV2 10502 } 10503 10504 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericInfrastructureEntityOutline 10505 func (x GenericInfrastructureEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 10506 return x.GoldenTags 10507 } 10508 10509 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericInfrastructureEntityOutline 10510 func (x GenericInfrastructureEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 10511 return x.IndexedAt 10512 } 10513 10514 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from GenericInfrastructureEntityOutline 10515 func (x GenericInfrastructureEntityOutline) GetIntegrationTypeCode() string { 10516 return x.IntegrationTypeCode 10517 } 10518 10519 // GetName returns a pointer to the value of Name from GenericInfrastructureEntityOutline 10520 func (x GenericInfrastructureEntityOutline) GetName() string { 10521 return x.Name 10522 } 10523 10524 // GetPermalink returns a pointer to the value of Permalink from GenericInfrastructureEntityOutline 10525 func (x GenericInfrastructureEntityOutline) GetPermalink() string { 10526 return x.Permalink 10527 } 10528 10529 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericInfrastructureEntityOutline 10530 func (x GenericInfrastructureEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 10531 return x.RecommendedServiceLevel 10532 } 10533 10534 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericInfrastructureEntityOutline 10535 func (x GenericInfrastructureEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 10536 return x.RelatedDashboards 10537 } 10538 10539 // GetReporting returns a pointer to the value of Reporting from GenericInfrastructureEntityOutline 10540 func (x GenericInfrastructureEntityOutline) GetReporting() bool { 10541 return x.Reporting 10542 } 10543 10544 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericInfrastructureEntityOutline 10545 func (x GenericInfrastructureEntityOutline) GetServiceLevel() ServiceLevelDefinition { 10546 return x.ServiceLevel 10547 } 10548 10549 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericInfrastructureEntityOutline 10550 func (x GenericInfrastructureEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 10551 return x.SummaryMetrics 10552 } 10553 10554 // GetTags returns a pointer to the value of Tags from GenericInfrastructureEntityOutline 10555 func (x GenericInfrastructureEntityOutline) GetTags() []EntityTag { 10556 return x.Tags 10557 } 10558 10559 // GetType returns a pointer to the value of Type from GenericInfrastructureEntityOutline 10560 func (x GenericInfrastructureEntityOutline) GetType() string { 10561 return x.Type 10562 } 10563 10564 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericInfrastructureEntityOutline 10565 func (x GenericInfrastructureEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 10566 return x.UiTemplates 10567 } 10568 10569 func (x *GenericInfrastructureEntityOutline) ImplementsAlertableEntityOutline() {} 10570 10571 func (x *GenericInfrastructureEntityOutline) ImplementsEntityOutline() {} 10572 10573 func (x *GenericInfrastructureEntityOutline) ImplementsInfrastructureIntegrationEntityOutline() {} 10574 10575 // GenericServiceEntity - A generic service entity. Details about a service entity that is instrumented by something other than, or in addition to an APM Agent. 10576 type GenericServiceEntity struct { 10577 Account accounts.AccountOutline `json:"account,omitempty"` 10578 // The New Relic account ID associated with this entity. 10579 AccountID int `json:"accountId,omitempty"` 10580 // The current alerting severity of the entity. 10581 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 10582 // The alert status of the entity. 10583 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 10584 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 10585 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 10586 // Query upstream and downstream dependencies for an entity 10587 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 10588 // The list of dashboard templates available for this entity. 10589 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 10590 // The entity's domain 10591 Domain string `json:"domain,omitempty"` 10592 // A value representing the combination of the entity's domain and type. 10593 EntityType EntityType `json:"entityType,omitempty"` 10594 // A unique entity identifier. 10595 GUID common.EntityGUID `json:"guid,omitempty"` 10596 // The list of golden metrics for a specific entity 10597 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 10598 // Existing API - to be replaced with V2 implementation. 10599 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 10600 // The stored golden signal(s) for the given entity. 10601 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 10602 // The list of golden tags for a specific entityType. 10603 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 10604 // The time the entity was indexed. 10605 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 10606 // Make an `Entity` scoped query to NRDB with a NRQL string. 10607 // 10608 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 10609 // 10610 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 10611 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 10612 // The name of this entity. 10613 Name string `json:"name,omitempty"` 10614 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 10615 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 10616 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 10617 // The url to the entity. 10618 Permalink string `json:"permalink,omitempty"` 10619 // Recent violations on the entity. 10620 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 10621 // The recommended service levels for the entity. 10622 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 10623 // Related dashboards results 10624 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 10625 // Related entities result with optional filtering. 10626 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 10627 // Query upstream and downstream transaction dependencies for an entity 10628 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 10629 // A list of the entities' relationships. 10630 // 10631 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 10632 Relationships []EntityRelationship `json:"relationships,omitempty"` 10633 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 10634 Reporting bool `json:"reporting,omitempty"` 10635 // The service level defined for the entity. 10636 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 10637 // The list of summary metrics. 10638 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 10639 // The tags applied to the entity. 10640 // 10641 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 10642 Tags []EntityTag `json:"tags,omitempty"` 10643 // The tags applied to the entity with their metadata. 10644 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 10645 // Look up Distributed Tracing summary data for the selected `EntityGuid` 10646 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 10647 // The entity's type 10648 Type string `json:"type,omitempty"` 10649 // List of templates availables for this entity. 10650 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 10651 } 10652 10653 // GetAccount returns a pointer to the value of Account from GenericServiceEntity 10654 func (x GenericServiceEntity) GetAccount() accounts.AccountOutline { 10655 return x.Account 10656 } 10657 10658 // GetAccountID returns a pointer to the value of AccountID from GenericServiceEntity 10659 func (x GenericServiceEntity) GetAccountID() int { 10660 return x.AccountID 10661 } 10662 10663 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericServiceEntity 10664 func (x GenericServiceEntity) GetAlertSeverity() EntityAlertSeverity { 10665 return x.AlertSeverity 10666 } 10667 10668 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericServiceEntity 10669 func (x GenericServiceEntity) GetAlertStatus() EntityAlertStatus { 10670 return x.AlertStatus 10671 } 10672 10673 // GetAlertViolations returns a pointer to the value of AlertViolations from GenericServiceEntity 10674 func (x GenericServiceEntity) GetAlertViolations() []EntityAlertViolation { 10675 return x.AlertViolations 10676 } 10677 10678 // GetConnections returns a pointer to the value of Connections from GenericServiceEntity 10679 func (x GenericServiceEntity) GetConnections() RelatedExternalsEntityResult { 10680 return x.Connections 10681 } 10682 10683 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericServiceEntity 10684 func (x GenericServiceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 10685 return x.DashboardTemplates 10686 } 10687 10688 // GetDomain returns a pointer to the value of Domain from GenericServiceEntity 10689 func (x GenericServiceEntity) GetDomain() string { 10690 return x.Domain 10691 } 10692 10693 // GetEntityType returns a pointer to the value of EntityType from GenericServiceEntity 10694 func (x GenericServiceEntity) GetEntityType() EntityType { 10695 return x.EntityType 10696 } 10697 10698 // GetGUID returns a pointer to the value of GUID from GenericServiceEntity 10699 func (x GenericServiceEntity) GetGUID() common.EntityGUID { 10700 return x.GUID 10701 } 10702 10703 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericServiceEntity 10704 func (x GenericServiceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 10705 return x.GoldenMetrics 10706 } 10707 10708 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericServiceEntity 10709 func (x GenericServiceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 10710 return x.GoldenSignalValues 10711 } 10712 10713 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericServiceEntity 10714 func (x GenericServiceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 10715 return x.GoldenSignalValuesV2 10716 } 10717 10718 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericServiceEntity 10719 func (x GenericServiceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 10720 return x.GoldenTags 10721 } 10722 10723 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericServiceEntity 10724 func (x GenericServiceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 10725 return x.IndexedAt 10726 } 10727 10728 // GetNRDBQuery returns a pointer to the value of NRDBQuery from GenericServiceEntity 10729 func (x GenericServiceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 10730 return x.NRDBQuery 10731 } 10732 10733 // GetName returns a pointer to the value of Name from GenericServiceEntity 10734 func (x GenericServiceEntity) GetName() string { 10735 return x.Name 10736 } 10737 10738 // GetNerdStorage returns a pointer to the value of NerdStorage from GenericServiceEntity 10739 func (x GenericServiceEntity) GetNerdStorage() NerdStorageEntityScope { 10740 return x.NerdStorage 10741 } 10742 10743 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from GenericServiceEntity 10744 func (x GenericServiceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 10745 return x.NerdStoreCollection 10746 } 10747 10748 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from GenericServiceEntity 10749 func (x GenericServiceEntity) GetNerdStoreDocument() NerdStoreDocument { 10750 return x.NerdStoreDocument 10751 } 10752 10753 // GetPermalink returns a pointer to the value of Permalink from GenericServiceEntity 10754 func (x GenericServiceEntity) GetPermalink() string { 10755 return x.Permalink 10756 } 10757 10758 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from GenericServiceEntity 10759 func (x GenericServiceEntity) GetRecentAlertViolations() []EntityAlertViolation { 10760 return x.RecentAlertViolations 10761 } 10762 10763 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericServiceEntity 10764 func (x GenericServiceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 10765 return x.RecommendedServiceLevel 10766 } 10767 10768 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericServiceEntity 10769 func (x GenericServiceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 10770 return x.RelatedDashboards 10771 } 10772 10773 // GetRelatedEntities returns a pointer to the value of RelatedEntities from GenericServiceEntity 10774 func (x GenericServiceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 10775 return x.RelatedEntities 10776 } 10777 10778 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from GenericServiceEntity 10779 func (x GenericServiceEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 10780 return x.RelatedTransactions 10781 } 10782 10783 // GetRelationships returns a pointer to the value of Relationships from GenericServiceEntity 10784 func (x GenericServiceEntity) GetRelationships() []EntityRelationship { 10785 return x.Relationships 10786 } 10787 10788 // GetReporting returns a pointer to the value of Reporting from GenericServiceEntity 10789 func (x GenericServiceEntity) GetReporting() bool { 10790 return x.Reporting 10791 } 10792 10793 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericServiceEntity 10794 func (x GenericServiceEntity) GetServiceLevel() ServiceLevelDefinition { 10795 return x.ServiceLevel 10796 } 10797 10798 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericServiceEntity 10799 func (x GenericServiceEntity) GetSummaryMetrics() []EntitySummaryMetric { 10800 return x.SummaryMetrics 10801 } 10802 10803 // GetTags returns a pointer to the value of Tags from GenericServiceEntity 10804 func (x GenericServiceEntity) GetTags() []EntityTag { 10805 return x.Tags 10806 } 10807 10808 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from GenericServiceEntity 10809 func (x GenericServiceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 10810 return x.TagsWithMetadata 10811 } 10812 10813 // GetTracingSummary returns a pointer to the value of TracingSummary from GenericServiceEntity 10814 func (x GenericServiceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 10815 return x.TracingSummary 10816 } 10817 10818 // GetType returns a pointer to the value of Type from GenericServiceEntity 10819 func (x GenericServiceEntity) GetType() string { 10820 return x.Type 10821 } 10822 10823 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericServiceEntity 10824 func (x GenericServiceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 10825 return x.UiTemplates 10826 } 10827 10828 func (x *GenericServiceEntity) ImplementsAlertableEntity() {} 10829 10830 func (x *GenericServiceEntity) ImplementsEntity() {} 10831 10832 func (x *GenericServiceEntity) ImplementsServiceEntity() {} 10833 10834 func (x *GenericServiceEntity) ImplementsThirdPartyServiceEntity() {} 10835 10836 // GenericServiceEntityOutline - A generic service entity outline. Details about a service entity that is instrumented by something other than, or in addition to an APM Agent. 10837 type GenericServiceEntityOutline struct { 10838 Account accounts.AccountOutline `json:"account,omitempty"` 10839 // The New Relic account ID associated with this entity. 10840 AccountID int `json:"accountId,omitempty"` 10841 // The current alerting severity of the entity. 10842 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 10843 // The alert status of the entity. 10844 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 10845 // The list of dashboard templates available for this entity. 10846 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 10847 // The entity's domain 10848 Domain string `json:"domain,omitempty"` 10849 // A value representing the combination of the entity's domain and type. 10850 EntityType EntityType `json:"entityType,omitempty"` 10851 // A unique entity identifier. 10852 GUID common.EntityGUID `json:"guid,omitempty"` 10853 // The list of golden metrics for a specific entity 10854 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 10855 // Existing API - to be replaced with V2 implementation. 10856 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 10857 // The stored golden signal(s) for the given entity. 10858 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 10859 // The list of golden tags for a specific entityType. 10860 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 10861 // The time the entity was indexed. 10862 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 10863 // The name of this entity. 10864 Name string `json:"name,omitempty"` 10865 // The url to the entity. 10866 Permalink string `json:"permalink,omitempty"` 10867 // The recommended service levels for the entity. 10868 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 10869 // Related dashboards results 10870 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 10871 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 10872 Reporting bool `json:"reporting,omitempty"` 10873 // The service level defined for the entity. 10874 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 10875 // The list of summary metrics. 10876 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 10877 // The tags applied to the entity. 10878 // 10879 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 10880 Tags []EntityTag `json:"tags,omitempty"` 10881 // The entity's type 10882 Type string `json:"type,omitempty"` 10883 // List of templates availables for this entity. 10884 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 10885 } 10886 10887 // GetAccount returns a pointer to the value of Account from GenericServiceEntityOutline 10888 func (x GenericServiceEntityOutline) GetAccount() accounts.AccountOutline { 10889 return x.Account 10890 } 10891 10892 // GetAccountID returns a pointer to the value of AccountID from GenericServiceEntityOutline 10893 func (x GenericServiceEntityOutline) GetAccountID() int { 10894 return x.AccountID 10895 } 10896 10897 // GetAlertSeverity returns a pointer to the value of AlertSeverity from GenericServiceEntityOutline 10898 func (x GenericServiceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 10899 return x.AlertSeverity 10900 } 10901 10902 // GetAlertStatus returns a pointer to the value of AlertStatus from GenericServiceEntityOutline 10903 func (x GenericServiceEntityOutline) GetAlertStatus() EntityAlertStatus { 10904 return x.AlertStatus 10905 } 10906 10907 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from GenericServiceEntityOutline 10908 func (x GenericServiceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 10909 return x.DashboardTemplates 10910 } 10911 10912 // GetDomain returns a pointer to the value of Domain from GenericServiceEntityOutline 10913 func (x GenericServiceEntityOutline) GetDomain() string { 10914 return x.Domain 10915 } 10916 10917 // GetEntityType returns a pointer to the value of EntityType from GenericServiceEntityOutline 10918 func (x GenericServiceEntityOutline) GetEntityType() EntityType { 10919 return x.EntityType 10920 } 10921 10922 // GetGUID returns a pointer to the value of GUID from GenericServiceEntityOutline 10923 func (x GenericServiceEntityOutline) GetGUID() common.EntityGUID { 10924 return x.GUID 10925 } 10926 10927 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from GenericServiceEntityOutline 10928 func (x GenericServiceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 10929 return x.GoldenMetrics 10930 } 10931 10932 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from GenericServiceEntityOutline 10933 func (x GenericServiceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 10934 return x.GoldenSignalValues 10935 } 10936 10937 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from GenericServiceEntityOutline 10938 func (x GenericServiceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 10939 return x.GoldenSignalValuesV2 10940 } 10941 10942 // GetGoldenTags returns a pointer to the value of GoldenTags from GenericServiceEntityOutline 10943 func (x GenericServiceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 10944 return x.GoldenTags 10945 } 10946 10947 // GetIndexedAt returns a pointer to the value of IndexedAt from GenericServiceEntityOutline 10948 func (x GenericServiceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 10949 return x.IndexedAt 10950 } 10951 10952 // GetName returns a pointer to the value of Name from GenericServiceEntityOutline 10953 func (x GenericServiceEntityOutline) GetName() string { 10954 return x.Name 10955 } 10956 10957 // GetPermalink returns a pointer to the value of Permalink from GenericServiceEntityOutline 10958 func (x GenericServiceEntityOutline) GetPermalink() string { 10959 return x.Permalink 10960 } 10961 10962 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from GenericServiceEntityOutline 10963 func (x GenericServiceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 10964 return x.RecommendedServiceLevel 10965 } 10966 10967 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from GenericServiceEntityOutline 10968 func (x GenericServiceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 10969 return x.RelatedDashboards 10970 } 10971 10972 // GetReporting returns a pointer to the value of Reporting from GenericServiceEntityOutline 10973 func (x GenericServiceEntityOutline) GetReporting() bool { 10974 return x.Reporting 10975 } 10976 10977 // GetServiceLevel returns a pointer to the value of ServiceLevel from GenericServiceEntityOutline 10978 func (x GenericServiceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 10979 return x.ServiceLevel 10980 } 10981 10982 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from GenericServiceEntityOutline 10983 func (x GenericServiceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 10984 return x.SummaryMetrics 10985 } 10986 10987 // GetTags returns a pointer to the value of Tags from GenericServiceEntityOutline 10988 func (x GenericServiceEntityOutline) GetTags() []EntityTag { 10989 return x.Tags 10990 } 10991 10992 // GetType returns a pointer to the value of Type from GenericServiceEntityOutline 10993 func (x GenericServiceEntityOutline) GetType() string { 10994 return x.Type 10995 } 10996 10997 // GetUiTemplates returns a pointer to the value of UiTemplates from GenericServiceEntityOutline 10998 func (x GenericServiceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 10999 return x.UiTemplates 11000 } 11001 11002 func (x *GenericServiceEntityOutline) ImplementsAlertableEntityOutline() {} 11003 11004 func (x *GenericServiceEntityOutline) ImplementsEntityOutline() {} 11005 11006 func (x *GenericServiceEntityOutline) ImplementsServiceEntityOutline() {} 11007 11008 func (x *GenericServiceEntityOutline) ImplementsThirdPartyServiceEntityOutline() {} 11009 11010 // GoldenSignalSignalValues - Individual signal data. Contains a timeseries, summary over the query, and metadata. 11011 type GoldenSignalSignalValues struct { 11012 // The fully qualified signal name. 11013 FullyQualifiedSignalName string `json:"fullyQualifiedSignalName,omitempty"` 11014 // The name of the golden signal. 11015 Name string `json:"name,omitempty"` 11016 // The aggregate value of the Golden Signal over the entire requested time window. 11017 SummaryValue float64 `json:"summaryValue,omitempty"` 11018 // Units of the values. 11019 Units string `json:"units,omitempty"` 11020 // The signal timeseries values. They correspond to the timeIndex. 11021 Values []float64 `json:"values,omitempty"` 11022 } 11023 11024 // GoldenSignalValues - Response type for Golden Signal Service (buffer) data. 11025 type GoldenSignalValues struct { 11026 // The list of signals which have data for the requested entity. 11027 SignalValues []GoldenSignalSignalValues `json:"signalValues"` 11028 // The list of timestamps corresponding to all signal timeseries values. 11029 TimeIndex []*nrtime.EpochMilliseconds `json:"timeIndex"` 11030 } 11031 11032 // InfrastructureAgentServiceDetails - A service that can be instrumented on a host 11033 type InfrastructureAgentServiceDetails struct { 11034 // How the process should be displayed to the user 11035 DisplayName string `json:"displayName"` 11036 // The GUID of the infra agent that is (or could) manage this service 11037 GUID common.EntityGUID `json:"guid"` 11038 // The process ID 11039 ProcessId string `json:"processId"` 11040 // Status of the service 11041 Status InfrastructureAgentServiceStatus `json:"status"` 11042 // Instrumentation strategy for this service 11043 Strategy InfrastructureAgentInstrumentationStrategy `json:"strategy"` 11044 } 11045 11046 // InfrastructureAwsLambdaFunctionEntity - An AWS Lambda Function entity. 11047 type InfrastructureAwsLambdaFunctionEntity struct { 11048 Account accounts.AccountOutline `json:"account,omitempty"` 11049 // The New Relic account ID associated with this entity. 11050 AccountID int `json:"accountId,omitempty"` 11051 // The current alerting severity of the entity. 11052 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 11053 // The alert status of the entity. 11054 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 11055 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 11056 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 11057 // Query upstream and downstream dependencies for an entity 11058 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 11059 // The list of dashboard templates available for this entity. 11060 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 11061 // The entity's domain 11062 Domain string `json:"domain,omitempty"` 11063 // A value representing the combination of the entity's domain and type. 11064 EntityType EntityType `json:"entityType,omitempty"` 11065 // A unique entity identifier. 11066 GUID common.EntityGUID `json:"guid,omitempty"` 11067 // The list of golden metrics for a specific entity 11068 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 11069 // Existing API - to be replaced with V2 implementation. 11070 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 11071 // The stored golden signal(s) for the given entity. 11072 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 11073 // The list of golden tags for a specific entityType. 11074 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 11075 // The time the entity was indexed. 11076 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 11077 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 11078 // Make an `Entity` scoped query to NRDB with a NRQL string. 11079 // 11080 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 11081 // 11082 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 11083 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 11084 // The name of this entity. 11085 Name string `json:"name,omitempty"` 11086 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 11087 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 11088 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 11089 // The url to the entity. 11090 Permalink string `json:"permalink,omitempty"` 11091 // Recent violations on the entity. 11092 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 11093 // The recommended service levels for the entity. 11094 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 11095 // Related dashboards results 11096 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 11097 // Related entities result with optional filtering. 11098 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 11099 // Query upstream and downstream transaction dependencies for an entity 11100 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 11101 // A list of the entities' relationships. 11102 // 11103 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 11104 Relationships []EntityRelationship `json:"relationships,omitempty"` 11105 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 11106 Reporting bool `json:"reporting,omitempty"` 11107 Runtime string `json:"runtime,omitempty"` 11108 // The service level defined for the entity. 11109 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 11110 // The list of summary metrics. 11111 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 11112 // The tags applied to the entity. 11113 // 11114 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 11115 Tags []EntityTag `json:"tags,omitempty"` 11116 // The tags applied to the entity with their metadata. 11117 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 11118 // Look up Distributed Tracing summary data for the selected `EntityGuid` 11119 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 11120 // The entity's type 11121 Type string `json:"type,omitempty"` 11122 // List of templates availables for this entity. 11123 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 11124 } 11125 11126 // GetAccount returns a pointer to the value of Account from InfrastructureAwsLambdaFunctionEntity 11127 func (x InfrastructureAwsLambdaFunctionEntity) GetAccount() accounts.AccountOutline { 11128 return x.Account 11129 } 11130 11131 // GetAccountID returns a pointer to the value of AccountID from InfrastructureAwsLambdaFunctionEntity 11132 func (x InfrastructureAwsLambdaFunctionEntity) GetAccountID() int { 11133 return x.AccountID 11134 } 11135 11136 // GetAlertSeverity returns a pointer to the value of AlertSeverity from InfrastructureAwsLambdaFunctionEntity 11137 func (x InfrastructureAwsLambdaFunctionEntity) GetAlertSeverity() EntityAlertSeverity { 11138 return x.AlertSeverity 11139 } 11140 11141 // GetAlertStatus returns a pointer to the value of AlertStatus from InfrastructureAwsLambdaFunctionEntity 11142 func (x InfrastructureAwsLambdaFunctionEntity) GetAlertStatus() EntityAlertStatus { 11143 return x.AlertStatus 11144 } 11145 11146 // GetAlertViolations returns a pointer to the value of AlertViolations from InfrastructureAwsLambdaFunctionEntity 11147 func (x InfrastructureAwsLambdaFunctionEntity) GetAlertViolations() []EntityAlertViolation { 11148 return x.AlertViolations 11149 } 11150 11151 // GetConnections returns a pointer to the value of Connections from InfrastructureAwsLambdaFunctionEntity 11152 func (x InfrastructureAwsLambdaFunctionEntity) GetConnections() RelatedExternalsEntityResult { 11153 return x.Connections 11154 } 11155 11156 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from InfrastructureAwsLambdaFunctionEntity 11157 func (x InfrastructureAwsLambdaFunctionEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 11158 return x.DashboardTemplates 11159 } 11160 11161 // GetDomain returns a pointer to the value of Domain from InfrastructureAwsLambdaFunctionEntity 11162 func (x InfrastructureAwsLambdaFunctionEntity) GetDomain() string { 11163 return x.Domain 11164 } 11165 11166 // GetEntityType returns a pointer to the value of EntityType from InfrastructureAwsLambdaFunctionEntity 11167 func (x InfrastructureAwsLambdaFunctionEntity) GetEntityType() EntityType { 11168 return x.EntityType 11169 } 11170 11171 // GetGUID returns a pointer to the value of GUID from InfrastructureAwsLambdaFunctionEntity 11172 func (x InfrastructureAwsLambdaFunctionEntity) GetGUID() common.EntityGUID { 11173 return x.GUID 11174 } 11175 11176 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from InfrastructureAwsLambdaFunctionEntity 11177 func (x InfrastructureAwsLambdaFunctionEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 11178 return x.GoldenMetrics 11179 } 11180 11181 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from InfrastructureAwsLambdaFunctionEntity 11182 func (x InfrastructureAwsLambdaFunctionEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 11183 return x.GoldenSignalValues 11184 } 11185 11186 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from InfrastructureAwsLambdaFunctionEntity 11187 func (x InfrastructureAwsLambdaFunctionEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 11188 return x.GoldenSignalValuesV2 11189 } 11190 11191 // GetGoldenTags returns a pointer to the value of GoldenTags from InfrastructureAwsLambdaFunctionEntity 11192 func (x InfrastructureAwsLambdaFunctionEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 11193 return x.GoldenTags 11194 } 11195 11196 // GetIndexedAt returns a pointer to the value of IndexedAt from InfrastructureAwsLambdaFunctionEntity 11197 func (x InfrastructureAwsLambdaFunctionEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 11198 return x.IndexedAt 11199 } 11200 11201 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from InfrastructureAwsLambdaFunctionEntity 11202 func (x InfrastructureAwsLambdaFunctionEntity) GetIntegrationTypeCode() string { 11203 return x.IntegrationTypeCode 11204 } 11205 11206 // GetNRDBQuery returns a pointer to the value of NRDBQuery from InfrastructureAwsLambdaFunctionEntity 11207 func (x InfrastructureAwsLambdaFunctionEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 11208 return x.NRDBQuery 11209 } 11210 11211 // GetName returns a pointer to the value of Name from InfrastructureAwsLambdaFunctionEntity 11212 func (x InfrastructureAwsLambdaFunctionEntity) GetName() string { 11213 return x.Name 11214 } 11215 11216 // GetNerdStorage returns a pointer to the value of NerdStorage from InfrastructureAwsLambdaFunctionEntity 11217 func (x InfrastructureAwsLambdaFunctionEntity) GetNerdStorage() NerdStorageEntityScope { 11218 return x.NerdStorage 11219 } 11220 11221 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from InfrastructureAwsLambdaFunctionEntity 11222 func (x InfrastructureAwsLambdaFunctionEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 11223 return x.NerdStoreCollection 11224 } 11225 11226 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from InfrastructureAwsLambdaFunctionEntity 11227 func (x InfrastructureAwsLambdaFunctionEntity) GetNerdStoreDocument() NerdStoreDocument { 11228 return x.NerdStoreDocument 11229 } 11230 11231 // GetPermalink returns a pointer to the value of Permalink from InfrastructureAwsLambdaFunctionEntity 11232 func (x InfrastructureAwsLambdaFunctionEntity) GetPermalink() string { 11233 return x.Permalink 11234 } 11235 11236 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from InfrastructureAwsLambdaFunctionEntity 11237 func (x InfrastructureAwsLambdaFunctionEntity) GetRecentAlertViolations() []EntityAlertViolation { 11238 return x.RecentAlertViolations 11239 } 11240 11241 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from InfrastructureAwsLambdaFunctionEntity 11242 func (x InfrastructureAwsLambdaFunctionEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 11243 return x.RecommendedServiceLevel 11244 } 11245 11246 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from InfrastructureAwsLambdaFunctionEntity 11247 func (x InfrastructureAwsLambdaFunctionEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 11248 return x.RelatedDashboards 11249 } 11250 11251 // GetRelatedEntities returns a pointer to the value of RelatedEntities from InfrastructureAwsLambdaFunctionEntity 11252 func (x InfrastructureAwsLambdaFunctionEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 11253 return x.RelatedEntities 11254 } 11255 11256 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from InfrastructureAwsLambdaFunctionEntity 11257 func (x InfrastructureAwsLambdaFunctionEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 11258 return x.RelatedTransactions 11259 } 11260 11261 // GetRelationships returns a pointer to the value of Relationships from InfrastructureAwsLambdaFunctionEntity 11262 func (x InfrastructureAwsLambdaFunctionEntity) GetRelationships() []EntityRelationship { 11263 return x.Relationships 11264 } 11265 11266 // GetReporting returns a pointer to the value of Reporting from InfrastructureAwsLambdaFunctionEntity 11267 func (x InfrastructureAwsLambdaFunctionEntity) GetReporting() bool { 11268 return x.Reporting 11269 } 11270 11271 // GetRuntime returns a pointer to the value of Runtime from InfrastructureAwsLambdaFunctionEntity 11272 func (x InfrastructureAwsLambdaFunctionEntity) GetRuntime() string { 11273 return x.Runtime 11274 } 11275 11276 // GetServiceLevel returns a pointer to the value of ServiceLevel from InfrastructureAwsLambdaFunctionEntity 11277 func (x InfrastructureAwsLambdaFunctionEntity) GetServiceLevel() ServiceLevelDefinition { 11278 return x.ServiceLevel 11279 } 11280 11281 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from InfrastructureAwsLambdaFunctionEntity 11282 func (x InfrastructureAwsLambdaFunctionEntity) GetSummaryMetrics() []EntitySummaryMetric { 11283 return x.SummaryMetrics 11284 } 11285 11286 // GetTags returns a pointer to the value of Tags from InfrastructureAwsLambdaFunctionEntity 11287 func (x InfrastructureAwsLambdaFunctionEntity) GetTags() []EntityTag { 11288 return x.Tags 11289 } 11290 11291 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from InfrastructureAwsLambdaFunctionEntity 11292 func (x InfrastructureAwsLambdaFunctionEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 11293 return x.TagsWithMetadata 11294 } 11295 11296 // GetTracingSummary returns a pointer to the value of TracingSummary from InfrastructureAwsLambdaFunctionEntity 11297 func (x InfrastructureAwsLambdaFunctionEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 11298 return x.TracingSummary 11299 } 11300 11301 // GetType returns a pointer to the value of Type from InfrastructureAwsLambdaFunctionEntity 11302 func (x InfrastructureAwsLambdaFunctionEntity) GetType() string { 11303 return x.Type 11304 } 11305 11306 // GetUiTemplates returns a pointer to the value of UiTemplates from InfrastructureAwsLambdaFunctionEntity 11307 func (x InfrastructureAwsLambdaFunctionEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 11308 return x.UiTemplates 11309 } 11310 11311 func (x *InfrastructureAwsLambdaFunctionEntity) ImplementsAlertableEntity() {} 11312 11313 func (x *InfrastructureAwsLambdaFunctionEntity) ImplementsEntity() {} 11314 11315 func (x *InfrastructureAwsLambdaFunctionEntity) ImplementsInfrastructureIntegrationEntity() {} 11316 11317 // InfrastructureAwsLambdaFunctionEntityOutline - An AWS Lambda Function entity outline. 11318 type InfrastructureAwsLambdaFunctionEntityOutline struct { 11319 Account accounts.AccountOutline `json:"account,omitempty"` 11320 // The New Relic account ID associated with this entity. 11321 AccountID int `json:"accountId,omitempty"` 11322 // The current alerting severity of the entity. 11323 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 11324 // The alert status of the entity. 11325 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 11326 // The list of dashboard templates available for this entity. 11327 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 11328 // The entity's domain 11329 Domain string `json:"domain,omitempty"` 11330 // A value representing the combination of the entity's domain and type. 11331 EntityType EntityType `json:"entityType,omitempty"` 11332 // A unique entity identifier. 11333 GUID common.EntityGUID `json:"guid,omitempty"` 11334 // The list of golden metrics for a specific entity 11335 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 11336 // Existing API - to be replaced with V2 implementation. 11337 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 11338 // The stored golden signal(s) for the given entity. 11339 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 11340 // The list of golden tags for a specific entityType. 11341 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 11342 // The time the entity was indexed. 11343 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 11344 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 11345 // The name of this entity. 11346 Name string `json:"name,omitempty"` 11347 // The url to the entity. 11348 Permalink string `json:"permalink,omitempty"` 11349 // The recommended service levels for the entity. 11350 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 11351 // Related dashboards results 11352 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 11353 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 11354 Reporting bool `json:"reporting,omitempty"` 11355 Runtime string `json:"runtime,omitempty"` 11356 // The service level defined for the entity. 11357 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 11358 // The list of summary metrics. 11359 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 11360 // The tags applied to the entity. 11361 // 11362 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 11363 Tags []EntityTag `json:"tags,omitempty"` 11364 // The entity's type 11365 Type string `json:"type,omitempty"` 11366 // List of templates availables for this entity. 11367 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 11368 } 11369 11370 // GetAccount returns a pointer to the value of Account from InfrastructureAwsLambdaFunctionEntityOutline 11371 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetAccount() accounts.AccountOutline { 11372 return x.Account 11373 } 11374 11375 // GetAccountID returns a pointer to the value of AccountID from InfrastructureAwsLambdaFunctionEntityOutline 11376 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetAccountID() int { 11377 return x.AccountID 11378 } 11379 11380 // GetAlertSeverity returns a pointer to the value of AlertSeverity from InfrastructureAwsLambdaFunctionEntityOutline 11381 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetAlertSeverity() EntityAlertSeverity { 11382 return x.AlertSeverity 11383 } 11384 11385 // GetAlertStatus returns a pointer to the value of AlertStatus from InfrastructureAwsLambdaFunctionEntityOutline 11386 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetAlertStatus() EntityAlertStatus { 11387 return x.AlertStatus 11388 } 11389 11390 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from InfrastructureAwsLambdaFunctionEntityOutline 11391 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 11392 return x.DashboardTemplates 11393 } 11394 11395 // GetDomain returns a pointer to the value of Domain from InfrastructureAwsLambdaFunctionEntityOutline 11396 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetDomain() string { 11397 return x.Domain 11398 } 11399 11400 // GetEntityType returns a pointer to the value of EntityType from InfrastructureAwsLambdaFunctionEntityOutline 11401 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetEntityType() EntityType { 11402 return x.EntityType 11403 } 11404 11405 // GetGUID returns a pointer to the value of GUID from InfrastructureAwsLambdaFunctionEntityOutline 11406 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetGUID() common.EntityGUID { 11407 return x.GUID 11408 } 11409 11410 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from InfrastructureAwsLambdaFunctionEntityOutline 11411 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 11412 return x.GoldenMetrics 11413 } 11414 11415 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from InfrastructureAwsLambdaFunctionEntityOutline 11416 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 11417 return x.GoldenSignalValues 11418 } 11419 11420 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from InfrastructureAwsLambdaFunctionEntityOutline 11421 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 11422 return x.GoldenSignalValuesV2 11423 } 11424 11425 // GetGoldenTags returns a pointer to the value of GoldenTags from InfrastructureAwsLambdaFunctionEntityOutline 11426 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 11427 return x.GoldenTags 11428 } 11429 11430 // GetIndexedAt returns a pointer to the value of IndexedAt from InfrastructureAwsLambdaFunctionEntityOutline 11431 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 11432 return x.IndexedAt 11433 } 11434 11435 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from InfrastructureAwsLambdaFunctionEntityOutline 11436 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetIntegrationTypeCode() string { 11437 return x.IntegrationTypeCode 11438 } 11439 11440 // GetName returns a pointer to the value of Name from InfrastructureAwsLambdaFunctionEntityOutline 11441 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetName() string { 11442 return x.Name 11443 } 11444 11445 // GetPermalink returns a pointer to the value of Permalink from InfrastructureAwsLambdaFunctionEntityOutline 11446 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetPermalink() string { 11447 return x.Permalink 11448 } 11449 11450 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from InfrastructureAwsLambdaFunctionEntityOutline 11451 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 11452 return x.RecommendedServiceLevel 11453 } 11454 11455 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from InfrastructureAwsLambdaFunctionEntityOutline 11456 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 11457 return x.RelatedDashboards 11458 } 11459 11460 // GetReporting returns a pointer to the value of Reporting from InfrastructureAwsLambdaFunctionEntityOutline 11461 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetReporting() bool { 11462 return x.Reporting 11463 } 11464 11465 // GetRuntime returns a pointer to the value of Runtime from InfrastructureAwsLambdaFunctionEntityOutline 11466 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetRuntime() string { 11467 return x.Runtime 11468 } 11469 11470 // GetServiceLevel returns a pointer to the value of ServiceLevel from InfrastructureAwsLambdaFunctionEntityOutline 11471 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetServiceLevel() ServiceLevelDefinition { 11472 return x.ServiceLevel 11473 } 11474 11475 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from InfrastructureAwsLambdaFunctionEntityOutline 11476 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 11477 return x.SummaryMetrics 11478 } 11479 11480 // GetTags returns a pointer to the value of Tags from InfrastructureAwsLambdaFunctionEntityOutline 11481 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetTags() []EntityTag { 11482 return x.Tags 11483 } 11484 11485 // GetType returns a pointer to the value of Type from InfrastructureAwsLambdaFunctionEntityOutline 11486 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetType() string { 11487 return x.Type 11488 } 11489 11490 // GetUiTemplates returns a pointer to the value of UiTemplates from InfrastructureAwsLambdaFunctionEntityOutline 11491 func (x InfrastructureAwsLambdaFunctionEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 11492 return x.UiTemplates 11493 } 11494 11495 func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsAlertableEntityOutline() {} 11496 11497 func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsEntityOutline() {} 11498 11499 func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsInfrastructureIntegrationEntityOutline() { 11500 } 11501 11502 // InfrastructureHostEntity - An Infrastructure Host entity. 11503 type InfrastructureHostEntity struct { 11504 Account accounts.AccountOutline `json:"account,omitempty"` 11505 // The New Relic account ID associated with this entity. 11506 AccountID int `json:"accountId,omitempty"` 11507 // The current alerting severity of the entity. 11508 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 11509 // The alert status of the entity. 11510 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 11511 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 11512 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 11513 // Retrieves deployed instrumentation given a host GUID. 11514 AvailableServices []InfrastructureAgentServiceDetails `json:"availableServices,omitempty"` 11515 // The list of dashboard templates available for this entity. 11516 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 11517 // The entity's domain 11518 Domain string `json:"domain,omitempty"` 11519 // A value representing the combination of the entity's domain and type. 11520 EntityType EntityType `json:"entityType,omitempty"` 11521 // A unique entity identifier. 11522 GUID common.EntityGUID `json:"guid,omitempty"` 11523 // The list of golden metrics for a specific entity 11524 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 11525 // Existing API - to be replaced with V2 implementation. 11526 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 11527 // The stored golden signal(s) for the given entity. 11528 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 11529 // The list of golden tags for a specific entityType. 11530 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 11531 HostSummary InfrastructureHostSummaryData `json:"hostSummary,omitempty"` 11532 // The time the entity was indexed. 11533 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 11534 // Make an `Entity` scoped query to NRDB with a NRQL string. 11535 // 11536 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 11537 // 11538 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 11539 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 11540 // The name of this entity. 11541 Name string `json:"name,omitempty"` 11542 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 11543 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 11544 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 11545 // The url to the entity. 11546 Permalink string `json:"permalink,omitempty"` 11547 // Recent violations on the entity. 11548 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 11549 // The recommended service levels for the entity. 11550 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 11551 // Related dashboards results 11552 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 11553 // Related entities result with optional filtering. 11554 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 11555 // A list of the entities' relationships. 11556 // 11557 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 11558 Relationships []EntityRelationship `json:"relationships,omitempty"` 11559 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 11560 Reporting bool `json:"reporting,omitempty"` 11561 // The service level defined for the entity. 11562 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 11563 // The list of summary metrics. 11564 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 11565 // The tags applied to the entity. 11566 // 11567 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 11568 Tags []EntityTag `json:"tags,omitempty"` 11569 // The tags applied to the entity with their metadata. 11570 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 11571 // Look up Distributed Tracing summary data for the selected `EntityGuid` 11572 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 11573 // The entity's type 11574 Type string `json:"type,omitempty"` 11575 // List of templates availables for this entity. 11576 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 11577 } 11578 11579 // GetAccount returns a pointer to the value of Account from InfrastructureHostEntity 11580 func (x InfrastructureHostEntity) GetAccount() accounts.AccountOutline { 11581 return x.Account 11582 } 11583 11584 // GetAccountID returns a pointer to the value of AccountID from InfrastructureHostEntity 11585 func (x InfrastructureHostEntity) GetAccountID() int { 11586 return x.AccountID 11587 } 11588 11589 // GetAlertSeverity returns a pointer to the value of AlertSeverity from InfrastructureHostEntity 11590 func (x InfrastructureHostEntity) GetAlertSeverity() EntityAlertSeverity { 11591 return x.AlertSeverity 11592 } 11593 11594 // GetAlertStatus returns a pointer to the value of AlertStatus from InfrastructureHostEntity 11595 func (x InfrastructureHostEntity) GetAlertStatus() EntityAlertStatus { 11596 return x.AlertStatus 11597 } 11598 11599 // GetAlertViolations returns a pointer to the value of AlertViolations from InfrastructureHostEntity 11600 func (x InfrastructureHostEntity) GetAlertViolations() []EntityAlertViolation { 11601 return x.AlertViolations 11602 } 11603 11604 // GetAvailableServices returns a pointer to the value of AvailableServices from InfrastructureHostEntity 11605 func (x InfrastructureHostEntity) GetAvailableServices() []InfrastructureAgentServiceDetails { 11606 return x.AvailableServices 11607 } 11608 11609 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from InfrastructureHostEntity 11610 func (x InfrastructureHostEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 11611 return x.DashboardTemplates 11612 } 11613 11614 // GetDomain returns a pointer to the value of Domain from InfrastructureHostEntity 11615 func (x InfrastructureHostEntity) GetDomain() string { 11616 return x.Domain 11617 } 11618 11619 // GetEntityType returns a pointer to the value of EntityType from InfrastructureHostEntity 11620 func (x InfrastructureHostEntity) GetEntityType() EntityType { 11621 return x.EntityType 11622 } 11623 11624 // GetGUID returns a pointer to the value of GUID from InfrastructureHostEntity 11625 func (x InfrastructureHostEntity) GetGUID() common.EntityGUID { 11626 return x.GUID 11627 } 11628 11629 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from InfrastructureHostEntity 11630 func (x InfrastructureHostEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 11631 return x.GoldenMetrics 11632 } 11633 11634 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from InfrastructureHostEntity 11635 func (x InfrastructureHostEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 11636 return x.GoldenSignalValues 11637 } 11638 11639 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from InfrastructureHostEntity 11640 func (x InfrastructureHostEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 11641 return x.GoldenSignalValuesV2 11642 } 11643 11644 // GetGoldenTags returns a pointer to the value of GoldenTags from InfrastructureHostEntity 11645 func (x InfrastructureHostEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 11646 return x.GoldenTags 11647 } 11648 11649 // GetHostSummary returns a pointer to the value of HostSummary from InfrastructureHostEntity 11650 func (x InfrastructureHostEntity) GetHostSummary() InfrastructureHostSummaryData { 11651 return x.HostSummary 11652 } 11653 11654 // GetIndexedAt returns a pointer to the value of IndexedAt from InfrastructureHostEntity 11655 func (x InfrastructureHostEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 11656 return x.IndexedAt 11657 } 11658 11659 // GetNRDBQuery returns a pointer to the value of NRDBQuery from InfrastructureHostEntity 11660 func (x InfrastructureHostEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 11661 return x.NRDBQuery 11662 } 11663 11664 // GetName returns a pointer to the value of Name from InfrastructureHostEntity 11665 func (x InfrastructureHostEntity) GetName() string { 11666 return x.Name 11667 } 11668 11669 // GetNerdStorage returns a pointer to the value of NerdStorage from InfrastructureHostEntity 11670 func (x InfrastructureHostEntity) GetNerdStorage() NerdStorageEntityScope { 11671 return x.NerdStorage 11672 } 11673 11674 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from InfrastructureHostEntity 11675 func (x InfrastructureHostEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 11676 return x.NerdStoreCollection 11677 } 11678 11679 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from InfrastructureHostEntity 11680 func (x InfrastructureHostEntity) GetNerdStoreDocument() NerdStoreDocument { 11681 return x.NerdStoreDocument 11682 } 11683 11684 // GetPermalink returns a pointer to the value of Permalink from InfrastructureHostEntity 11685 func (x InfrastructureHostEntity) GetPermalink() string { 11686 return x.Permalink 11687 } 11688 11689 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from InfrastructureHostEntity 11690 func (x InfrastructureHostEntity) GetRecentAlertViolations() []EntityAlertViolation { 11691 return x.RecentAlertViolations 11692 } 11693 11694 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from InfrastructureHostEntity 11695 func (x InfrastructureHostEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 11696 return x.RecommendedServiceLevel 11697 } 11698 11699 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from InfrastructureHostEntity 11700 func (x InfrastructureHostEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 11701 return x.RelatedDashboards 11702 } 11703 11704 // GetRelatedEntities returns a pointer to the value of RelatedEntities from InfrastructureHostEntity 11705 func (x InfrastructureHostEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 11706 return x.RelatedEntities 11707 } 11708 11709 // GetRelationships returns a pointer to the value of Relationships from InfrastructureHostEntity 11710 func (x InfrastructureHostEntity) GetRelationships() []EntityRelationship { 11711 return x.Relationships 11712 } 11713 11714 // GetReporting returns a pointer to the value of Reporting from InfrastructureHostEntity 11715 func (x InfrastructureHostEntity) GetReporting() bool { 11716 return x.Reporting 11717 } 11718 11719 // GetServiceLevel returns a pointer to the value of ServiceLevel from InfrastructureHostEntity 11720 func (x InfrastructureHostEntity) GetServiceLevel() ServiceLevelDefinition { 11721 return x.ServiceLevel 11722 } 11723 11724 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from InfrastructureHostEntity 11725 func (x InfrastructureHostEntity) GetSummaryMetrics() []EntitySummaryMetric { 11726 return x.SummaryMetrics 11727 } 11728 11729 // GetTags returns a pointer to the value of Tags from InfrastructureHostEntity 11730 func (x InfrastructureHostEntity) GetTags() []EntityTag { 11731 return x.Tags 11732 } 11733 11734 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from InfrastructureHostEntity 11735 func (x InfrastructureHostEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 11736 return x.TagsWithMetadata 11737 } 11738 11739 // GetTracingSummary returns a pointer to the value of TracingSummary from InfrastructureHostEntity 11740 func (x InfrastructureHostEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 11741 return x.TracingSummary 11742 } 11743 11744 // GetType returns a pointer to the value of Type from InfrastructureHostEntity 11745 func (x InfrastructureHostEntity) GetType() string { 11746 return x.Type 11747 } 11748 11749 // GetUiTemplates returns a pointer to the value of UiTemplates from InfrastructureHostEntity 11750 func (x InfrastructureHostEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 11751 return x.UiTemplates 11752 } 11753 11754 func (x *InfrastructureHostEntity) ImplementsAlertableEntity() {} 11755 11756 func (x *InfrastructureHostEntity) ImplementsEntity() {} 11757 11758 // InfrastructureHostEntityOutline - An Infrastructure Host entity outline. 11759 type InfrastructureHostEntityOutline struct { 11760 Account accounts.AccountOutline `json:"account,omitempty"` 11761 // The New Relic account ID associated with this entity. 11762 AccountID int `json:"accountId,omitempty"` 11763 // The current alerting severity of the entity. 11764 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 11765 // The alert status of the entity. 11766 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 11767 // The list of dashboard templates available for this entity. 11768 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 11769 // The entity's domain 11770 Domain string `json:"domain,omitempty"` 11771 // A value representing the combination of the entity's domain and type. 11772 EntityType EntityType `json:"entityType,omitempty"` 11773 // A unique entity identifier. 11774 GUID common.EntityGUID `json:"guid,omitempty"` 11775 // The list of golden metrics for a specific entity 11776 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 11777 // Existing API - to be replaced with V2 implementation. 11778 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 11779 // The stored golden signal(s) for the given entity. 11780 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 11781 // The list of golden tags for a specific entityType. 11782 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 11783 HostSummary InfrastructureHostSummaryData `json:"hostSummary,omitempty"` 11784 // The time the entity was indexed. 11785 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 11786 // The name of this entity. 11787 Name string `json:"name,omitempty"` 11788 // The url to the entity. 11789 Permalink string `json:"permalink,omitempty"` 11790 // The recommended service levels for the entity. 11791 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 11792 // Related dashboards results 11793 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 11794 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 11795 Reporting bool `json:"reporting,omitempty"` 11796 // The service level defined for the entity. 11797 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 11798 // The list of summary metrics. 11799 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 11800 // The tags applied to the entity. 11801 // 11802 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 11803 Tags []EntityTag `json:"tags,omitempty"` 11804 // The entity's type 11805 Type string `json:"type,omitempty"` 11806 // List of templates availables for this entity. 11807 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 11808 } 11809 11810 // GetAccount returns a pointer to the value of Account from InfrastructureHostEntityOutline 11811 func (x InfrastructureHostEntityOutline) GetAccount() accounts.AccountOutline { 11812 return x.Account 11813 } 11814 11815 // GetAccountID returns a pointer to the value of AccountID from InfrastructureHostEntityOutline 11816 func (x InfrastructureHostEntityOutline) GetAccountID() int { 11817 return x.AccountID 11818 } 11819 11820 // GetAlertSeverity returns a pointer to the value of AlertSeverity from InfrastructureHostEntityOutline 11821 func (x InfrastructureHostEntityOutline) GetAlertSeverity() EntityAlertSeverity { 11822 return x.AlertSeverity 11823 } 11824 11825 // GetAlertStatus returns a pointer to the value of AlertStatus from InfrastructureHostEntityOutline 11826 func (x InfrastructureHostEntityOutline) GetAlertStatus() EntityAlertStatus { 11827 return x.AlertStatus 11828 } 11829 11830 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from InfrastructureHostEntityOutline 11831 func (x InfrastructureHostEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 11832 return x.DashboardTemplates 11833 } 11834 11835 // GetDomain returns a pointer to the value of Domain from InfrastructureHostEntityOutline 11836 func (x InfrastructureHostEntityOutline) GetDomain() string { 11837 return x.Domain 11838 } 11839 11840 // GetEntityType returns a pointer to the value of EntityType from InfrastructureHostEntityOutline 11841 func (x InfrastructureHostEntityOutline) GetEntityType() EntityType { 11842 return x.EntityType 11843 } 11844 11845 // GetGUID returns a pointer to the value of GUID from InfrastructureHostEntityOutline 11846 func (x InfrastructureHostEntityOutline) GetGUID() common.EntityGUID { 11847 return x.GUID 11848 } 11849 11850 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from InfrastructureHostEntityOutline 11851 func (x InfrastructureHostEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 11852 return x.GoldenMetrics 11853 } 11854 11855 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from InfrastructureHostEntityOutline 11856 func (x InfrastructureHostEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 11857 return x.GoldenSignalValues 11858 } 11859 11860 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from InfrastructureHostEntityOutline 11861 func (x InfrastructureHostEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 11862 return x.GoldenSignalValuesV2 11863 } 11864 11865 // GetGoldenTags returns a pointer to the value of GoldenTags from InfrastructureHostEntityOutline 11866 func (x InfrastructureHostEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 11867 return x.GoldenTags 11868 } 11869 11870 // GetHostSummary returns a pointer to the value of HostSummary from InfrastructureHostEntityOutline 11871 func (x InfrastructureHostEntityOutline) GetHostSummary() InfrastructureHostSummaryData { 11872 return x.HostSummary 11873 } 11874 11875 // GetIndexedAt returns a pointer to the value of IndexedAt from InfrastructureHostEntityOutline 11876 func (x InfrastructureHostEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 11877 return x.IndexedAt 11878 } 11879 11880 // GetName returns a pointer to the value of Name from InfrastructureHostEntityOutline 11881 func (x InfrastructureHostEntityOutline) GetName() string { 11882 return x.Name 11883 } 11884 11885 // GetPermalink returns a pointer to the value of Permalink from InfrastructureHostEntityOutline 11886 func (x InfrastructureHostEntityOutline) GetPermalink() string { 11887 return x.Permalink 11888 } 11889 11890 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from InfrastructureHostEntityOutline 11891 func (x InfrastructureHostEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 11892 return x.RecommendedServiceLevel 11893 } 11894 11895 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from InfrastructureHostEntityOutline 11896 func (x InfrastructureHostEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 11897 return x.RelatedDashboards 11898 } 11899 11900 // GetReporting returns a pointer to the value of Reporting from InfrastructureHostEntityOutline 11901 func (x InfrastructureHostEntityOutline) GetReporting() bool { 11902 return x.Reporting 11903 } 11904 11905 // GetServiceLevel returns a pointer to the value of ServiceLevel from InfrastructureHostEntityOutline 11906 func (x InfrastructureHostEntityOutline) GetServiceLevel() ServiceLevelDefinition { 11907 return x.ServiceLevel 11908 } 11909 11910 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from InfrastructureHostEntityOutline 11911 func (x InfrastructureHostEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 11912 return x.SummaryMetrics 11913 } 11914 11915 // GetTags returns a pointer to the value of Tags from InfrastructureHostEntityOutline 11916 func (x InfrastructureHostEntityOutline) GetTags() []EntityTag { 11917 return x.Tags 11918 } 11919 11920 // GetType returns a pointer to the value of Type from InfrastructureHostEntityOutline 11921 func (x InfrastructureHostEntityOutline) GetType() string { 11922 return x.Type 11923 } 11924 11925 // GetUiTemplates returns a pointer to the value of UiTemplates from InfrastructureHostEntityOutline 11926 func (x InfrastructureHostEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 11927 return x.UiTemplates 11928 } 11929 11930 func (x *InfrastructureHostEntityOutline) ImplementsAlertableEntityOutline() {} 11931 11932 func (x *InfrastructureHostEntityOutline) ImplementsEntityOutline() {} 11933 11934 // InfrastructureHostSummaryData - Summary statistics about the Infra Host. 11935 type InfrastructureHostSummaryData struct { 11936 // Total CPU utilization as a percentage. 11937 CpuUtilizationPercent float64 `json:"cpuUtilizationPercent,omitempty"` 11938 // The cumulative disk fullness percentage. 11939 DiskUsedPercent float64 `json:"diskUsedPercent,omitempty"` 11940 // Total memory utilization as a percentage. 11941 MemoryUsedPercent float64 `json:"memoryUsedPercent,omitempty"` 11942 // The number of bytes per second received during the sampling period. 11943 NetworkReceiveRate float64 `json:"networkReceiveRate,omitempty"` 11944 // The number of bytes sent per second during the sampling period. 11945 NetworkTransmitRate float64 `json:"networkTransmitRate,omitempty"` 11946 // Number of services running on the host. 11947 ServicesCount int `json:"servicesCount,omitempty"` 11948 } 11949 11950 type InfrastructureIntegrationEntity struct { 11951 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 11952 } 11953 11954 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from InfrastructureIntegrationEntity 11955 func (x InfrastructureIntegrationEntity) GetIntegrationTypeCode() string { 11956 return x.IntegrationTypeCode 11957 } 11958 11959 func (x *InfrastructureIntegrationEntity) ImplementsInfrastructureIntegrationEntity() {} 11960 11961 type InfrastructureIntegrationEntityOutline struct { 11962 IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` 11963 } 11964 11965 // GetIntegrationTypeCode returns a pointer to the value of IntegrationTypeCode from InfrastructureIntegrationEntityOutline 11966 func (x InfrastructureIntegrationEntityOutline) GetIntegrationTypeCode() string { 11967 return x.IntegrationTypeCode 11968 } 11969 11970 func (x *InfrastructureIntegrationEntityOutline) ImplementsInfrastructureIntegrationEntityOutline() {} 11971 11972 // JavaFlightRecorderFlamegraph - The flamegraph built from the strack trace samples 11973 type JavaFlightRecorderFlamegraph struct { 11974 // List of stack frames for the flamegraph 11975 AllFrames []JavaFlightRecorderStackFrame `json:"allFrames"` 11976 } 11977 11978 // JavaFlightRecorderStackFrame - A method within the flamegraph 11979 type JavaFlightRecorderStackFrame struct { 11980 // The number of stack traces that this frame is in 11981 Count int `json:"count"` 11982 // This stackframe's id 11983 ID string `json:"id"` 11984 // The stackframe's class and method name 11985 Name string `json:"name"` 11986 // This stackframe's parent id 11987 ParentId string `json:"parentId,omitempty"` 11988 } 11989 11990 // MetricNormalizationRule - An object that represents a metric rename rule. 11991 type MetricNormalizationRule struct { 11992 // Rule action. 11993 Action MetricNormalizationRuleAction `json:"action,omitempty"` 11994 // Application GUID 11995 ApplicationGUID common.EntityGUID `json:"applicationGuid,omitempty"` 11996 // Application Name 11997 ApplicationName string `json:"applicationName,omitempty"` 11998 // Date of rule creation. 11999 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt,omitempty"` 12000 // Is rule enabled? 12001 Enabled bool `json:"enabled"` 12002 // Rule evaluation order 12003 EvalOrder int `json:"evalOrder,omitempty"` 12004 // Rule Id 12005 ID int `json:"id"` 12006 // Metric Match Expression. 12007 MatchExpression string `json:"matchExpression"` 12008 // Notes. 12009 Notes string `json:"notes,omitempty"` 12010 // Metric Replacement Expression. 12011 Replacement string `json:"replacement,omitempty"` 12012 // Whether it terminates the evaluation chain or not 12013 TerminateChain bool `json:"terminateChain,omitempty"` 12014 } 12015 12016 // MobileAppSummaryData - Mobile application summary data 12017 type MobileAppSummaryData struct { 12018 // The number of times the app has been launched. 12019 AppLaunchCount int `json:"appLaunchCount,omitempty"` 12020 // The number of crashes. 12021 CrashCount int `json:"crashCount,omitempty"` 12022 // Crash rate is percentage of crashes per sessions. 12023 CrashRate float64 `json:"crashRate,omitempty"` 12024 // Error rate is the percentage of http errors per successful requests. 12025 HttpErrorRate float64 `json:"httpErrorRate,omitempty"` 12026 // The number of http requests. 12027 HttpRequestCount int `json:"httpRequestCount,omitempty"` 12028 // The rate of http requests per minute. 12029 HttpRequestRate float64 `json:"httpRequestRate,omitempty"` 12030 // The average response time for all http calls. 12031 HttpResponseTimeAverage nrtime.Seconds `json:"httpResponseTimeAverage,omitempty"` 12032 // The number of mobile sessions. 12033 MobileSessionCount int `json:"mobileSessionCount,omitempty"` 12034 // Network failure rate is the percentage of network failures per successful requests. 12035 NetworkFailureRate float64 `json:"networkFailureRate,omitempty"` 12036 // The number of users affected by crashes. 12037 UsersAffectedCount int `json:"usersAffectedCount,omitempty"` 12038 } 12039 12040 // MobileApplicationEntity - A Mobile Application entity. 12041 type MobileApplicationEntity struct { 12042 Account accounts.AccountOutline `json:"account,omitempty"` 12043 // The New Relic account ID associated with this entity. 12044 AccountID int `json:"accountId,omitempty"` 12045 // The current alerting severity of the entity. 12046 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 12047 // The alert status of the entity. 12048 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 12049 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 12050 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 12051 // The ID of the Mobile App. 12052 ApplicationID int `json:"applicationId,omitempty"` 12053 // Query upstream and downstream dependencies for an entity 12054 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 12055 // A Crash that occurred in your Mobile Application. 12056 Crash StackTraceMobileCrash `json:"crash,omitempty"` 12057 // The list of dashboard templates available for this entity. 12058 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 12059 // The entity's domain 12060 Domain string `json:"domain,omitempty"` 12061 // A value representing the combination of the entity's domain and type. 12062 EntityType EntityType `json:"entityType,omitempty"` 12063 // A Handled Exception that occurred in your Mobile Application. 12064 Exception StackTraceMobileException `json:"exception,omitempty"` 12065 // A unique entity identifier. 12066 GUID common.EntityGUID `json:"guid,omitempty"` 12067 // The list of golden metrics for a specific entity 12068 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 12069 // Existing API - to be replaced with V2 implementation. 12070 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 12071 // The stored golden signal(s) for the given entity. 12072 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 12073 // The list of golden tags for a specific entityType. 12074 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 12075 // The time the entity was indexed. 12076 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 12077 // Retrieves a rule. 12078 MetricNormalizationRule MetricNormalizationRule `json:"metricNormalizationRule,omitempty"` 12079 // Retrieves the rules for the application. 12080 MetricNormalizationRules []MetricNormalizationRule `json:"metricNormalizationRules"` 12081 // Summary statistics about the Mobile App. 12082 MobileSummary MobileAppSummaryData `json:"mobileSummary,omitempty"` 12083 // Make an `Entity` scoped query to NRDB with a NRQL string. 12084 // 12085 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 12086 // 12087 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 12088 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 12089 // The name of this entity. 12090 Name string `json:"name,omitempty"` 12091 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 12092 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 12093 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 12094 // The url to the entity. 12095 Permalink string `json:"permalink,omitempty"` 12096 // Recent violations on the entity. 12097 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 12098 // The recommended service levels for the entity. 12099 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 12100 // Related dashboards results 12101 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 12102 // Related entities result with optional filtering. 12103 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 12104 // Query upstream and downstream transaction dependencies for an entity 12105 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 12106 // A list of the entities' relationships. 12107 // 12108 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 12109 Relationships []EntityRelationship `json:"relationships,omitempty"` 12110 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 12111 Reporting bool `json:"reporting,omitempty"` 12112 // The service level defined for the entity. 12113 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 12114 // The list of summary metrics. 12115 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 12116 // The tags applied to the entity. 12117 // 12118 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 12119 Tags []EntityTag `json:"tags,omitempty"` 12120 // The tags applied to the entity with their metadata. 12121 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 12122 // Look up Distributed Tracing summary data for the selected `EntityGuid` 12123 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 12124 // The entity's type 12125 Type string `json:"type,omitempty"` 12126 // List of templates availables for this entity. 12127 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 12128 } 12129 12130 // GetAccount returns a pointer to the value of Account from MobileApplicationEntity 12131 func (x MobileApplicationEntity) GetAccount() accounts.AccountOutline { 12132 return x.Account 12133 } 12134 12135 // GetAccountID returns a pointer to the value of AccountID from MobileApplicationEntity 12136 func (x MobileApplicationEntity) GetAccountID() int { 12137 return x.AccountID 12138 } 12139 12140 // GetAlertSeverity returns a pointer to the value of AlertSeverity from MobileApplicationEntity 12141 func (x MobileApplicationEntity) GetAlertSeverity() EntityAlertSeverity { 12142 return x.AlertSeverity 12143 } 12144 12145 // GetAlertStatus returns a pointer to the value of AlertStatus from MobileApplicationEntity 12146 func (x MobileApplicationEntity) GetAlertStatus() EntityAlertStatus { 12147 return x.AlertStatus 12148 } 12149 12150 // GetAlertViolations returns a pointer to the value of AlertViolations from MobileApplicationEntity 12151 func (x MobileApplicationEntity) GetAlertViolations() []EntityAlertViolation { 12152 return x.AlertViolations 12153 } 12154 12155 // GetApplicationID returns a pointer to the value of ApplicationID from MobileApplicationEntity 12156 func (x MobileApplicationEntity) GetApplicationID() int { 12157 return x.ApplicationID 12158 } 12159 12160 // GetConnections returns a pointer to the value of Connections from MobileApplicationEntity 12161 func (x MobileApplicationEntity) GetConnections() RelatedExternalsEntityResult { 12162 return x.Connections 12163 } 12164 12165 // GetCrash returns a pointer to the value of Crash from MobileApplicationEntity 12166 func (x MobileApplicationEntity) GetCrash() StackTraceMobileCrash { 12167 return x.Crash 12168 } 12169 12170 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from MobileApplicationEntity 12171 func (x MobileApplicationEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 12172 return x.DashboardTemplates 12173 } 12174 12175 // GetDomain returns a pointer to the value of Domain from MobileApplicationEntity 12176 func (x MobileApplicationEntity) GetDomain() string { 12177 return x.Domain 12178 } 12179 12180 // GetEntityType returns a pointer to the value of EntityType from MobileApplicationEntity 12181 func (x MobileApplicationEntity) GetEntityType() EntityType { 12182 return x.EntityType 12183 } 12184 12185 // GetException returns a pointer to the value of Exception from MobileApplicationEntity 12186 func (x MobileApplicationEntity) GetException() StackTraceMobileException { 12187 return x.Exception 12188 } 12189 12190 // GetGUID returns a pointer to the value of GUID from MobileApplicationEntity 12191 func (x MobileApplicationEntity) GetGUID() common.EntityGUID { 12192 return x.GUID 12193 } 12194 12195 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from MobileApplicationEntity 12196 func (x MobileApplicationEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 12197 return x.GoldenMetrics 12198 } 12199 12200 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from MobileApplicationEntity 12201 func (x MobileApplicationEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 12202 return x.GoldenSignalValues 12203 } 12204 12205 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from MobileApplicationEntity 12206 func (x MobileApplicationEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 12207 return x.GoldenSignalValuesV2 12208 } 12209 12210 // GetGoldenTags returns a pointer to the value of GoldenTags from MobileApplicationEntity 12211 func (x MobileApplicationEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 12212 return x.GoldenTags 12213 } 12214 12215 // GetIndexedAt returns a pointer to the value of IndexedAt from MobileApplicationEntity 12216 func (x MobileApplicationEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 12217 return x.IndexedAt 12218 } 12219 12220 // GetMetricNormalizationRule returns a pointer to the value of MetricNormalizationRule from MobileApplicationEntity 12221 func (x MobileApplicationEntity) GetMetricNormalizationRule() MetricNormalizationRule { 12222 return x.MetricNormalizationRule 12223 } 12224 12225 // GetMetricNormalizationRules returns a pointer to the value of MetricNormalizationRules from MobileApplicationEntity 12226 func (x MobileApplicationEntity) GetMetricNormalizationRules() []MetricNormalizationRule { 12227 return x.MetricNormalizationRules 12228 } 12229 12230 // GetMobileSummary returns a pointer to the value of MobileSummary from MobileApplicationEntity 12231 func (x MobileApplicationEntity) GetMobileSummary() MobileAppSummaryData { 12232 return x.MobileSummary 12233 } 12234 12235 // GetNRDBQuery returns a pointer to the value of NRDBQuery from MobileApplicationEntity 12236 func (x MobileApplicationEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 12237 return x.NRDBQuery 12238 } 12239 12240 // GetName returns a pointer to the value of Name from MobileApplicationEntity 12241 func (x MobileApplicationEntity) GetName() string { 12242 return x.Name 12243 } 12244 12245 // GetNerdStorage returns a pointer to the value of NerdStorage from MobileApplicationEntity 12246 func (x MobileApplicationEntity) GetNerdStorage() NerdStorageEntityScope { 12247 return x.NerdStorage 12248 } 12249 12250 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from MobileApplicationEntity 12251 func (x MobileApplicationEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 12252 return x.NerdStoreCollection 12253 } 12254 12255 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from MobileApplicationEntity 12256 func (x MobileApplicationEntity) GetNerdStoreDocument() NerdStoreDocument { 12257 return x.NerdStoreDocument 12258 } 12259 12260 // GetPermalink returns a pointer to the value of Permalink from MobileApplicationEntity 12261 func (x MobileApplicationEntity) GetPermalink() string { 12262 return x.Permalink 12263 } 12264 12265 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from MobileApplicationEntity 12266 func (x MobileApplicationEntity) GetRecentAlertViolations() []EntityAlertViolation { 12267 return x.RecentAlertViolations 12268 } 12269 12270 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from MobileApplicationEntity 12271 func (x MobileApplicationEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 12272 return x.RecommendedServiceLevel 12273 } 12274 12275 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from MobileApplicationEntity 12276 func (x MobileApplicationEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 12277 return x.RelatedDashboards 12278 } 12279 12280 // GetRelatedEntities returns a pointer to the value of RelatedEntities from MobileApplicationEntity 12281 func (x MobileApplicationEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 12282 return x.RelatedEntities 12283 } 12284 12285 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from MobileApplicationEntity 12286 func (x MobileApplicationEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 12287 return x.RelatedTransactions 12288 } 12289 12290 // GetRelationships returns a pointer to the value of Relationships from MobileApplicationEntity 12291 func (x MobileApplicationEntity) GetRelationships() []EntityRelationship { 12292 return x.Relationships 12293 } 12294 12295 // GetReporting returns a pointer to the value of Reporting from MobileApplicationEntity 12296 func (x MobileApplicationEntity) GetReporting() bool { 12297 return x.Reporting 12298 } 12299 12300 // GetServiceLevel returns a pointer to the value of ServiceLevel from MobileApplicationEntity 12301 func (x MobileApplicationEntity) GetServiceLevel() ServiceLevelDefinition { 12302 return x.ServiceLevel 12303 } 12304 12305 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from MobileApplicationEntity 12306 func (x MobileApplicationEntity) GetSummaryMetrics() []EntitySummaryMetric { 12307 return x.SummaryMetrics 12308 } 12309 12310 // GetTags returns a pointer to the value of Tags from MobileApplicationEntity 12311 func (x MobileApplicationEntity) GetTags() []EntityTag { 12312 return x.Tags 12313 } 12314 12315 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from MobileApplicationEntity 12316 func (x MobileApplicationEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 12317 return x.TagsWithMetadata 12318 } 12319 12320 // GetTracingSummary returns a pointer to the value of TracingSummary from MobileApplicationEntity 12321 func (x MobileApplicationEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 12322 return x.TracingSummary 12323 } 12324 12325 // GetType returns a pointer to the value of Type from MobileApplicationEntity 12326 func (x MobileApplicationEntity) GetType() string { 12327 return x.Type 12328 } 12329 12330 // GetUiTemplates returns a pointer to the value of UiTemplates from MobileApplicationEntity 12331 func (x MobileApplicationEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 12332 return x.UiTemplates 12333 } 12334 12335 func (x *MobileApplicationEntity) ImplementsAlertableEntity() {} 12336 12337 func (x *MobileApplicationEntity) ImplementsEntity() {} 12338 12339 // MobileApplicationEntityOutline - A Mobile Application entity outline. 12340 type MobileApplicationEntityOutline struct { 12341 Account accounts.AccountOutline `json:"account,omitempty"` 12342 // The New Relic account ID associated with this entity. 12343 AccountID int `json:"accountId,omitempty"` 12344 // The current alerting severity of the entity. 12345 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 12346 // The alert status of the entity. 12347 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 12348 // The ID of the Mobile App. 12349 ApplicationID int `json:"applicationId,omitempty"` 12350 // The list of dashboard templates available for this entity. 12351 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 12352 // The entity's domain 12353 Domain string `json:"domain,omitempty"` 12354 // A value representing the combination of the entity's domain and type. 12355 EntityType EntityType `json:"entityType,omitempty"` 12356 // A unique entity identifier. 12357 GUID common.EntityGUID `json:"guid,omitempty"` 12358 // The list of golden metrics for a specific entity 12359 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 12360 // Existing API - to be replaced with V2 implementation. 12361 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 12362 // The stored golden signal(s) for the given entity. 12363 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 12364 // The list of golden tags for a specific entityType. 12365 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 12366 // The time the entity was indexed. 12367 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 12368 // Summary statistics about the Mobile App. 12369 MobileSummary MobileAppSummaryData `json:"mobileSummary,omitempty"` 12370 // The name of this entity. 12371 Name string `json:"name,omitempty"` 12372 // The url to the entity. 12373 Permalink string `json:"permalink,omitempty"` 12374 // The recommended service levels for the entity. 12375 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 12376 // Related dashboards results 12377 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 12378 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 12379 Reporting bool `json:"reporting,omitempty"` 12380 // The service level defined for the entity. 12381 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 12382 // The list of summary metrics. 12383 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 12384 // The tags applied to the entity. 12385 // 12386 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 12387 Tags []EntityTag `json:"tags,omitempty"` 12388 // The entity's type 12389 Type string `json:"type,omitempty"` 12390 // List of templates availables for this entity. 12391 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 12392 } 12393 12394 // GetAccount returns a pointer to the value of Account from MobileApplicationEntityOutline 12395 func (x MobileApplicationEntityOutline) GetAccount() accounts.AccountOutline { 12396 return x.Account 12397 } 12398 12399 // GetAccountID returns a pointer to the value of AccountID from MobileApplicationEntityOutline 12400 func (x MobileApplicationEntityOutline) GetAccountID() int { 12401 return x.AccountID 12402 } 12403 12404 // GetAlertSeverity returns a pointer to the value of AlertSeverity from MobileApplicationEntityOutline 12405 func (x MobileApplicationEntityOutline) GetAlertSeverity() EntityAlertSeverity { 12406 return x.AlertSeverity 12407 } 12408 12409 // GetAlertStatus returns a pointer to the value of AlertStatus from MobileApplicationEntityOutline 12410 func (x MobileApplicationEntityOutline) GetAlertStatus() EntityAlertStatus { 12411 return x.AlertStatus 12412 } 12413 12414 // GetApplicationID returns a pointer to the value of ApplicationID from MobileApplicationEntityOutline 12415 func (x MobileApplicationEntityOutline) GetApplicationID() int { 12416 return x.ApplicationID 12417 } 12418 12419 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from MobileApplicationEntityOutline 12420 func (x MobileApplicationEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 12421 return x.DashboardTemplates 12422 } 12423 12424 // GetDomain returns a pointer to the value of Domain from MobileApplicationEntityOutline 12425 func (x MobileApplicationEntityOutline) GetDomain() string { 12426 return x.Domain 12427 } 12428 12429 // GetEntityType returns a pointer to the value of EntityType from MobileApplicationEntityOutline 12430 func (x MobileApplicationEntityOutline) GetEntityType() EntityType { 12431 return x.EntityType 12432 } 12433 12434 // GetGUID returns a pointer to the value of GUID from MobileApplicationEntityOutline 12435 func (x MobileApplicationEntityOutline) GetGUID() common.EntityGUID { 12436 return x.GUID 12437 } 12438 12439 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from MobileApplicationEntityOutline 12440 func (x MobileApplicationEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 12441 return x.GoldenMetrics 12442 } 12443 12444 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from MobileApplicationEntityOutline 12445 func (x MobileApplicationEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 12446 return x.GoldenSignalValues 12447 } 12448 12449 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from MobileApplicationEntityOutline 12450 func (x MobileApplicationEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 12451 return x.GoldenSignalValuesV2 12452 } 12453 12454 // GetGoldenTags returns a pointer to the value of GoldenTags from MobileApplicationEntityOutline 12455 func (x MobileApplicationEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 12456 return x.GoldenTags 12457 } 12458 12459 // GetIndexedAt returns a pointer to the value of IndexedAt from MobileApplicationEntityOutline 12460 func (x MobileApplicationEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 12461 return x.IndexedAt 12462 } 12463 12464 // GetMobileSummary returns a pointer to the value of MobileSummary from MobileApplicationEntityOutline 12465 func (x MobileApplicationEntityOutline) GetMobileSummary() MobileAppSummaryData { 12466 return x.MobileSummary 12467 } 12468 12469 // GetName returns a pointer to the value of Name from MobileApplicationEntityOutline 12470 func (x MobileApplicationEntityOutline) GetName() string { 12471 return x.Name 12472 } 12473 12474 // GetPermalink returns a pointer to the value of Permalink from MobileApplicationEntityOutline 12475 func (x MobileApplicationEntityOutline) GetPermalink() string { 12476 return x.Permalink 12477 } 12478 12479 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from MobileApplicationEntityOutline 12480 func (x MobileApplicationEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 12481 return x.RecommendedServiceLevel 12482 } 12483 12484 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from MobileApplicationEntityOutline 12485 func (x MobileApplicationEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 12486 return x.RelatedDashboards 12487 } 12488 12489 // GetReporting returns a pointer to the value of Reporting from MobileApplicationEntityOutline 12490 func (x MobileApplicationEntityOutline) GetReporting() bool { 12491 return x.Reporting 12492 } 12493 12494 // GetServiceLevel returns a pointer to the value of ServiceLevel from MobileApplicationEntityOutline 12495 func (x MobileApplicationEntityOutline) GetServiceLevel() ServiceLevelDefinition { 12496 return x.ServiceLevel 12497 } 12498 12499 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from MobileApplicationEntityOutline 12500 func (x MobileApplicationEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 12501 return x.SummaryMetrics 12502 } 12503 12504 // GetTags returns a pointer to the value of Tags from MobileApplicationEntityOutline 12505 func (x MobileApplicationEntityOutline) GetTags() []EntityTag { 12506 return x.Tags 12507 } 12508 12509 // GetType returns a pointer to the value of Type from MobileApplicationEntityOutline 12510 func (x MobileApplicationEntityOutline) GetType() string { 12511 return x.Type 12512 } 12513 12514 // GetUiTemplates returns a pointer to the value of UiTemplates from MobileApplicationEntityOutline 12515 func (x MobileApplicationEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 12516 return x.UiTemplates 12517 } 12518 12519 func (x *MobileApplicationEntityOutline) ImplementsAlertableEntityOutline() {} 12520 12521 func (x *MobileApplicationEntityOutline) ImplementsEntityOutline() {} 12522 12523 // NRQLQueryOptions - Additional options for NRQL queries. 12524 type NRQLQueryOptions struct { 12525 // Limit the NRQL query to return results from the chosen Event Namespaces. 12526 // 12527 // You must supply at least 1 valid event namespace when using this option. 12528 // Invalid event namespaces will be filtered out. 12529 // 12530 // If omitted, the default list will be `["Default"]` 12531 // 12532 // For more details about Event Namespaces, visit our [docs](https://docs.newrelic.com/docs/accounts/new-relic-account-usage/getting-started-usage/insights-subscription-usage/#namespace). 12533 EventNamespaces []string `json:"eventNamespaces"` 12534 } 12535 12536 type NerdStorageCollectionMember struct { 12537 // The NerdStorage document. 12538 Document NerdStorageDocument `json:"document,omitempty"` 12539 // The documentId. 12540 ID string `json:"id,omitempty"` 12541 } 12542 12543 type NerdStorageEntityScope struct { 12544 Collection []NerdStorageCollectionMember `json:"collection,omitempty"` 12545 Document NerdStorageDocument `json:"document,omitempty"` 12546 } 12547 12548 type NerdStoreCollectionMember struct { 12549 Document NerdStoreDocument `json:"document,omitempty"` 12550 ID string `json:"id,omitempty"` 12551 } 12552 12553 type ParentAccountInfo struct { 12554 CreatedAt int `json:"createdAt,omitempty"` 12555 ID int `json:"id,omitempty"` 12556 Name string `json:"name,omitempty"` 12557 Region Region `json:"region,omitempty"` 12558 Status AccountStatus `json:"status,omitempty"` 12559 } 12560 12561 type Region struct { 12562 Code string `json:"code,omitempty"` 12563 ID int `json:"id,omitempty"` 12564 Name string `json:"name,omitempty"` 12565 } 12566 12567 // RelatedDashboardsRelatedDashboardResult - Related dashboards found for an entity GUID 12568 type RelatedDashboardsRelatedDashboardResult struct { 12569 // GUIDs of dashboards related to the given entity; empty if none found 12570 DashboardGUIDs []common.EntityGUID `json:"dashboardGuids"` 12571 // EntityOutlines of dashboards related to the given entity; empty if none found 12572 Dashboards []EntityOutlineInterface `json:"dashboards"` 12573 } 12574 12575 // special 12576 func (x *RelatedDashboardsRelatedDashboardResult) UnmarshalJSON(b []byte) error { 12577 var objMap map[string]*json.RawMessage 12578 err := json.Unmarshal(b, &objMap) 12579 if err != nil { 12580 return err 12581 } 12582 12583 for k, v := range objMap { 12584 if v == nil { 12585 continue 12586 } 12587 12588 switch k { 12589 case "dashboardGuids": 12590 err = json.Unmarshal(*v, &x.DashboardGUIDs) 12591 if err != nil { 12592 return err 12593 } 12594 case "dashboards": 12595 if v == nil { 12596 continue 12597 } 12598 var rawMessageDashboards []*json.RawMessage 12599 err = json.Unmarshal(*v, &rawMessageDashboards) 12600 if err != nil { 12601 return err 12602 } 12603 12604 for _, m := range rawMessageDashboards { 12605 xxx, err := UnmarshalEntityOutlineInterface(*m) 12606 if err != nil { 12607 return err 12608 } 12609 12610 if xxx != nil { 12611 x.Dashboards = append(x.Dashboards, *xxx) 12612 } 12613 } 12614 } 12615 } 12616 12617 return nil 12618 } 12619 12620 // RelatedExternalsEntityEdge - A connection between two entities in the entity connections result graph. 12621 type RelatedExternalsEntityEdge struct { 12622 // Performance data for an edge in the entity connections result graph. 12623 Performance []RelatedExternalsPerformance `json:"performance"` 12624 // The entity of the source (upstream) vertex in the entity connections result graph. 12625 SourceEntity EntityOutlineInterface `json:"sourceEntity"` 12626 // The entity guid of the source (upstream) vertex in the entity connections result graph. 12627 SourceEntityGUID common.EntityGUID `json:"sourceEntityGuid"` 12628 // The ID of the source (upstream) vertex in the entity connections result graph. 12629 SourceId string `json:"sourceId"` 12630 // The entity of the target (downstream) vertex in the entity result graph. 12631 TargetEntity EntityOutlineInterface `json:"targetEntity"` 12632 // The entity guid of the target (downstream) vertex in the entity connections result graph. 12633 TargetEntityGUID common.EntityGUID `json:"targetEntityGuid"` 12634 // The ID of the target (downstream) vertex in the entity transaction connections result graph. 12635 TargetId string `json:"targetId"` 12636 } 12637 12638 // special 12639 func (x *RelatedExternalsEntityEdge) UnmarshalJSON(b []byte) error { 12640 var objMap map[string]*json.RawMessage 12641 err := json.Unmarshal(b, &objMap) 12642 if err != nil { 12643 return err 12644 } 12645 12646 for k, v := range objMap { 12647 if v == nil { 12648 continue 12649 } 12650 12651 switch k { 12652 case "performance": 12653 err = json.Unmarshal(*v, &x.Performance) 12654 if err != nil { 12655 return err 12656 } 12657 case "sourceEntity": 12658 if v == nil { 12659 continue 12660 } 12661 xxx, err := UnmarshalEntityOutlineInterface(*v) 12662 if err != nil { 12663 return err 12664 } 12665 12666 if xxx != nil { 12667 x.SourceEntity = *xxx 12668 } 12669 case "sourceEntityGuid": 12670 err = json.Unmarshal(*v, &x.SourceEntityGUID) 12671 if err != nil { 12672 return err 12673 } 12674 case "sourceId": 12675 err = json.Unmarshal(*v, &x.SourceId) 12676 if err != nil { 12677 return err 12678 } 12679 case "targetEntity": 12680 if v == nil { 12681 continue 12682 } 12683 xxx, err := UnmarshalEntityOutlineInterface(*v) 12684 if err != nil { 12685 return err 12686 } 12687 12688 if xxx != nil { 12689 x.TargetEntity = *xxx 12690 } 12691 case "targetEntityGuid": 12692 err = json.Unmarshal(*v, &x.TargetEntityGUID) 12693 if err != nil { 12694 return err 12695 } 12696 case "targetId": 12697 err = json.Unmarshal(*v, &x.TargetId) 12698 if err != nil { 12699 return err 12700 } 12701 } 12702 } 12703 12704 return nil 12705 } 12706 12707 // RelatedExternalsEntityResult - Lists upstream and downstream dependencies for the specified entity, including performance data during the given time window. 12708 type RelatedExternalsEntityResult struct { 12709 // Dependencies between entities in the entity connections result graph. 12710 Edges []RelatedExternalsEntityEdge `json:"edges"` 12711 // Entities in the entity connections result graph. 12712 Vertices []RelatedExternalsEntityVertex `json:"vertices"` 12713 } 12714 12715 // RelatedExternalsEntityVertex - An entity in the entity connections result graph. 12716 type RelatedExternalsEntityVertex struct { 12717 // The direction of the vertex 12718 Direction RelatedExternalsDirection `json:"direction"` 12719 // The entity for a vertex in the entity connections result graph. 12720 Entity EntityOutlineInterface `json:"entity"` 12721 // The entity guid for a vertex in the entity connections result graph. 12722 EntityGUID common.EntityGUID `json:"entityGuid"` 12723 // The ID for a vertex in the entity transaction connections result graph. 12724 ID string `json:"id"` 12725 // Performance data for a vertex in the entity connections result graph. 12726 Performance []RelatedExternalsPerformance `json:"performance"` 12727 } 12728 12729 // special 12730 func (x *RelatedExternalsEntityVertex) UnmarshalJSON(b []byte) error { 12731 var objMap map[string]*json.RawMessage 12732 err := json.Unmarshal(b, &objMap) 12733 if err != nil { 12734 return err 12735 } 12736 12737 for k, v := range objMap { 12738 if v == nil { 12739 continue 12740 } 12741 12742 switch k { 12743 case "direction": 12744 err = json.Unmarshal(*v, &x.Direction) 12745 if err != nil { 12746 return err 12747 } 12748 case "entity": 12749 if v == nil { 12750 continue 12751 } 12752 xxx, err := UnmarshalEntityOutlineInterface(*v) 12753 if err != nil { 12754 return err 12755 } 12756 12757 if xxx != nil { 12758 x.Entity = *xxx 12759 } 12760 case "entityGuid": 12761 err = json.Unmarshal(*v, &x.EntityGUID) 12762 if err != nil { 12763 return err 12764 } 12765 case "id": 12766 err = json.Unmarshal(*v, &x.ID) 12767 if err != nil { 12768 return err 12769 } 12770 case "performance": 12771 err = json.Unmarshal(*v, &x.Performance) 12772 if err != nil { 12773 return err 12774 } 12775 } 12776 } 12777 12778 return nil 12779 } 12780 12781 // RelatedExternalsPerformance - Entity connection performance values 12782 type RelatedExternalsPerformance struct { 12783 // The average value for the signal over the queried time window. 12784 AverageValue float64 `json:"averageValue"` 12785 // The name of the performance signal. 12786 Name string `json:"name"` 12787 // Time series performance data for the performance signal. 12788 Timeseries []RelatedExternalsPerformanceValue `json:"timeseries"` 12789 // The unit for the performance signal. 12790 Unit string `json:"unit"` 12791 } 12792 12793 // RelatedExternalsPerformanceValue - A time series value for an entity connection performance signal. 12794 type RelatedExternalsPerformanceValue struct { 12795 // The average value of the signal at the given time. 12796 AverageValue float64 `json:"averageValue"` 12797 // The start time in epoch milliseconds for this value. 12798 Timestamp *nrtime.EpochMilliseconds `json:"timestamp"` 12799 } 12800 12801 // RelatedExternalsSearch - Specifies an entity, either upstream or downstream of the queried entity, to filter results to. 12802 type RelatedExternalsSearch struct { 12803 // Specify the direction of the connected entity: (UPSTREAM or DOWNSTREAM). 12804 Direction RelatedExternalsDirection `json:"direction"` 12805 // Filter to a specific connected entity. 12806 EntityGUID common.EntityGUID `json:"entityGuid"` 12807 } 12808 12809 // RelatedExternalsTransactionEdge - A connection between two entity transactions on two entities in the entity transaction connections result graph. 12810 type RelatedExternalsTransactionEdge struct { 12811 // Performance data for an edge in the entity transaction connections result graph. 12812 Performance []RelatedExternalsPerformance `json:"performance"` 12813 // The ID of the source (upstream) vertex in the entity transaction connections result graph. 12814 SourceId string `json:"sourceId"` 12815 // The ID of the target (downstream) vertex in the entity transaction connections result graph. 12816 TargetId string `json:"targetId"` 12817 } 12818 12819 // RelatedExternalsTransactionResult - Lists transaction dependencies between the two specified entities, including performance data during the given time window. 12820 type RelatedExternalsTransactionResult struct { 12821 // Dependencies between transactions on two specified entities. 12822 Edges []RelatedExternalsTransactionEdge `json:"edges"` 12823 // Transactions for each entity in the entity transaction connections result graph. 12824 Vertices []RelatedExternalsTransactionVertex `json:"vertices"` 12825 } 12826 12827 // RelatedExternalsTransactionVertex - An entity transaction in the entity transaction connections result graph. 12828 type RelatedExternalsTransactionVertex struct { 12829 // The direction of the vertex 12830 Direction RelatedExternalsDirection `json:"direction"` 12831 // The entity for a vertex in the entity transaction connections result graph. 12832 Entity EntityOutlineInterface `json:"entity"` 12833 // The entity guid for a vertex in the entity transaction connections result graph. 12834 EntityGUID common.EntityGUID `json:"entityGuid"` 12835 // The ID for a vertex in the entity transaction connections result graph. 12836 ID string `json:"id"` 12837 // Performance data for a vertex in the entity transaction connections result graph. 12838 Performance []RelatedExternalsPerformance `json:"performance"` 12839 // The transaction for a vertex in the entity transaction connections result graph. 12840 TransactionName string `json:"transactionName,omitempty"` 12841 } 12842 12843 // special 12844 func (x *RelatedExternalsTransactionVertex) UnmarshalJSON(b []byte) error { 12845 var objMap map[string]*json.RawMessage 12846 err := json.Unmarshal(b, &objMap) 12847 if err != nil { 12848 return err 12849 } 12850 12851 for k, v := range objMap { 12852 if v == nil { 12853 continue 12854 } 12855 12856 switch k { 12857 case "direction": 12858 err = json.Unmarshal(*v, &x.Direction) 12859 if err != nil { 12860 return err 12861 } 12862 case "entity": 12863 if v == nil { 12864 continue 12865 } 12866 xxx, err := UnmarshalEntityOutlineInterface(*v) 12867 if err != nil { 12868 return err 12869 } 12870 12871 if xxx != nil { 12872 x.Entity = *xxx 12873 } 12874 case "entityGuid": 12875 err = json.Unmarshal(*v, &x.EntityGUID) 12876 if err != nil { 12877 return err 12878 } 12879 case "id": 12880 err = json.Unmarshal(*v, &x.ID) 12881 if err != nil { 12882 return err 12883 } 12884 case "performance": 12885 err = json.Unmarshal(*v, &x.Performance) 12886 if err != nil { 12887 return err 12888 } 12889 case "transactionName": 12890 err = json.Unmarshal(*v, &x.TransactionName) 12891 if err != nil { 12892 return err 12893 } 12894 } 12895 } 12896 12897 return nil 12898 } 12899 12900 // SecureCredentialEntity - A secure credential entity. 12901 type SecureCredentialEntity struct { 12902 Account accounts.AccountOutline `json:"account,omitempty"` 12903 // The New Relic account ID associated with this entity. 12904 AccountID int `json:"accountId,omitempty"` 12905 // The current alerting severity of the entity. 12906 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 12907 // The alert status of the entity. 12908 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 12909 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 12910 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 12911 // The list of dashboard templates available for this entity. 12912 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 12913 // The description of the entity. 12914 Description string `json:"description,omitempty"` 12915 // The entity's domain 12916 Domain string `json:"domain,omitempty"` 12917 // A value representing the combination of the entity's domain and type. 12918 EntityType EntityType `json:"entityType,omitempty"` 12919 // A unique entity identifier. 12920 GUID common.EntityGUID `json:"guid,omitempty"` 12921 // The list of golden metrics for a specific entity 12922 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 12923 // Existing API - to be replaced with V2 implementation. 12924 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 12925 // The stored golden signal(s) for the given entity. 12926 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 12927 // The list of golden tags for a specific entityType. 12928 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 12929 // The time the entity was indexed. 12930 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 12931 // Make an `Entity` scoped query to NRDB with a NRQL string. 12932 // 12933 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 12934 // 12935 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 12936 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 12937 // The name of this entity. 12938 Name string `json:"name,omitempty"` 12939 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 12940 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 12941 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 12942 // The url to the entity. 12943 Permalink string `json:"permalink,omitempty"` 12944 // Recent violations on the entity. 12945 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 12946 // The recommended service levels for the entity. 12947 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 12948 // Related dashboards results 12949 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 12950 // Related entities result with optional filtering. 12951 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 12952 // A list of the entities' relationships. 12953 // 12954 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 12955 Relationships []EntityRelationship `json:"relationships,omitempty"` 12956 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 12957 Reporting bool `json:"reporting,omitempty"` 12958 // The domain-specific identifier for the entity. 12959 SecureCredentialId string `json:"secureCredentialId,omitempty"` 12960 // Summary statistics for the Synthetic Monitor Secure Credential. 12961 SecureCredentialSummary SecureCredentialSummaryData `json:"secureCredentialSummary,omitempty"` 12962 // The service level defined for the entity. 12963 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 12964 // The list of summary metrics. 12965 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 12966 // The tags applied to the entity. 12967 // 12968 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 12969 Tags []EntityTag `json:"tags,omitempty"` 12970 // The tags applied to the entity with their metadata. 12971 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 12972 // Look up Distributed Tracing summary data for the selected `EntityGuid` 12973 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 12974 // The entity's type 12975 Type string `json:"type,omitempty"` 12976 // List of templates availables for this entity. 12977 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 12978 // The time at which the entity was last updated. 12979 UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` 12980 } 12981 12982 // GetAccount returns a pointer to the value of Account from SecureCredentialEntity 12983 func (x SecureCredentialEntity) GetAccount() accounts.AccountOutline { 12984 return x.Account 12985 } 12986 12987 // GetAccountID returns a pointer to the value of AccountID from SecureCredentialEntity 12988 func (x SecureCredentialEntity) GetAccountID() int { 12989 return x.AccountID 12990 } 12991 12992 // GetAlertSeverity returns a pointer to the value of AlertSeverity from SecureCredentialEntity 12993 func (x SecureCredentialEntity) GetAlertSeverity() EntityAlertSeverity { 12994 return x.AlertSeverity 12995 } 12996 12997 // GetAlertStatus returns a pointer to the value of AlertStatus from SecureCredentialEntity 12998 func (x SecureCredentialEntity) GetAlertStatus() EntityAlertStatus { 12999 return x.AlertStatus 13000 } 13001 13002 // GetAlertViolations returns a pointer to the value of AlertViolations from SecureCredentialEntity 13003 func (x SecureCredentialEntity) GetAlertViolations() []EntityAlertViolation { 13004 return x.AlertViolations 13005 } 13006 13007 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from SecureCredentialEntity 13008 func (x SecureCredentialEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 13009 return x.DashboardTemplates 13010 } 13011 13012 // GetDescription returns a pointer to the value of Description from SecureCredentialEntity 13013 func (x SecureCredentialEntity) GetDescription() string { 13014 return x.Description 13015 } 13016 13017 // GetDomain returns a pointer to the value of Domain from SecureCredentialEntity 13018 func (x SecureCredentialEntity) GetDomain() string { 13019 return x.Domain 13020 } 13021 13022 // GetEntityType returns a pointer to the value of EntityType from SecureCredentialEntity 13023 func (x SecureCredentialEntity) GetEntityType() EntityType { 13024 return x.EntityType 13025 } 13026 13027 // GetGUID returns a pointer to the value of GUID from SecureCredentialEntity 13028 func (x SecureCredentialEntity) GetGUID() common.EntityGUID { 13029 return x.GUID 13030 } 13031 13032 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from SecureCredentialEntity 13033 func (x SecureCredentialEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 13034 return x.GoldenMetrics 13035 } 13036 13037 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from SecureCredentialEntity 13038 func (x SecureCredentialEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 13039 return x.GoldenSignalValues 13040 } 13041 13042 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from SecureCredentialEntity 13043 func (x SecureCredentialEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 13044 return x.GoldenSignalValuesV2 13045 } 13046 13047 // GetGoldenTags returns a pointer to the value of GoldenTags from SecureCredentialEntity 13048 func (x SecureCredentialEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 13049 return x.GoldenTags 13050 } 13051 13052 // GetIndexedAt returns a pointer to the value of IndexedAt from SecureCredentialEntity 13053 func (x SecureCredentialEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 13054 return x.IndexedAt 13055 } 13056 13057 // GetNRDBQuery returns a pointer to the value of NRDBQuery from SecureCredentialEntity 13058 func (x SecureCredentialEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 13059 return x.NRDBQuery 13060 } 13061 13062 // GetName returns a pointer to the value of Name from SecureCredentialEntity 13063 func (x SecureCredentialEntity) GetName() string { 13064 return x.Name 13065 } 13066 13067 // GetNerdStorage returns a pointer to the value of NerdStorage from SecureCredentialEntity 13068 func (x SecureCredentialEntity) GetNerdStorage() NerdStorageEntityScope { 13069 return x.NerdStorage 13070 } 13071 13072 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from SecureCredentialEntity 13073 func (x SecureCredentialEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 13074 return x.NerdStoreCollection 13075 } 13076 13077 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from SecureCredentialEntity 13078 func (x SecureCredentialEntity) GetNerdStoreDocument() NerdStoreDocument { 13079 return x.NerdStoreDocument 13080 } 13081 13082 // GetPermalink returns a pointer to the value of Permalink from SecureCredentialEntity 13083 func (x SecureCredentialEntity) GetPermalink() string { 13084 return x.Permalink 13085 } 13086 13087 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from SecureCredentialEntity 13088 func (x SecureCredentialEntity) GetRecentAlertViolations() []EntityAlertViolation { 13089 return x.RecentAlertViolations 13090 } 13091 13092 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from SecureCredentialEntity 13093 func (x SecureCredentialEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 13094 return x.RecommendedServiceLevel 13095 } 13096 13097 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from SecureCredentialEntity 13098 func (x SecureCredentialEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 13099 return x.RelatedDashboards 13100 } 13101 13102 // GetRelatedEntities returns a pointer to the value of RelatedEntities from SecureCredentialEntity 13103 func (x SecureCredentialEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 13104 return x.RelatedEntities 13105 } 13106 13107 // GetRelationships returns a pointer to the value of Relationships from SecureCredentialEntity 13108 func (x SecureCredentialEntity) GetRelationships() []EntityRelationship { 13109 return x.Relationships 13110 } 13111 13112 // GetReporting returns a pointer to the value of Reporting from SecureCredentialEntity 13113 func (x SecureCredentialEntity) GetReporting() bool { 13114 return x.Reporting 13115 } 13116 13117 // GetSecureCredentialId returns a pointer to the value of SecureCredentialId from SecureCredentialEntity 13118 func (x SecureCredentialEntity) GetSecureCredentialId() string { 13119 return x.SecureCredentialId 13120 } 13121 13122 // GetSecureCredentialSummary returns a pointer to the value of SecureCredentialSummary from SecureCredentialEntity 13123 func (x SecureCredentialEntity) GetSecureCredentialSummary() SecureCredentialSummaryData { 13124 return x.SecureCredentialSummary 13125 } 13126 13127 // GetServiceLevel returns a pointer to the value of ServiceLevel from SecureCredentialEntity 13128 func (x SecureCredentialEntity) GetServiceLevel() ServiceLevelDefinition { 13129 return x.ServiceLevel 13130 } 13131 13132 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from SecureCredentialEntity 13133 func (x SecureCredentialEntity) GetSummaryMetrics() []EntitySummaryMetric { 13134 return x.SummaryMetrics 13135 } 13136 13137 // GetTags returns a pointer to the value of Tags from SecureCredentialEntity 13138 func (x SecureCredentialEntity) GetTags() []EntityTag { 13139 return x.Tags 13140 } 13141 13142 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from SecureCredentialEntity 13143 func (x SecureCredentialEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 13144 return x.TagsWithMetadata 13145 } 13146 13147 // GetTracingSummary returns a pointer to the value of TracingSummary from SecureCredentialEntity 13148 func (x SecureCredentialEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 13149 return x.TracingSummary 13150 } 13151 13152 // GetType returns a pointer to the value of Type from SecureCredentialEntity 13153 func (x SecureCredentialEntity) GetType() string { 13154 return x.Type 13155 } 13156 13157 // GetUiTemplates returns a pointer to the value of UiTemplates from SecureCredentialEntity 13158 func (x SecureCredentialEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 13159 return x.UiTemplates 13160 } 13161 13162 // GetUpdatedAt returns a pointer to the value of UpdatedAt from SecureCredentialEntity 13163 func (x SecureCredentialEntity) GetUpdatedAt() *nrtime.EpochMilliseconds { 13164 return x.UpdatedAt 13165 } 13166 13167 func (x *SecureCredentialEntity) ImplementsAlertableEntity() {} 13168 13169 func (x *SecureCredentialEntity) ImplementsEntity() {} 13170 13171 // SecureCredentialEntityOutline - A secure credential entity outline. 13172 type SecureCredentialEntityOutline struct { 13173 Account accounts.AccountOutline `json:"account,omitempty"` 13174 // The New Relic account ID associated with this entity. 13175 AccountID int `json:"accountId,omitempty"` 13176 // The current alerting severity of the entity. 13177 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 13178 // The alert status of the entity. 13179 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 13180 // The list of dashboard templates available for this entity. 13181 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 13182 // The description of the entity. 13183 Description string `json:"description,omitempty"` 13184 // The entity's domain 13185 Domain string `json:"domain,omitempty"` 13186 // A value representing the combination of the entity's domain and type. 13187 EntityType EntityType `json:"entityType,omitempty"` 13188 // A unique entity identifier. 13189 GUID common.EntityGUID `json:"guid,omitempty"` 13190 // The list of golden metrics for a specific entity 13191 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 13192 // Existing API - to be replaced with V2 implementation. 13193 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 13194 // The stored golden signal(s) for the given entity. 13195 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 13196 // The list of golden tags for a specific entityType. 13197 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 13198 // The time the entity was indexed. 13199 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 13200 // The name of this entity. 13201 Name string `json:"name,omitempty"` 13202 // The url to the entity. 13203 Permalink string `json:"permalink,omitempty"` 13204 // The recommended service levels for the entity. 13205 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 13206 // Related dashboards results 13207 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 13208 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 13209 Reporting bool `json:"reporting,omitempty"` 13210 // The domain-specific identifier for the entity. 13211 SecureCredentialId string `json:"secureCredentialId,omitempty"` 13212 // Summary statistics for the Synthetic Monitor Secure Credential. 13213 SecureCredentialSummary SecureCredentialSummaryData `json:"secureCredentialSummary,omitempty"` 13214 // The service level defined for the entity. 13215 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 13216 // The list of summary metrics. 13217 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 13218 // The tags applied to the entity. 13219 // 13220 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 13221 Tags []EntityTag `json:"tags,omitempty"` 13222 // The entity's type 13223 Type string `json:"type,omitempty"` 13224 // List of templates availables for this entity. 13225 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 13226 // The time at which the entity was last updated. 13227 UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` 13228 } 13229 13230 // GetAccount returns a pointer to the value of Account from SecureCredentialEntityOutline 13231 func (x SecureCredentialEntityOutline) GetAccount() accounts.AccountOutline { 13232 return x.Account 13233 } 13234 13235 // GetAccountID returns a pointer to the value of AccountID from SecureCredentialEntityOutline 13236 func (x SecureCredentialEntityOutline) GetAccountID() int { 13237 return x.AccountID 13238 } 13239 13240 // GetAlertSeverity returns a pointer to the value of AlertSeverity from SecureCredentialEntityOutline 13241 func (x SecureCredentialEntityOutline) GetAlertSeverity() EntityAlertSeverity { 13242 return x.AlertSeverity 13243 } 13244 13245 // GetAlertStatus returns a pointer to the value of AlertStatus from SecureCredentialEntityOutline 13246 func (x SecureCredentialEntityOutline) GetAlertStatus() EntityAlertStatus { 13247 return x.AlertStatus 13248 } 13249 13250 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from SecureCredentialEntityOutline 13251 func (x SecureCredentialEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 13252 return x.DashboardTemplates 13253 } 13254 13255 // GetDescription returns a pointer to the value of Description from SecureCredentialEntityOutline 13256 func (x SecureCredentialEntityOutline) GetDescription() string { 13257 return x.Description 13258 } 13259 13260 // GetDomain returns a pointer to the value of Domain from SecureCredentialEntityOutline 13261 func (x SecureCredentialEntityOutline) GetDomain() string { 13262 return x.Domain 13263 } 13264 13265 // GetEntityType returns a pointer to the value of EntityType from SecureCredentialEntityOutline 13266 func (x SecureCredentialEntityOutline) GetEntityType() EntityType { 13267 return x.EntityType 13268 } 13269 13270 // GetGUID returns a pointer to the value of GUID from SecureCredentialEntityOutline 13271 func (x SecureCredentialEntityOutline) GetGUID() common.EntityGUID { 13272 return x.GUID 13273 } 13274 13275 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from SecureCredentialEntityOutline 13276 func (x SecureCredentialEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 13277 return x.GoldenMetrics 13278 } 13279 13280 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from SecureCredentialEntityOutline 13281 func (x SecureCredentialEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 13282 return x.GoldenSignalValues 13283 } 13284 13285 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from SecureCredentialEntityOutline 13286 func (x SecureCredentialEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 13287 return x.GoldenSignalValuesV2 13288 } 13289 13290 // GetGoldenTags returns a pointer to the value of GoldenTags from SecureCredentialEntityOutline 13291 func (x SecureCredentialEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 13292 return x.GoldenTags 13293 } 13294 13295 // GetIndexedAt returns a pointer to the value of IndexedAt from SecureCredentialEntityOutline 13296 func (x SecureCredentialEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 13297 return x.IndexedAt 13298 } 13299 13300 // GetName returns a pointer to the value of Name from SecureCredentialEntityOutline 13301 func (x SecureCredentialEntityOutline) GetName() string { 13302 return x.Name 13303 } 13304 13305 // GetPermalink returns a pointer to the value of Permalink from SecureCredentialEntityOutline 13306 func (x SecureCredentialEntityOutline) GetPermalink() string { 13307 return x.Permalink 13308 } 13309 13310 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from SecureCredentialEntityOutline 13311 func (x SecureCredentialEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 13312 return x.RecommendedServiceLevel 13313 } 13314 13315 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from SecureCredentialEntityOutline 13316 func (x SecureCredentialEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 13317 return x.RelatedDashboards 13318 } 13319 13320 // GetReporting returns a pointer to the value of Reporting from SecureCredentialEntityOutline 13321 func (x SecureCredentialEntityOutline) GetReporting() bool { 13322 return x.Reporting 13323 } 13324 13325 // GetSecureCredentialId returns a pointer to the value of SecureCredentialId from SecureCredentialEntityOutline 13326 func (x SecureCredentialEntityOutline) GetSecureCredentialId() string { 13327 return x.SecureCredentialId 13328 } 13329 13330 // GetSecureCredentialSummary returns a pointer to the value of SecureCredentialSummary from SecureCredentialEntityOutline 13331 func (x SecureCredentialEntityOutline) GetSecureCredentialSummary() SecureCredentialSummaryData { 13332 return x.SecureCredentialSummary 13333 } 13334 13335 // GetServiceLevel returns a pointer to the value of ServiceLevel from SecureCredentialEntityOutline 13336 func (x SecureCredentialEntityOutline) GetServiceLevel() ServiceLevelDefinition { 13337 return x.ServiceLevel 13338 } 13339 13340 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from SecureCredentialEntityOutline 13341 func (x SecureCredentialEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 13342 return x.SummaryMetrics 13343 } 13344 13345 // GetTags returns a pointer to the value of Tags from SecureCredentialEntityOutline 13346 func (x SecureCredentialEntityOutline) GetTags() []EntityTag { 13347 return x.Tags 13348 } 13349 13350 // GetType returns a pointer to the value of Type from SecureCredentialEntityOutline 13351 func (x SecureCredentialEntityOutline) GetType() string { 13352 return x.Type 13353 } 13354 13355 // GetUiTemplates returns a pointer to the value of UiTemplates from SecureCredentialEntityOutline 13356 func (x SecureCredentialEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 13357 return x.UiTemplates 13358 } 13359 13360 // GetUpdatedAt returns a pointer to the value of UpdatedAt from SecureCredentialEntityOutline 13361 func (x SecureCredentialEntityOutline) GetUpdatedAt() *nrtime.EpochMilliseconds { 13362 return x.UpdatedAt 13363 } 13364 13365 func (x *SecureCredentialEntityOutline) ImplementsAlertableEntityOutline() {} 13366 13367 func (x *SecureCredentialEntityOutline) ImplementsEntityOutline() {} 13368 13369 // SecureCredentialSummaryData - Summary statistics for the Synthetic Monitor Secure Credential. 13370 type SecureCredentialSummaryData struct { 13371 // The number of monitors that contain this secure credential and failed their last check. 13372 FailingMonitorCount int `json:"failingMonitorCount,omitempty"` 13373 // The number of monitors that contain this secure credential. 13374 MonitorCount int `json:"monitorCount,omitempty"` 13375 } 13376 13377 // ServiceEntity - A service entity. 13378 type ServiceEntity struct { 13379 Account accounts.AccountOutline `json:"account,omitempty"` 13380 // The New Relic account ID associated with this entity. 13381 AccountID int `json:"accountId,omitempty"` 13382 // The current alerting severity of the entity. 13383 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 13384 // The alert status of the entity. 13385 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 13386 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 13387 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 13388 // The list of dashboard templates available for this entity. 13389 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 13390 // The entity's domain 13391 Domain string `json:"domain,omitempty"` 13392 // A value representing the combination of the entity's domain and type. 13393 EntityType EntityType `json:"entityType,omitempty"` 13394 // A unique entity identifier. 13395 GUID common.EntityGUID `json:"guid,omitempty"` 13396 // The list of golden metrics for a specific entity 13397 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 13398 // Existing API - to be replaced with V2 implementation. 13399 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 13400 // The stored golden signal(s) for the given entity. 13401 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 13402 // The list of golden tags for a specific entityType. 13403 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 13404 // The time the entity was indexed. 13405 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 13406 // Make an `Entity` scoped query to NRDB with a NRQL string. 13407 // 13408 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 13409 // 13410 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 13411 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 13412 // The name of this entity. 13413 Name string `json:"name,omitempty"` 13414 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 13415 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 13416 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 13417 // The url to the entity. 13418 Permalink string `json:"permalink,omitempty"` 13419 // Recent violations on the entity. 13420 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 13421 // The recommended service levels for the entity. 13422 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 13423 // Related dashboards results 13424 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 13425 // Related entities result with optional filtering. 13426 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 13427 // A list of the entities' relationships. 13428 // 13429 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 13430 Relationships []EntityRelationship `json:"relationships,omitempty"` 13431 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 13432 Reporting bool `json:"reporting,omitempty"` 13433 // The service level defined for the entity. 13434 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 13435 // The list of summary metrics. 13436 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 13437 // The tags applied to the entity. 13438 // 13439 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 13440 Tags []EntityTag `json:"tags,omitempty"` 13441 // The tags applied to the entity with their metadata. 13442 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 13443 // Look up Distributed Tracing summary data for the selected `EntityGuid` 13444 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 13445 // The entity's type 13446 Type string `json:"type,omitempty"` 13447 // List of templates availables for this entity. 13448 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 13449 } 13450 13451 // GetAccount returns a pointer to the value of Account from ServiceEntity 13452 func (x ServiceEntity) GetAccount() accounts.AccountOutline { 13453 return x.Account 13454 } 13455 13456 // GetAccountID returns a pointer to the value of AccountID from ServiceEntity 13457 func (x ServiceEntity) GetAccountID() int { 13458 return x.AccountID 13459 } 13460 13461 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ServiceEntity 13462 func (x ServiceEntity) GetAlertSeverity() EntityAlertSeverity { 13463 return x.AlertSeverity 13464 } 13465 13466 // GetAlertStatus returns a pointer to the value of AlertStatus from ServiceEntity 13467 func (x ServiceEntity) GetAlertStatus() EntityAlertStatus { 13468 return x.AlertStatus 13469 } 13470 13471 // GetAlertViolations returns a pointer to the value of AlertViolations from ServiceEntity 13472 func (x ServiceEntity) GetAlertViolations() []EntityAlertViolation { 13473 return x.AlertViolations 13474 } 13475 13476 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ServiceEntity 13477 func (x ServiceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 13478 return x.DashboardTemplates 13479 } 13480 13481 // GetDomain returns a pointer to the value of Domain from ServiceEntity 13482 func (x ServiceEntity) GetDomain() string { 13483 return x.Domain 13484 } 13485 13486 // GetEntityType returns a pointer to the value of EntityType from ServiceEntity 13487 func (x ServiceEntity) GetEntityType() EntityType { 13488 return x.EntityType 13489 } 13490 13491 // GetGUID returns a pointer to the value of GUID from ServiceEntity 13492 func (x ServiceEntity) GetGUID() common.EntityGUID { 13493 return x.GUID 13494 } 13495 13496 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ServiceEntity 13497 func (x ServiceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 13498 return x.GoldenMetrics 13499 } 13500 13501 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ServiceEntity 13502 func (x ServiceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 13503 return x.GoldenSignalValues 13504 } 13505 13506 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ServiceEntity 13507 func (x ServiceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 13508 return x.GoldenSignalValuesV2 13509 } 13510 13511 // GetGoldenTags returns a pointer to the value of GoldenTags from ServiceEntity 13512 func (x ServiceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 13513 return x.GoldenTags 13514 } 13515 13516 // GetIndexedAt returns a pointer to the value of IndexedAt from ServiceEntity 13517 func (x ServiceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 13518 return x.IndexedAt 13519 } 13520 13521 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ServiceEntity 13522 func (x ServiceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 13523 return x.NRDBQuery 13524 } 13525 13526 // GetName returns a pointer to the value of Name from ServiceEntity 13527 func (x ServiceEntity) GetName() string { 13528 return x.Name 13529 } 13530 13531 // GetNerdStorage returns a pointer to the value of NerdStorage from ServiceEntity 13532 func (x ServiceEntity) GetNerdStorage() NerdStorageEntityScope { 13533 return x.NerdStorage 13534 } 13535 13536 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ServiceEntity 13537 func (x ServiceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 13538 return x.NerdStoreCollection 13539 } 13540 13541 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ServiceEntity 13542 func (x ServiceEntity) GetNerdStoreDocument() NerdStoreDocument { 13543 return x.NerdStoreDocument 13544 } 13545 13546 // GetPermalink returns a pointer to the value of Permalink from ServiceEntity 13547 func (x ServiceEntity) GetPermalink() string { 13548 return x.Permalink 13549 } 13550 13551 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ServiceEntity 13552 func (x ServiceEntity) GetRecentAlertViolations() []EntityAlertViolation { 13553 return x.RecentAlertViolations 13554 } 13555 13556 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ServiceEntity 13557 func (x ServiceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 13558 return x.RecommendedServiceLevel 13559 } 13560 13561 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ServiceEntity 13562 func (x ServiceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 13563 return x.RelatedDashboards 13564 } 13565 13566 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ServiceEntity 13567 func (x ServiceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 13568 return x.RelatedEntities 13569 } 13570 13571 // GetRelationships returns a pointer to the value of Relationships from ServiceEntity 13572 func (x ServiceEntity) GetRelationships() []EntityRelationship { 13573 return x.Relationships 13574 } 13575 13576 // GetReporting returns a pointer to the value of Reporting from ServiceEntity 13577 func (x ServiceEntity) GetReporting() bool { 13578 return x.Reporting 13579 } 13580 13581 // GetServiceLevel returns a pointer to the value of ServiceLevel from ServiceEntity 13582 func (x ServiceEntity) GetServiceLevel() ServiceLevelDefinition { 13583 return x.ServiceLevel 13584 } 13585 13586 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ServiceEntity 13587 func (x ServiceEntity) GetSummaryMetrics() []EntitySummaryMetric { 13588 return x.SummaryMetrics 13589 } 13590 13591 // GetTags returns a pointer to the value of Tags from ServiceEntity 13592 func (x ServiceEntity) GetTags() []EntityTag { 13593 return x.Tags 13594 } 13595 13596 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ServiceEntity 13597 func (x ServiceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 13598 return x.TagsWithMetadata 13599 } 13600 13601 // GetTracingSummary returns a pointer to the value of TracingSummary from ServiceEntity 13602 func (x ServiceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 13603 return x.TracingSummary 13604 } 13605 13606 // GetType returns a pointer to the value of Type from ServiceEntity 13607 func (x ServiceEntity) GetType() string { 13608 return x.Type 13609 } 13610 13611 // GetUiTemplates returns a pointer to the value of UiTemplates from ServiceEntity 13612 func (x ServiceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 13613 return x.UiTemplates 13614 } 13615 13616 func (x *ServiceEntity) ImplementsAlertableEntity() {} 13617 13618 func (x *ServiceEntity) ImplementsEntity() {} 13619 13620 func (x *ServiceEntity) ImplementsServiceEntity() {} 13621 13622 // ServiceEntityOutline - A service entity outline. 13623 type ServiceEntityOutline struct { 13624 Account accounts.AccountOutline `json:"account,omitempty"` 13625 // The New Relic account ID associated with this entity. 13626 AccountID int `json:"accountId,omitempty"` 13627 // The current alerting severity of the entity. 13628 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 13629 // The alert status of the entity. 13630 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 13631 // The list of dashboard templates available for this entity. 13632 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 13633 // The entity's domain 13634 Domain string `json:"domain,omitempty"` 13635 // A value representing the combination of the entity's domain and type. 13636 EntityType EntityType `json:"entityType,omitempty"` 13637 // A unique entity identifier. 13638 GUID common.EntityGUID `json:"guid,omitempty"` 13639 // The list of golden metrics for a specific entity 13640 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 13641 // Existing API - to be replaced with V2 implementation. 13642 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 13643 // The stored golden signal(s) for the given entity. 13644 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 13645 // The list of golden tags for a specific entityType. 13646 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 13647 // The time the entity was indexed. 13648 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 13649 // The name of this entity. 13650 Name string `json:"name,omitempty"` 13651 // The url to the entity. 13652 Permalink string `json:"permalink,omitempty"` 13653 // The recommended service levels for the entity. 13654 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 13655 // Related dashboards results 13656 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 13657 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 13658 Reporting bool `json:"reporting,omitempty"` 13659 // The service level defined for the entity. 13660 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 13661 // The list of summary metrics. 13662 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 13663 // The tags applied to the entity. 13664 // 13665 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 13666 Tags []EntityTag `json:"tags,omitempty"` 13667 // The entity's type 13668 Type string `json:"type,omitempty"` 13669 // List of templates availables for this entity. 13670 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 13671 } 13672 13673 // GetAccount returns a pointer to the value of Account from ServiceEntityOutline 13674 func (x ServiceEntityOutline) GetAccount() accounts.AccountOutline { 13675 return x.Account 13676 } 13677 13678 // GetAccountID returns a pointer to the value of AccountID from ServiceEntityOutline 13679 func (x ServiceEntityOutline) GetAccountID() int { 13680 return x.AccountID 13681 } 13682 13683 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ServiceEntityOutline 13684 func (x ServiceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 13685 return x.AlertSeverity 13686 } 13687 13688 // GetAlertStatus returns a pointer to the value of AlertStatus from ServiceEntityOutline 13689 func (x ServiceEntityOutline) GetAlertStatus() EntityAlertStatus { 13690 return x.AlertStatus 13691 } 13692 13693 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ServiceEntityOutline 13694 func (x ServiceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 13695 return x.DashboardTemplates 13696 } 13697 13698 // GetDomain returns a pointer to the value of Domain from ServiceEntityOutline 13699 func (x ServiceEntityOutline) GetDomain() string { 13700 return x.Domain 13701 } 13702 13703 // GetEntityType returns a pointer to the value of EntityType from ServiceEntityOutline 13704 func (x ServiceEntityOutline) GetEntityType() EntityType { 13705 return x.EntityType 13706 } 13707 13708 // GetGUID returns a pointer to the value of GUID from ServiceEntityOutline 13709 func (x ServiceEntityOutline) GetGUID() common.EntityGUID { 13710 return x.GUID 13711 } 13712 13713 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ServiceEntityOutline 13714 func (x ServiceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 13715 return x.GoldenMetrics 13716 } 13717 13718 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ServiceEntityOutline 13719 func (x ServiceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 13720 return x.GoldenSignalValues 13721 } 13722 13723 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ServiceEntityOutline 13724 func (x ServiceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 13725 return x.GoldenSignalValuesV2 13726 } 13727 13728 // GetGoldenTags returns a pointer to the value of GoldenTags from ServiceEntityOutline 13729 func (x ServiceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 13730 return x.GoldenTags 13731 } 13732 13733 // GetIndexedAt returns a pointer to the value of IndexedAt from ServiceEntityOutline 13734 func (x ServiceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 13735 return x.IndexedAt 13736 } 13737 13738 // GetName returns a pointer to the value of Name from ServiceEntityOutline 13739 func (x ServiceEntityOutline) GetName() string { 13740 return x.Name 13741 } 13742 13743 // GetPermalink returns a pointer to the value of Permalink from ServiceEntityOutline 13744 func (x ServiceEntityOutline) GetPermalink() string { 13745 return x.Permalink 13746 } 13747 13748 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ServiceEntityOutline 13749 func (x ServiceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 13750 return x.RecommendedServiceLevel 13751 } 13752 13753 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ServiceEntityOutline 13754 func (x ServiceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 13755 return x.RelatedDashboards 13756 } 13757 13758 // GetReporting returns a pointer to the value of Reporting from ServiceEntityOutline 13759 func (x ServiceEntityOutline) GetReporting() bool { 13760 return x.Reporting 13761 } 13762 13763 // GetServiceLevel returns a pointer to the value of ServiceLevel from ServiceEntityOutline 13764 func (x ServiceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 13765 return x.ServiceLevel 13766 } 13767 13768 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ServiceEntityOutline 13769 func (x ServiceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 13770 return x.SummaryMetrics 13771 } 13772 13773 // GetTags returns a pointer to the value of Tags from ServiceEntityOutline 13774 func (x ServiceEntityOutline) GetTags() []EntityTag { 13775 return x.Tags 13776 } 13777 13778 // GetType returns a pointer to the value of Type from ServiceEntityOutline 13779 func (x ServiceEntityOutline) GetType() string { 13780 return x.Type 13781 } 13782 13783 // GetUiTemplates returns a pointer to the value of UiTemplates from ServiceEntityOutline 13784 func (x ServiceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 13785 return x.UiTemplates 13786 } 13787 13788 func (x *ServiceEntityOutline) ImplementsAlertableEntityOutline() {} 13789 13790 func (x *ServiceEntityOutline) ImplementsEntityOutline() {} 13791 13792 func (x *ServiceEntityOutline) ImplementsServiceEntityOutline() {} 13793 13794 // ServiceLevelComputedValueLimits - The limits of the computed value and the default value to fall back if it cannot be computed successfully 13795 type ServiceLevelComputedValueLimits struct { 13796 // A default value to fall back if the computation cannot be completed successfully. 13797 Fallback float64 `json:"fallback,omitempty"` 13798 // Computed values greater than the maximum limit must fall back to the maximum value. If null, ignore it. 13799 Maximum float64 `json:"maximum,omitempty"` 13800 // Computed values less than the minimum limit must fall back to the minimum value. If null, ignore it. 13801 Minimum float64 `json:"minimum,omitempty"` 13802 } 13803 13804 // ServiceLevelDefinition - The service level defined for a specific entity. 13805 type ServiceLevelDefinition struct { 13806 // The SLIs attached to the entity. 13807 Indicators []servicelevel.ServiceLevelIndicator `json:"indicators"` 13808 } 13809 13810 // ServiceLevelQueryTemplates - The template of the NRQL queries that define how is calculated the recommended SLI. 13811 type ServiceLevelQueryTemplates struct { 13812 // The events that define the recommended SLI. 13813 Events ServiceLevelRecommendedEvents `json:"events,omitempty"` 13814 // The recommended SLOs for the SLI. 13815 RecommendedObjectives []ServiceLevelRecommendedObjective `json:"recommendedObjectives"` 13816 // The details of the parameters to be replaced in the query templates. 13817 TemplateParameters []ServiceLevelTemplateParameters `json:"templateParameters"` 13818 } 13819 13820 // ServiceLevelRecommendation - The recommended service level for a specific entity. 13821 type ServiceLevelRecommendation struct { 13822 // A list of recommended SLIs with the recommended SLOs for a specific entity. 13823 Indicators []ServiceLevelRecommendedIndicator `json:"indicators"` 13824 } 13825 13826 // ServiceLevelRecommendedEvents - The events that define the recommended SLI. 13827 type ServiceLevelRecommendedEvents struct { 13828 // The query template that defines the bad events. 13829 BadEvents ServiceLevelRecommendedEventsQuery `json:"badEvents,omitempty"` 13830 // The query template that defines the good events. 13831 GoodEvents ServiceLevelRecommendedEventsQuery `json:"goodEvents,omitempty"` 13832 // The query template that defines the valid events. 13833 ValidEvents ServiceLevelRecommendedEventsQuery `json:"validEvents"` 13834 } 13835 13836 // ServiceLevelRecommendedEventsQuery - The query template that represents the events to fetch. 13837 type ServiceLevelRecommendedEventsQuery struct { 13838 // The NRDB event or metric to fetch the data from. 13839 From nrdb.NRQL `json:"from"` 13840 // The NRQL condition to filter the events. 13841 Where nrdb.NRQL `json:"where,omitempty"` 13842 } 13843 13844 // ServiceLevelRecommendedIndicator - A recommended SLI with the recommended SLOs for a specific entity. 13845 type ServiceLevelRecommendedIndicator struct { 13846 // The category of the recommended SLI. 13847 Category string `json:"category,omitempty"` 13848 // The description of the recommended SLI. 13849 Description string `json:"description,omitempty"` 13850 // The name of the recommended SLI. 13851 Name string `json:"name,omitempty"` 13852 // The template of the NRQL queries that define how is calculated the SLI. 13853 QueryTemplates ServiceLevelQueryTemplates `json:"queryTemplates,omitempty"` 13854 } 13855 13856 // ServiceLevelRecommendedObjective - A recommended SLO for the SLI. 13857 type ServiceLevelRecommendedObjective struct { 13858 // The limits of the target and the default value to fall back if it cannot be computed successfully 13859 ComputedTargetLimits ServiceLevelComputedValueLimits `json:"computedTargetLimits,omitempty"` 13860 // The recommended target percentage of the SLO. 13861 Target float64 `json:"target,omitempty"` 13862 // The query that defines how to calculate the recommended target of SLO. 13863 TargetQuery nrdb.NRQL `json:"targetQuery,omitempty"` 13864 } 13865 13866 // ServiceLevelTemplateParameters - The details of the parameters to be replaced in the query templates. 13867 type ServiceLevelTemplateParameters struct { 13868 // The limits of the baseline and the default value to fall back if it cannot be computed successfully 13869 ComputedBaselineLimits ServiceLevelComputedValueLimits `json:"computedBaselineLimits,omitempty"` 13870 // The description of the parameter. 13871 Description string `json:"description,omitempty"` 13872 // The key to be replaced in a query template. 13873 Key string `json:"key"` 13874 // The name of the parameter. 13875 Name string `json:"name,omitempty"` 13876 // The operator of the parameter. 13877 Operator string `json:"operator,omitempty"` 13878 // The query that defines how the value should be calculated. 13879 Query nrdb.NRQL `json:"query"` 13880 // The unit of the parameter. 13881 Unit string `json:"unit,omitempty"` 13882 } 13883 13884 // StackTraceApmException - A structured representation of an exception for an APM application. 13885 type StackTraceApmException struct { 13886 // The top level message associated with the exception. 13887 Message string `json:"message,omitempty"` 13888 // The stack trace associated with the exception. 13889 StackTrace StackTraceApmStackTrace `json:"stackTrace,omitempty"` 13890 } 13891 13892 // StackTraceApmStackTrace - A structured representation of a stack trace for an APM application. 13893 type StackTraceApmStackTrace struct { 13894 // Stack trace frames. 13895 Frames []StackTraceApmStackTraceFrame `json:"frames,omitempty"` 13896 } 13897 13898 // StackTraceApmStackTraceFrame - An object representing a stack trace segment 13899 type StackTraceApmStackTraceFrame struct { 13900 // Frame filepath 13901 Filepath string `json:"filepath,omitempty"` 13902 // Formatted frame 13903 Formatted string `json:"formatted"` 13904 // Frame line number 13905 Line int `json:"line,omitempty"` 13906 // Frame name 13907 Name string `json:"name,omitempty"` 13908 } 13909 13910 // StackTraceBrowserException - A structured representation of an exception for a Browser application. 13911 type StackTraceBrowserException struct { 13912 // The top level message associated to the stack trace. 13913 Message string `json:"message,omitempty"` 13914 // The stack trace associated with the exception. 13915 StackTrace StackTraceBrowserStackTrace `json:"stackTrace,omitempty"` 13916 } 13917 13918 // StackTraceBrowserStackTrace - A structured representation of a stack trace for a Browser application. 13919 type StackTraceBrowserStackTrace struct { 13920 // Stack trace frames. 13921 Frames []StackTraceBrowserStackTraceFrame `json:"frames,omitempty"` 13922 } 13923 13924 // StackTraceBrowserStackTraceFrame - An object representing a stack trace segment 13925 type StackTraceBrowserStackTraceFrame struct { 13926 // Frame column number 13927 Column int `json:"column,omitempty"` 13928 // Formatted frame 13929 Formatted string `json:"formatted"` 13930 // Frame line number 13931 Line int `json:"line,omitempty"` 13932 // Frame name 13933 Name string `json:"name,omitempty"` 13934 } 13935 13936 // StackTraceMobileCrash - A structured representation of a crash occurring in a mobile application. 13937 type StackTraceMobileCrash struct { 13938 // A structured representation of a stack trace for a crash that occurs on a mobile application. 13939 StackTrace StackTraceMobileCrashStackTrace `json:"stackTrace,omitempty"` 13940 } 13941 13942 // StackTraceMobileCrashStackTrace - A structured representation of a stack trace of a crash in a mobile application. 13943 type StackTraceMobileCrashStackTrace struct { 13944 // Stack trace frames. 13945 Frames []StackTraceMobileCrashStackTraceFrame `json:"frames,omitempty"` 13946 } 13947 13948 // StackTraceMobileCrashStackTraceFrame - An object representing a stack trace segment 13949 type StackTraceMobileCrashStackTraceFrame struct { 13950 // Frame filepath 13951 Filepath string `json:"filepath,omitempty"` 13952 // Formatted frame 13953 Formatted string `json:"formatted"` 13954 // Frame line number 13955 Line int `json:"line,omitempty"` 13956 // Frame name 13957 Name string `json:"name,omitempty"` 13958 } 13959 13960 // StackTraceMobileException - A structured representation of a handled exception occurring in a mobile application. 13961 type StackTraceMobileException struct { 13962 // A structured representation of a handled exception in a mobile application. 13963 StackTrace StackTraceMobileExceptionStackTrace `json:"stackTrace,omitempty"` 13964 } 13965 13966 // StackTraceMobileExceptionStackTrace - A structured representation of a handled exception in a mobile application. 13967 type StackTraceMobileExceptionStackTrace struct { 13968 // Stack trace frames. 13969 Frames []StackTraceMobileExceptionStackTraceFrame `json:"frames,omitempty"` 13970 } 13971 13972 // StackTraceMobileExceptionStackTraceFrame - An object representing a stack trace segment 13973 type StackTraceMobileExceptionStackTraceFrame struct { 13974 // Frame filepath 13975 Filepath string `json:"filepath,omitempty"` 13976 // Formatted frame 13977 Formatted string `json:"formatted"` 13978 // Frame line number 13979 Line int `json:"line,omitempty"` 13980 // Frame name 13981 Name string `json:"name,omitempty"` 13982 } 13983 13984 // SyntheticMonitorCheckResult - The result of a synthetic monitor check 13985 type SyntheticMonitorCheckResult struct { 13986 // The synthetic monitor check result id 13987 ID string `json:"id,omitempty"` 13988 // The synthetic monitor check result status 13989 Status SyntheticMonitorCheckStatus `json:"status,omitempty"` 13990 } 13991 13992 // SyntheticMonitorEntity - A Synthetic Monitor entity. 13993 type SyntheticMonitorEntity struct { 13994 Account accounts.AccountOutline `json:"account,omitempty"` 13995 // The New Relic account ID associated with this entity. 13996 AccountID int `json:"accountId,omitempty"` 13997 // The current alerting severity of the entity. 13998 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 13999 // The alert status of the entity. 14000 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 14001 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 14002 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 14003 // Assets produced during the execution of the check, such as screenshots 14004 Assets []SyntheticsSyntheticMonitorAsset `json:"assets,omitempty"` 14005 // The list of dashboard templates available for this entity. 14006 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 14007 // The entity's domain 14008 Domain string `json:"domain,omitempty"` 14009 // A value representing the combination of the entity's domain and type. 14010 EntityType EntityType `json:"entityType,omitempty"` 14011 // A unique entity identifier. 14012 GUID common.EntityGUID `json:"guid,omitempty"` 14013 // The list of golden metrics for a specific entity 14014 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 14015 // Existing API - to be replaced with V2 implementation. 14016 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 14017 // The stored golden signal(s) for the given entity. 14018 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 14019 // The list of golden tags for a specific entityType. 14020 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 14021 // The time the entity was indexed. 14022 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 14023 // The Synthetic Monitor ID 14024 MonitorId string `json:"monitorId,omitempty"` 14025 // Summary statistics for the Synthetic Monitor. 14026 MonitorSummary SyntheticMonitorSummaryData `json:"monitorSummary,omitempty"` 14027 // The Synthetic Monitor type 14028 MonitorType SyntheticMonitorType `json:"monitorType,omitempty"` 14029 // The URL being monitored by a `SIMPLE` or `BROWSER` monitor type. 14030 MonitoredURL string `json:"monitoredUrl,omitempty"` 14031 // Make an `Entity` scoped query to NRDB with a NRQL string. 14032 // 14033 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 14034 // 14035 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 14036 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 14037 // The name of this entity. 14038 Name string `json:"name,omitempty"` 14039 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 14040 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 14041 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 14042 // The duration in minutes between Synthetic Monitor runs. 14043 Period nrtime.Minutes `json:"period,omitempty"` 14044 // The url to the entity. 14045 Permalink string `json:"permalink,omitempty"` 14046 // Recent violations on the entity. 14047 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 14048 // The recommended service levels for the entity. 14049 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 14050 // Related dashboards results 14051 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 14052 // Related entities result with optional filtering. 14053 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 14054 // A list of the entities' relationships. 14055 // 14056 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 14057 Relationships []EntityRelationship `json:"relationships,omitempty"` 14058 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 14059 Reporting bool `json:"reporting,omitempty"` 14060 // The service level defined for the entity. 14061 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 14062 // The list of summary metrics. 14063 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 14064 // The tags applied to the entity. 14065 // 14066 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 14067 Tags []EntityTag `json:"tags,omitempty"` 14068 // The tags applied to the entity with their metadata. 14069 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 14070 // Look up Distributed Tracing summary data for the selected `EntityGuid` 14071 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 14072 // The entity's type 14073 Type string `json:"type,omitempty"` 14074 // List of templates availables for this entity. 14075 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 14076 } 14077 14078 // GetAccount returns a pointer to the value of Account from SyntheticMonitorEntity 14079 func (x SyntheticMonitorEntity) GetAccount() accounts.AccountOutline { 14080 return x.Account 14081 } 14082 14083 // GetAccountID returns a pointer to the value of AccountID from SyntheticMonitorEntity 14084 func (x SyntheticMonitorEntity) GetAccountID() int { 14085 return x.AccountID 14086 } 14087 14088 // GetAlertSeverity returns a pointer to the value of AlertSeverity from SyntheticMonitorEntity 14089 func (x SyntheticMonitorEntity) GetAlertSeverity() EntityAlertSeverity { 14090 return x.AlertSeverity 14091 } 14092 14093 // GetAlertStatus returns a pointer to the value of AlertStatus from SyntheticMonitorEntity 14094 func (x SyntheticMonitorEntity) GetAlertStatus() EntityAlertStatus { 14095 return x.AlertStatus 14096 } 14097 14098 // GetAlertViolations returns a pointer to the value of AlertViolations from SyntheticMonitorEntity 14099 func (x SyntheticMonitorEntity) GetAlertViolations() []EntityAlertViolation { 14100 return x.AlertViolations 14101 } 14102 14103 // GetAssets returns a pointer to the value of Assets from SyntheticMonitorEntity 14104 func (x SyntheticMonitorEntity) GetAssets() []SyntheticsSyntheticMonitorAsset { 14105 return x.Assets 14106 } 14107 14108 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from SyntheticMonitorEntity 14109 func (x SyntheticMonitorEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 14110 return x.DashboardTemplates 14111 } 14112 14113 // GetDomain returns a pointer to the value of Domain from SyntheticMonitorEntity 14114 func (x SyntheticMonitorEntity) GetDomain() string { 14115 return x.Domain 14116 } 14117 14118 // GetEntityType returns a pointer to the value of EntityType from SyntheticMonitorEntity 14119 func (x SyntheticMonitorEntity) GetEntityType() EntityType { 14120 return x.EntityType 14121 } 14122 14123 // GetGUID returns a pointer to the value of GUID from SyntheticMonitorEntity 14124 func (x SyntheticMonitorEntity) GetGUID() common.EntityGUID { 14125 return x.GUID 14126 } 14127 14128 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from SyntheticMonitorEntity 14129 func (x SyntheticMonitorEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 14130 return x.GoldenMetrics 14131 } 14132 14133 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from SyntheticMonitorEntity 14134 func (x SyntheticMonitorEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 14135 return x.GoldenSignalValues 14136 } 14137 14138 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from SyntheticMonitorEntity 14139 func (x SyntheticMonitorEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 14140 return x.GoldenSignalValuesV2 14141 } 14142 14143 // GetGoldenTags returns a pointer to the value of GoldenTags from SyntheticMonitorEntity 14144 func (x SyntheticMonitorEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 14145 return x.GoldenTags 14146 } 14147 14148 // GetIndexedAt returns a pointer to the value of IndexedAt from SyntheticMonitorEntity 14149 func (x SyntheticMonitorEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 14150 return x.IndexedAt 14151 } 14152 14153 // GetMonitorId returns a pointer to the value of MonitorId from SyntheticMonitorEntity 14154 func (x SyntheticMonitorEntity) GetMonitorId() string { 14155 return x.MonitorId 14156 } 14157 14158 // GetMonitorSummary returns a pointer to the value of MonitorSummary from SyntheticMonitorEntity 14159 func (x SyntheticMonitorEntity) GetMonitorSummary() SyntheticMonitorSummaryData { 14160 return x.MonitorSummary 14161 } 14162 14163 // GetMonitorType returns a pointer to the value of MonitorType from SyntheticMonitorEntity 14164 func (x SyntheticMonitorEntity) GetMonitorType() SyntheticMonitorType { 14165 return x.MonitorType 14166 } 14167 14168 // GetMonitoredURL returns a pointer to the value of MonitoredURL from SyntheticMonitorEntity 14169 func (x SyntheticMonitorEntity) GetMonitoredURL() string { 14170 return x.MonitoredURL 14171 } 14172 14173 // GetNRDBQuery returns a pointer to the value of NRDBQuery from SyntheticMonitorEntity 14174 func (x SyntheticMonitorEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 14175 return x.NRDBQuery 14176 } 14177 14178 // GetName returns a pointer to the value of Name from SyntheticMonitorEntity 14179 func (x SyntheticMonitorEntity) GetName() string { 14180 return x.Name 14181 } 14182 14183 // GetNerdStorage returns a pointer to the value of NerdStorage from SyntheticMonitorEntity 14184 func (x SyntheticMonitorEntity) GetNerdStorage() NerdStorageEntityScope { 14185 return x.NerdStorage 14186 } 14187 14188 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from SyntheticMonitorEntity 14189 func (x SyntheticMonitorEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 14190 return x.NerdStoreCollection 14191 } 14192 14193 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from SyntheticMonitorEntity 14194 func (x SyntheticMonitorEntity) GetNerdStoreDocument() NerdStoreDocument { 14195 return x.NerdStoreDocument 14196 } 14197 14198 // GetPeriod returns a pointer to the value of Period from SyntheticMonitorEntity 14199 func (x SyntheticMonitorEntity) GetPeriod() nrtime.Minutes { 14200 return x.Period 14201 } 14202 14203 // GetPermalink returns a pointer to the value of Permalink from SyntheticMonitorEntity 14204 func (x SyntheticMonitorEntity) GetPermalink() string { 14205 return x.Permalink 14206 } 14207 14208 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from SyntheticMonitorEntity 14209 func (x SyntheticMonitorEntity) GetRecentAlertViolations() []EntityAlertViolation { 14210 return x.RecentAlertViolations 14211 } 14212 14213 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from SyntheticMonitorEntity 14214 func (x SyntheticMonitorEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 14215 return x.RecommendedServiceLevel 14216 } 14217 14218 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from SyntheticMonitorEntity 14219 func (x SyntheticMonitorEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 14220 return x.RelatedDashboards 14221 } 14222 14223 // GetRelatedEntities returns a pointer to the value of RelatedEntities from SyntheticMonitorEntity 14224 func (x SyntheticMonitorEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 14225 return x.RelatedEntities 14226 } 14227 14228 // GetRelationships returns a pointer to the value of Relationships from SyntheticMonitorEntity 14229 func (x SyntheticMonitorEntity) GetRelationships() []EntityRelationship { 14230 return x.Relationships 14231 } 14232 14233 // GetReporting returns a pointer to the value of Reporting from SyntheticMonitorEntity 14234 func (x SyntheticMonitorEntity) GetReporting() bool { 14235 return x.Reporting 14236 } 14237 14238 // GetServiceLevel returns a pointer to the value of ServiceLevel from SyntheticMonitorEntity 14239 func (x SyntheticMonitorEntity) GetServiceLevel() ServiceLevelDefinition { 14240 return x.ServiceLevel 14241 } 14242 14243 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from SyntheticMonitorEntity 14244 func (x SyntheticMonitorEntity) GetSummaryMetrics() []EntitySummaryMetric { 14245 return x.SummaryMetrics 14246 } 14247 14248 // GetTags returns a pointer to the value of Tags from SyntheticMonitorEntity 14249 func (x SyntheticMonitorEntity) GetTags() []EntityTag { 14250 return x.Tags 14251 } 14252 14253 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from SyntheticMonitorEntity 14254 func (x SyntheticMonitorEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 14255 return x.TagsWithMetadata 14256 } 14257 14258 // GetTracingSummary returns a pointer to the value of TracingSummary from SyntheticMonitorEntity 14259 func (x SyntheticMonitorEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 14260 return x.TracingSummary 14261 } 14262 14263 // GetType returns a pointer to the value of Type from SyntheticMonitorEntity 14264 func (x SyntheticMonitorEntity) GetType() string { 14265 return x.Type 14266 } 14267 14268 // GetUiTemplates returns a pointer to the value of UiTemplates from SyntheticMonitorEntity 14269 func (x SyntheticMonitorEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 14270 return x.UiTemplates 14271 } 14272 14273 func (x *SyntheticMonitorEntity) ImplementsAlertableEntity() {} 14274 14275 func (x *SyntheticMonitorEntity) ImplementsEntity() {} 14276 14277 // SyntheticMonitorEntityOutline - A Synthetic Monitor entity outline. 14278 type SyntheticMonitorEntityOutline struct { 14279 Account accounts.AccountOutline `json:"account,omitempty"` 14280 // The New Relic account ID associated with this entity. 14281 AccountID int `json:"accountId,omitempty"` 14282 // The current alerting severity of the entity. 14283 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 14284 // The alert status of the entity. 14285 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 14286 // The list of dashboard templates available for this entity. 14287 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 14288 // The entity's domain 14289 Domain string `json:"domain,omitempty"` 14290 // A value representing the combination of the entity's domain and type. 14291 EntityType EntityType `json:"entityType,omitempty"` 14292 // A unique entity identifier. 14293 GUID common.EntityGUID `json:"guid,omitempty"` 14294 // The list of golden metrics for a specific entity 14295 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 14296 // Existing API - to be replaced with V2 implementation. 14297 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 14298 // The stored golden signal(s) for the given entity. 14299 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 14300 // The list of golden tags for a specific entityType. 14301 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 14302 // The time the entity was indexed. 14303 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 14304 // The Synthetic Monitor ID 14305 MonitorId string `json:"monitorId,omitempty"` 14306 // Summary statistics for the Synthetic Monitor. 14307 MonitorSummary SyntheticMonitorSummaryData `json:"monitorSummary,omitempty"` 14308 // The Synthetic Monitor type 14309 MonitorType SyntheticMonitorType `json:"monitorType,omitempty"` 14310 // The URL being monitored by a `SIMPLE` or `BROWSER` monitor type. 14311 MonitoredURL string `json:"monitoredUrl,omitempty"` 14312 // The name of this entity. 14313 Name string `json:"name,omitempty"` 14314 // The duration in minutes between Synthetic Monitor runs. 14315 Period nrtime.Minutes `json:"period,omitempty"` 14316 // The url to the entity. 14317 Permalink string `json:"permalink,omitempty"` 14318 // The recommended service levels for the entity. 14319 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 14320 // Related dashboards results 14321 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 14322 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 14323 Reporting bool `json:"reporting,omitempty"` 14324 // The service level defined for the entity. 14325 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 14326 // The list of summary metrics. 14327 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 14328 // The tags applied to the entity. 14329 // 14330 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 14331 Tags []EntityTag `json:"tags,omitempty"` 14332 // The entity's type 14333 Type string `json:"type,omitempty"` 14334 // List of templates availables for this entity. 14335 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 14336 } 14337 14338 // GetAccount returns a pointer to the value of Account from SyntheticMonitorEntityOutline 14339 func (x SyntheticMonitorEntityOutline) GetAccount() accounts.AccountOutline { 14340 return x.Account 14341 } 14342 14343 // GetAccountID returns a pointer to the value of AccountID from SyntheticMonitorEntityOutline 14344 func (x SyntheticMonitorEntityOutline) GetAccountID() int { 14345 return x.AccountID 14346 } 14347 14348 // GetAlertSeverity returns a pointer to the value of AlertSeverity from SyntheticMonitorEntityOutline 14349 func (x SyntheticMonitorEntityOutline) GetAlertSeverity() EntityAlertSeverity { 14350 return x.AlertSeverity 14351 } 14352 14353 // GetAlertStatus returns a pointer to the value of AlertStatus from SyntheticMonitorEntityOutline 14354 func (x SyntheticMonitorEntityOutline) GetAlertStatus() EntityAlertStatus { 14355 return x.AlertStatus 14356 } 14357 14358 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from SyntheticMonitorEntityOutline 14359 func (x SyntheticMonitorEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 14360 return x.DashboardTemplates 14361 } 14362 14363 // GetDomain returns a pointer to the value of Domain from SyntheticMonitorEntityOutline 14364 func (x SyntheticMonitorEntityOutline) GetDomain() string { 14365 return x.Domain 14366 } 14367 14368 // GetEntityType returns a pointer to the value of EntityType from SyntheticMonitorEntityOutline 14369 func (x SyntheticMonitorEntityOutline) GetEntityType() EntityType { 14370 return x.EntityType 14371 } 14372 14373 // GetGUID returns a pointer to the value of GUID from SyntheticMonitorEntityOutline 14374 func (x SyntheticMonitorEntityOutline) GetGUID() common.EntityGUID { 14375 return x.GUID 14376 } 14377 14378 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from SyntheticMonitorEntityOutline 14379 func (x SyntheticMonitorEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 14380 return x.GoldenMetrics 14381 } 14382 14383 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from SyntheticMonitorEntityOutline 14384 func (x SyntheticMonitorEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 14385 return x.GoldenSignalValues 14386 } 14387 14388 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from SyntheticMonitorEntityOutline 14389 func (x SyntheticMonitorEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 14390 return x.GoldenSignalValuesV2 14391 } 14392 14393 // GetGoldenTags returns a pointer to the value of GoldenTags from SyntheticMonitorEntityOutline 14394 func (x SyntheticMonitorEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 14395 return x.GoldenTags 14396 } 14397 14398 // GetIndexedAt returns a pointer to the value of IndexedAt from SyntheticMonitorEntityOutline 14399 func (x SyntheticMonitorEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 14400 return x.IndexedAt 14401 } 14402 14403 // GetMonitorId returns a pointer to the value of MonitorId from SyntheticMonitorEntityOutline 14404 func (x SyntheticMonitorEntityOutline) GetMonitorId() string { 14405 return x.MonitorId 14406 } 14407 14408 // GetMonitorSummary returns a pointer to the value of MonitorSummary from SyntheticMonitorEntityOutline 14409 func (x SyntheticMonitorEntityOutline) GetMonitorSummary() SyntheticMonitorSummaryData { 14410 return x.MonitorSummary 14411 } 14412 14413 // GetMonitorType returns a pointer to the value of MonitorType from SyntheticMonitorEntityOutline 14414 func (x SyntheticMonitorEntityOutline) GetMonitorType() SyntheticMonitorType { 14415 return x.MonitorType 14416 } 14417 14418 // GetMonitoredURL returns a pointer to the value of MonitoredURL from SyntheticMonitorEntityOutline 14419 func (x SyntheticMonitorEntityOutline) GetMonitoredURL() string { 14420 return x.MonitoredURL 14421 } 14422 14423 // GetName returns a pointer to the value of Name from SyntheticMonitorEntityOutline 14424 func (x SyntheticMonitorEntityOutline) GetName() string { 14425 return x.Name 14426 } 14427 14428 // GetPeriod returns a pointer to the value of Period from SyntheticMonitorEntityOutline 14429 func (x SyntheticMonitorEntityOutline) GetPeriod() nrtime.Minutes { 14430 return x.Period 14431 } 14432 14433 // GetPermalink returns a pointer to the value of Permalink from SyntheticMonitorEntityOutline 14434 func (x SyntheticMonitorEntityOutline) GetPermalink() string { 14435 return x.Permalink 14436 } 14437 14438 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from SyntheticMonitorEntityOutline 14439 func (x SyntheticMonitorEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 14440 return x.RecommendedServiceLevel 14441 } 14442 14443 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from SyntheticMonitorEntityOutline 14444 func (x SyntheticMonitorEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 14445 return x.RelatedDashboards 14446 } 14447 14448 // GetReporting returns a pointer to the value of Reporting from SyntheticMonitorEntityOutline 14449 func (x SyntheticMonitorEntityOutline) GetReporting() bool { 14450 return x.Reporting 14451 } 14452 14453 // GetServiceLevel returns a pointer to the value of ServiceLevel from SyntheticMonitorEntityOutline 14454 func (x SyntheticMonitorEntityOutline) GetServiceLevel() ServiceLevelDefinition { 14455 return x.ServiceLevel 14456 } 14457 14458 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from SyntheticMonitorEntityOutline 14459 func (x SyntheticMonitorEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 14460 return x.SummaryMetrics 14461 } 14462 14463 // GetTags returns a pointer to the value of Tags from SyntheticMonitorEntityOutline 14464 func (x SyntheticMonitorEntityOutline) GetTags() []EntityTag { 14465 return x.Tags 14466 } 14467 14468 // GetType returns a pointer to the value of Type from SyntheticMonitorEntityOutline 14469 func (x SyntheticMonitorEntityOutline) GetType() string { 14470 return x.Type 14471 } 14472 14473 // GetUiTemplates returns a pointer to the value of UiTemplates from SyntheticMonitorEntityOutline 14474 func (x SyntheticMonitorEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 14475 return x.UiTemplates 14476 } 14477 14478 func (x *SyntheticMonitorEntityOutline) ImplementsAlertableEntityOutline() {} 14479 14480 func (x *SyntheticMonitorEntityOutline) ImplementsEntityOutline() {} 14481 14482 // SyntheticMonitorSummaryData - Summary statistics for the Synthetic Monitor. 14483 type SyntheticMonitorSummaryData struct { 14484 // The latest 5 synthetic monitor check results. 14485 LatestResults []SyntheticMonitorCheckResult `json:"latestResults,omitempty"` 14486 // The mean load size in bytes for synthetic monitor checks in the last 24 hours. 14487 LoadSizeAverage float64 `json:"loadSizeAverage,omitempty"` 14488 // The 50th percentile load time in milliseconds for synthetic monitor checks in the last 24 hours. 14489 LoadTimeP50 Milliseconds `json:"loadTimeP50,omitempty"` 14490 // The 95th percentile load time in milliseconds for synthetic monitor checks in the last 24 hours. 14491 LoadTimeP95 Milliseconds `json:"loadTimeP95,omitempty"` 14492 // The number of locations that are currently failing. 14493 LocationsFailing int `json:"locationsFailing,omitempty"` 14494 // The number of locations that are currently running. 14495 LocationsRunning int `json:"locationsRunning,omitempty"` 14496 Status SyntheticMonitorStatus `json:"status,omitempty"` 14497 // The percentage of successful synthetic monitor checks in the last 24 hours. 14498 SuccessRate float64 `json:"successRate,omitempty"` 14499 } 14500 14501 // SyntheticsSyntheticMonitorAsset - Asset produced during the execution of the check 14502 type SyntheticsSyntheticMonitorAsset struct { 14503 // MIME type of asset 14504 Type string `json:"type,omitempty"` 14505 // Temporary url at which the asset is available for download 14506 URL string `json:"url,omitempty"` 14507 } 14508 14509 // TaggingMutationError - An error object for tag mutations. 14510 type TaggingMutationError struct { 14511 // A message explaining what the errors is about. 14512 Message string `json:"message,omitempty"` 14513 // The type of error. 14514 Type TaggingMutationErrorType `json:"type,omitempty"` 14515 } 14516 14517 // TaggingMutationResult - The result of a tag mutation 14518 type TaggingMutationResult struct { 14519 // An array containing errors, if any. These are expected errors listed in TagMutationErrorType which a request should be capable of handling appropriately. 14520 Errors []TaggingMutationError `json:"errors,omitempty"` 14521 } 14522 14523 // TaggingTagInput - An object that represents a tag key-values pair. 14524 type TaggingTagInput struct { 14525 // The tag key. 14526 Key string `json:"key"` 14527 // The tag values. 14528 Values []string `json:"values,omitempty"` 14529 } 14530 14531 // TaggingTagValueInput - An object that represents a tag key-value pair 14532 type TaggingTagValueInput struct { 14533 // The tag key. 14534 Key string `json:"key"` 14535 // The tag value. 14536 Value string `json:"value"` 14537 } 14538 14539 // ThirdPartyServiceEntity - A third party service entity. 14540 type ThirdPartyServiceEntity struct { 14541 Account accounts.AccountOutline `json:"account,omitempty"` 14542 // The New Relic account ID associated with this entity. 14543 AccountID int `json:"accountId,omitempty"` 14544 // The current alerting severity of the entity. 14545 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 14546 // The alert status of the entity. 14547 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 14548 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 14549 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 14550 // Query upstream and downstream dependencies for an entity 14551 Connections RelatedExternalsEntityResult `json:"connections,omitempty"` 14552 // The list of dashboard templates available for this entity. 14553 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 14554 // The entity's domain 14555 Domain string `json:"domain,omitempty"` 14556 // A value representing the combination of the entity's domain and type. 14557 EntityType EntityType `json:"entityType,omitempty"` 14558 // A unique entity identifier. 14559 GUID common.EntityGUID `json:"guid,omitempty"` 14560 // The list of golden metrics for a specific entity 14561 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 14562 // Existing API - to be replaced with V2 implementation. 14563 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 14564 // The stored golden signal(s) for the given entity. 14565 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 14566 // The list of golden tags for a specific entityType. 14567 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 14568 // The time the entity was indexed. 14569 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 14570 // Make an `Entity` scoped query to NRDB with a NRQL string. 14571 // 14572 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 14573 // 14574 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 14575 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 14576 // The name of this entity. 14577 Name string `json:"name,omitempty"` 14578 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 14579 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 14580 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 14581 // The url to the entity. 14582 Permalink string `json:"permalink,omitempty"` 14583 // Recent violations on the entity. 14584 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 14585 // The recommended service levels for the entity. 14586 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 14587 // Related dashboards results 14588 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 14589 // Related entities result with optional filtering. 14590 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 14591 // Query upstream and downstream transaction dependencies for an entity 14592 RelatedTransactions RelatedExternalsTransactionResult `json:"relatedTransactions,omitempty"` 14593 // A list of the entities' relationships. 14594 // 14595 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 14596 Relationships []EntityRelationship `json:"relationships,omitempty"` 14597 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 14598 Reporting bool `json:"reporting,omitempty"` 14599 // The service level defined for the entity. 14600 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 14601 // The list of summary metrics. 14602 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 14603 // The tags applied to the entity. 14604 // 14605 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 14606 Tags []EntityTag `json:"tags,omitempty"` 14607 // The tags applied to the entity with their metadata. 14608 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 14609 // Look up Distributed Tracing summary data for the selected `EntityGuid` 14610 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 14611 // The entity's type 14612 Type string `json:"type,omitempty"` 14613 // List of templates availables for this entity. 14614 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 14615 } 14616 14617 // GetAccount returns a pointer to the value of Account from ThirdPartyServiceEntity 14618 func (x ThirdPartyServiceEntity) GetAccount() accounts.AccountOutline { 14619 return x.Account 14620 } 14621 14622 // GetAccountID returns a pointer to the value of AccountID from ThirdPartyServiceEntity 14623 func (x ThirdPartyServiceEntity) GetAccountID() int { 14624 return x.AccountID 14625 } 14626 14627 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ThirdPartyServiceEntity 14628 func (x ThirdPartyServiceEntity) GetAlertSeverity() EntityAlertSeverity { 14629 return x.AlertSeverity 14630 } 14631 14632 // GetAlertStatus returns a pointer to the value of AlertStatus from ThirdPartyServiceEntity 14633 func (x ThirdPartyServiceEntity) GetAlertStatus() EntityAlertStatus { 14634 return x.AlertStatus 14635 } 14636 14637 // GetAlertViolations returns a pointer to the value of AlertViolations from ThirdPartyServiceEntity 14638 func (x ThirdPartyServiceEntity) GetAlertViolations() []EntityAlertViolation { 14639 return x.AlertViolations 14640 } 14641 14642 // GetConnections returns a pointer to the value of Connections from ThirdPartyServiceEntity 14643 func (x ThirdPartyServiceEntity) GetConnections() RelatedExternalsEntityResult { 14644 return x.Connections 14645 } 14646 14647 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ThirdPartyServiceEntity 14648 func (x ThirdPartyServiceEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 14649 return x.DashboardTemplates 14650 } 14651 14652 // GetDomain returns a pointer to the value of Domain from ThirdPartyServiceEntity 14653 func (x ThirdPartyServiceEntity) GetDomain() string { 14654 return x.Domain 14655 } 14656 14657 // GetEntityType returns a pointer to the value of EntityType from ThirdPartyServiceEntity 14658 func (x ThirdPartyServiceEntity) GetEntityType() EntityType { 14659 return x.EntityType 14660 } 14661 14662 // GetGUID returns a pointer to the value of GUID from ThirdPartyServiceEntity 14663 func (x ThirdPartyServiceEntity) GetGUID() common.EntityGUID { 14664 return x.GUID 14665 } 14666 14667 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ThirdPartyServiceEntity 14668 func (x ThirdPartyServiceEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 14669 return x.GoldenMetrics 14670 } 14671 14672 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ThirdPartyServiceEntity 14673 func (x ThirdPartyServiceEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 14674 return x.GoldenSignalValues 14675 } 14676 14677 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ThirdPartyServiceEntity 14678 func (x ThirdPartyServiceEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 14679 return x.GoldenSignalValuesV2 14680 } 14681 14682 // GetGoldenTags returns a pointer to the value of GoldenTags from ThirdPartyServiceEntity 14683 func (x ThirdPartyServiceEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 14684 return x.GoldenTags 14685 } 14686 14687 // GetIndexedAt returns a pointer to the value of IndexedAt from ThirdPartyServiceEntity 14688 func (x ThirdPartyServiceEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 14689 return x.IndexedAt 14690 } 14691 14692 // GetNRDBQuery returns a pointer to the value of NRDBQuery from ThirdPartyServiceEntity 14693 func (x ThirdPartyServiceEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 14694 return x.NRDBQuery 14695 } 14696 14697 // GetName returns a pointer to the value of Name from ThirdPartyServiceEntity 14698 func (x ThirdPartyServiceEntity) GetName() string { 14699 return x.Name 14700 } 14701 14702 // GetNerdStorage returns a pointer to the value of NerdStorage from ThirdPartyServiceEntity 14703 func (x ThirdPartyServiceEntity) GetNerdStorage() NerdStorageEntityScope { 14704 return x.NerdStorage 14705 } 14706 14707 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from ThirdPartyServiceEntity 14708 func (x ThirdPartyServiceEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 14709 return x.NerdStoreCollection 14710 } 14711 14712 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from ThirdPartyServiceEntity 14713 func (x ThirdPartyServiceEntity) GetNerdStoreDocument() NerdStoreDocument { 14714 return x.NerdStoreDocument 14715 } 14716 14717 // GetPermalink returns a pointer to the value of Permalink from ThirdPartyServiceEntity 14718 func (x ThirdPartyServiceEntity) GetPermalink() string { 14719 return x.Permalink 14720 } 14721 14722 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from ThirdPartyServiceEntity 14723 func (x ThirdPartyServiceEntity) GetRecentAlertViolations() []EntityAlertViolation { 14724 return x.RecentAlertViolations 14725 } 14726 14727 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ThirdPartyServiceEntity 14728 func (x ThirdPartyServiceEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 14729 return x.RecommendedServiceLevel 14730 } 14731 14732 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ThirdPartyServiceEntity 14733 func (x ThirdPartyServiceEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 14734 return x.RelatedDashboards 14735 } 14736 14737 // GetRelatedEntities returns a pointer to the value of RelatedEntities from ThirdPartyServiceEntity 14738 func (x ThirdPartyServiceEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 14739 return x.RelatedEntities 14740 } 14741 14742 // GetRelatedTransactions returns a pointer to the value of RelatedTransactions from ThirdPartyServiceEntity 14743 func (x ThirdPartyServiceEntity) GetRelatedTransactions() RelatedExternalsTransactionResult { 14744 return x.RelatedTransactions 14745 } 14746 14747 // GetRelationships returns a pointer to the value of Relationships from ThirdPartyServiceEntity 14748 func (x ThirdPartyServiceEntity) GetRelationships() []EntityRelationship { 14749 return x.Relationships 14750 } 14751 14752 // GetReporting returns a pointer to the value of Reporting from ThirdPartyServiceEntity 14753 func (x ThirdPartyServiceEntity) GetReporting() bool { 14754 return x.Reporting 14755 } 14756 14757 // GetServiceLevel returns a pointer to the value of ServiceLevel from ThirdPartyServiceEntity 14758 func (x ThirdPartyServiceEntity) GetServiceLevel() ServiceLevelDefinition { 14759 return x.ServiceLevel 14760 } 14761 14762 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ThirdPartyServiceEntity 14763 func (x ThirdPartyServiceEntity) GetSummaryMetrics() []EntitySummaryMetric { 14764 return x.SummaryMetrics 14765 } 14766 14767 // GetTags returns a pointer to the value of Tags from ThirdPartyServiceEntity 14768 func (x ThirdPartyServiceEntity) GetTags() []EntityTag { 14769 return x.Tags 14770 } 14771 14772 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from ThirdPartyServiceEntity 14773 func (x ThirdPartyServiceEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 14774 return x.TagsWithMetadata 14775 } 14776 14777 // GetTracingSummary returns a pointer to the value of TracingSummary from ThirdPartyServiceEntity 14778 func (x ThirdPartyServiceEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 14779 return x.TracingSummary 14780 } 14781 14782 // GetType returns a pointer to the value of Type from ThirdPartyServiceEntity 14783 func (x ThirdPartyServiceEntity) GetType() string { 14784 return x.Type 14785 } 14786 14787 // GetUiTemplates returns a pointer to the value of UiTemplates from ThirdPartyServiceEntity 14788 func (x ThirdPartyServiceEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 14789 return x.UiTemplates 14790 } 14791 14792 func (x *ThirdPartyServiceEntity) ImplementsAlertableEntity() {} 14793 14794 func (x *ThirdPartyServiceEntity) ImplementsEntity() {} 14795 14796 func (x *ThirdPartyServiceEntity) ImplementsThirdPartyServiceEntity() {} 14797 14798 // ThirdPartyServiceEntityOutline - A third party service entity outline. 14799 type ThirdPartyServiceEntityOutline struct { 14800 Account accounts.AccountOutline `json:"account,omitempty"` 14801 // The New Relic account ID associated with this entity. 14802 AccountID int `json:"accountId,omitempty"` 14803 // The current alerting severity of the entity. 14804 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 14805 // The alert status of the entity. 14806 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 14807 // The list of dashboard templates available for this entity. 14808 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 14809 // The entity's domain 14810 Domain string `json:"domain,omitempty"` 14811 // A value representing the combination of the entity's domain and type. 14812 EntityType EntityType `json:"entityType,omitempty"` 14813 // A unique entity identifier. 14814 GUID common.EntityGUID `json:"guid,omitempty"` 14815 // The list of golden metrics for a specific entity 14816 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 14817 // Existing API - to be replaced with V2 implementation. 14818 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 14819 // The stored golden signal(s) for the given entity. 14820 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 14821 // The list of golden tags for a specific entityType. 14822 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 14823 // The time the entity was indexed. 14824 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 14825 // The name of this entity. 14826 Name string `json:"name,omitempty"` 14827 // The url to the entity. 14828 Permalink string `json:"permalink,omitempty"` 14829 // The recommended service levels for the entity. 14830 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 14831 // Related dashboards results 14832 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 14833 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 14834 Reporting bool `json:"reporting,omitempty"` 14835 // The service level defined for the entity. 14836 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 14837 // The list of summary metrics. 14838 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 14839 // The tags applied to the entity. 14840 // 14841 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 14842 Tags []EntityTag `json:"tags,omitempty"` 14843 // The entity's type 14844 Type string `json:"type,omitempty"` 14845 // List of templates availables for this entity. 14846 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 14847 } 14848 14849 // GetAccount returns a pointer to the value of Account from ThirdPartyServiceEntityOutline 14850 func (x ThirdPartyServiceEntityOutline) GetAccount() accounts.AccountOutline { 14851 return x.Account 14852 } 14853 14854 // GetAccountID returns a pointer to the value of AccountID from ThirdPartyServiceEntityOutline 14855 func (x ThirdPartyServiceEntityOutline) GetAccountID() int { 14856 return x.AccountID 14857 } 14858 14859 // GetAlertSeverity returns a pointer to the value of AlertSeverity from ThirdPartyServiceEntityOutline 14860 func (x ThirdPartyServiceEntityOutline) GetAlertSeverity() EntityAlertSeverity { 14861 return x.AlertSeverity 14862 } 14863 14864 // GetAlertStatus returns a pointer to the value of AlertStatus from ThirdPartyServiceEntityOutline 14865 func (x ThirdPartyServiceEntityOutline) GetAlertStatus() EntityAlertStatus { 14866 return x.AlertStatus 14867 } 14868 14869 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from ThirdPartyServiceEntityOutline 14870 func (x ThirdPartyServiceEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 14871 return x.DashboardTemplates 14872 } 14873 14874 // GetDomain returns a pointer to the value of Domain from ThirdPartyServiceEntityOutline 14875 func (x ThirdPartyServiceEntityOutline) GetDomain() string { 14876 return x.Domain 14877 } 14878 14879 // GetEntityType returns a pointer to the value of EntityType from ThirdPartyServiceEntityOutline 14880 func (x ThirdPartyServiceEntityOutline) GetEntityType() EntityType { 14881 return x.EntityType 14882 } 14883 14884 // GetGUID returns a pointer to the value of GUID from ThirdPartyServiceEntityOutline 14885 func (x ThirdPartyServiceEntityOutline) GetGUID() common.EntityGUID { 14886 return x.GUID 14887 } 14888 14889 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from ThirdPartyServiceEntityOutline 14890 func (x ThirdPartyServiceEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 14891 return x.GoldenMetrics 14892 } 14893 14894 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from ThirdPartyServiceEntityOutline 14895 func (x ThirdPartyServiceEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 14896 return x.GoldenSignalValues 14897 } 14898 14899 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from ThirdPartyServiceEntityOutline 14900 func (x ThirdPartyServiceEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 14901 return x.GoldenSignalValuesV2 14902 } 14903 14904 // GetGoldenTags returns a pointer to the value of GoldenTags from ThirdPartyServiceEntityOutline 14905 func (x ThirdPartyServiceEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 14906 return x.GoldenTags 14907 } 14908 14909 // GetIndexedAt returns a pointer to the value of IndexedAt from ThirdPartyServiceEntityOutline 14910 func (x ThirdPartyServiceEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 14911 return x.IndexedAt 14912 } 14913 14914 // GetName returns a pointer to the value of Name from ThirdPartyServiceEntityOutline 14915 func (x ThirdPartyServiceEntityOutline) GetName() string { 14916 return x.Name 14917 } 14918 14919 // GetPermalink returns a pointer to the value of Permalink from ThirdPartyServiceEntityOutline 14920 func (x ThirdPartyServiceEntityOutline) GetPermalink() string { 14921 return x.Permalink 14922 } 14923 14924 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from ThirdPartyServiceEntityOutline 14925 func (x ThirdPartyServiceEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 14926 return x.RecommendedServiceLevel 14927 } 14928 14929 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from ThirdPartyServiceEntityOutline 14930 func (x ThirdPartyServiceEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 14931 return x.RelatedDashboards 14932 } 14933 14934 // GetReporting returns a pointer to the value of Reporting from ThirdPartyServiceEntityOutline 14935 func (x ThirdPartyServiceEntityOutline) GetReporting() bool { 14936 return x.Reporting 14937 } 14938 14939 // GetServiceLevel returns a pointer to the value of ServiceLevel from ThirdPartyServiceEntityOutline 14940 func (x ThirdPartyServiceEntityOutline) GetServiceLevel() ServiceLevelDefinition { 14941 return x.ServiceLevel 14942 } 14943 14944 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from ThirdPartyServiceEntityOutline 14945 func (x ThirdPartyServiceEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 14946 return x.SummaryMetrics 14947 } 14948 14949 // GetTags returns a pointer to the value of Tags from ThirdPartyServiceEntityOutline 14950 func (x ThirdPartyServiceEntityOutline) GetTags() []EntityTag { 14951 return x.Tags 14952 } 14953 14954 // GetType returns a pointer to the value of Type from ThirdPartyServiceEntityOutline 14955 func (x ThirdPartyServiceEntityOutline) GetType() string { 14956 return x.Type 14957 } 14958 14959 // GetUiTemplates returns a pointer to the value of UiTemplates from ThirdPartyServiceEntityOutline 14960 func (x ThirdPartyServiceEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 14961 return x.UiTemplates 14962 } 14963 14964 func (x *ThirdPartyServiceEntityOutline) ImplementsAlertableEntityOutline() {} 14965 14966 func (x *ThirdPartyServiceEntityOutline) ImplementsEntityOutline() {} 14967 14968 func (x *ThirdPartyServiceEntityOutline) ImplementsThirdPartyServiceEntityOutline() {} 14969 14970 // TimeWindowInput - Represents a time window input. 14971 type TimeWindowInput struct { 14972 // The end time of the time window the number of milliseconds since the Unix epoch. 14973 EndTime *nrtime.EpochMilliseconds `json:"endTime"` 14974 // The start time of the time window the number of milliseconds since the Unix epoch. 14975 StartTime *nrtime.EpochMilliseconds `json:"startTime"` 14976 } 14977 14978 // UnavailableEntity - An entity that is unavailable. 14979 type UnavailableEntity struct { 14980 Account accounts.AccountOutline `json:"account,omitempty"` 14981 // The New Relic account ID associated with this entity. 14982 AccountID int `json:"accountId,omitempty"` 14983 // The current alerting severity of the entity. 14984 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 14985 // The alert status of the entity. 14986 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 14987 // Violations on the entity that were open during the specified time window. This will return up to 500 violations - if there are more in the time window selected, you must narrow the timewindow or look at fewer entities. 14988 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 14989 // The list of dashboard templates available for this entity. 14990 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 14991 // The entity's domain 14992 Domain string `json:"domain,omitempty"` 14993 // A value representing the combination of the entity's domain and type. 14994 EntityType EntityType `json:"entityType,omitempty"` 14995 // A unique entity identifier. 14996 GUID common.EntityGUID `json:"guid,omitempty"` 14997 // The list of golden metrics for a specific entity 14998 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 14999 // Existing API - to be replaced with V2 implementation. 15000 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 15001 // The stored golden signal(s) for the given entity. 15002 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 15003 // The list of golden tags for a specific entityType. 15004 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 15005 // The time the entity was indexed. 15006 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 15007 // Make an `Entity` scoped query to NRDB with a NRQL string. 15008 // 15009 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 15010 // 15011 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 15012 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 15013 // The name of this entity. 15014 Name string `json:"name,omitempty"` 15015 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 15016 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 15017 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 15018 // The url to the entity. 15019 Permalink string `json:"permalink,omitempty"` 15020 // Recent violations on the entity. 15021 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 15022 // The recommended service levels for the entity. 15023 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 15024 // Related dashboards results 15025 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 15026 // Related entities result with optional filtering. 15027 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 15028 // A list of the entities' relationships. 15029 // 15030 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 15031 Relationships []EntityRelationship `json:"relationships,omitempty"` 15032 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 15033 Reporting bool `json:"reporting,omitempty"` 15034 // The service level defined for the entity. 15035 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 15036 // The list of summary metrics. 15037 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 15038 // The tags applied to the entity. 15039 // 15040 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 15041 Tags []EntityTag `json:"tags,omitempty"` 15042 // The tags applied to the entity with their metadata. 15043 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 15044 // Look up Distributed Tracing summary data for the selected `EntityGuid` 15045 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 15046 // The entity's type 15047 Type string `json:"type,omitempty"` 15048 // List of templates availables for this entity. 15049 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 15050 } 15051 15052 // GetAccount returns a pointer to the value of Account from UnavailableEntity 15053 func (x UnavailableEntity) GetAccount() accounts.AccountOutline { 15054 return x.Account 15055 } 15056 15057 // GetAccountID returns a pointer to the value of AccountID from UnavailableEntity 15058 func (x UnavailableEntity) GetAccountID() int { 15059 return x.AccountID 15060 } 15061 15062 // GetAlertSeverity returns a pointer to the value of AlertSeverity from UnavailableEntity 15063 func (x UnavailableEntity) GetAlertSeverity() EntityAlertSeverity { 15064 return x.AlertSeverity 15065 } 15066 15067 // GetAlertStatus returns a pointer to the value of AlertStatus from UnavailableEntity 15068 func (x UnavailableEntity) GetAlertStatus() EntityAlertStatus { 15069 return x.AlertStatus 15070 } 15071 15072 // GetAlertViolations returns a pointer to the value of AlertViolations from UnavailableEntity 15073 func (x UnavailableEntity) GetAlertViolations() []EntityAlertViolation { 15074 return x.AlertViolations 15075 } 15076 15077 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from UnavailableEntity 15078 func (x UnavailableEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 15079 return x.DashboardTemplates 15080 } 15081 15082 // GetDomain returns a pointer to the value of Domain from UnavailableEntity 15083 func (x UnavailableEntity) GetDomain() string { 15084 return x.Domain 15085 } 15086 15087 // GetEntityType returns a pointer to the value of EntityType from UnavailableEntity 15088 func (x UnavailableEntity) GetEntityType() EntityType { 15089 return x.EntityType 15090 } 15091 15092 // GetGUID returns a pointer to the value of GUID from UnavailableEntity 15093 func (x UnavailableEntity) GetGUID() common.EntityGUID { 15094 return x.GUID 15095 } 15096 15097 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from UnavailableEntity 15098 func (x UnavailableEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 15099 return x.GoldenMetrics 15100 } 15101 15102 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from UnavailableEntity 15103 func (x UnavailableEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 15104 return x.GoldenSignalValues 15105 } 15106 15107 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from UnavailableEntity 15108 func (x UnavailableEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 15109 return x.GoldenSignalValuesV2 15110 } 15111 15112 // GetGoldenTags returns a pointer to the value of GoldenTags from UnavailableEntity 15113 func (x UnavailableEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 15114 return x.GoldenTags 15115 } 15116 15117 // GetIndexedAt returns a pointer to the value of IndexedAt from UnavailableEntity 15118 func (x UnavailableEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 15119 return x.IndexedAt 15120 } 15121 15122 // GetNRDBQuery returns a pointer to the value of NRDBQuery from UnavailableEntity 15123 func (x UnavailableEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 15124 return x.NRDBQuery 15125 } 15126 15127 // GetName returns a pointer to the value of Name from UnavailableEntity 15128 func (x UnavailableEntity) GetName() string { 15129 return x.Name 15130 } 15131 15132 // GetNerdStorage returns a pointer to the value of NerdStorage from UnavailableEntity 15133 func (x UnavailableEntity) GetNerdStorage() NerdStorageEntityScope { 15134 return x.NerdStorage 15135 } 15136 15137 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from UnavailableEntity 15138 func (x UnavailableEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 15139 return x.NerdStoreCollection 15140 } 15141 15142 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from UnavailableEntity 15143 func (x UnavailableEntity) GetNerdStoreDocument() NerdStoreDocument { 15144 return x.NerdStoreDocument 15145 } 15146 15147 // GetPermalink returns a pointer to the value of Permalink from UnavailableEntity 15148 func (x UnavailableEntity) GetPermalink() string { 15149 return x.Permalink 15150 } 15151 15152 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from UnavailableEntity 15153 func (x UnavailableEntity) GetRecentAlertViolations() []EntityAlertViolation { 15154 return x.RecentAlertViolations 15155 } 15156 15157 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from UnavailableEntity 15158 func (x UnavailableEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 15159 return x.RecommendedServiceLevel 15160 } 15161 15162 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from UnavailableEntity 15163 func (x UnavailableEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 15164 return x.RelatedDashboards 15165 } 15166 15167 // GetRelatedEntities returns a pointer to the value of RelatedEntities from UnavailableEntity 15168 func (x UnavailableEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 15169 return x.RelatedEntities 15170 } 15171 15172 // GetRelationships returns a pointer to the value of Relationships from UnavailableEntity 15173 func (x UnavailableEntity) GetRelationships() []EntityRelationship { 15174 return x.Relationships 15175 } 15176 15177 // GetReporting returns a pointer to the value of Reporting from UnavailableEntity 15178 func (x UnavailableEntity) GetReporting() bool { 15179 return x.Reporting 15180 } 15181 15182 // GetServiceLevel returns a pointer to the value of ServiceLevel from UnavailableEntity 15183 func (x UnavailableEntity) GetServiceLevel() ServiceLevelDefinition { 15184 return x.ServiceLevel 15185 } 15186 15187 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from UnavailableEntity 15188 func (x UnavailableEntity) GetSummaryMetrics() []EntitySummaryMetric { 15189 return x.SummaryMetrics 15190 } 15191 15192 // GetTags returns a pointer to the value of Tags from UnavailableEntity 15193 func (x UnavailableEntity) GetTags() []EntityTag { 15194 return x.Tags 15195 } 15196 15197 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from UnavailableEntity 15198 func (x UnavailableEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 15199 return x.TagsWithMetadata 15200 } 15201 15202 // GetTracingSummary returns a pointer to the value of TracingSummary from UnavailableEntity 15203 func (x UnavailableEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 15204 return x.TracingSummary 15205 } 15206 15207 // GetType returns a pointer to the value of Type from UnavailableEntity 15208 func (x UnavailableEntity) GetType() string { 15209 return x.Type 15210 } 15211 15212 // GetUiTemplates returns a pointer to the value of UiTemplates from UnavailableEntity 15213 func (x UnavailableEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 15214 return x.UiTemplates 15215 } 15216 15217 func (x *UnavailableEntity) ImplementsAlertableEntity() {} 15218 15219 func (x *UnavailableEntity) ImplementsEntity() {} 15220 15221 // UnavailableEntityOutline - An entity outline that is unavailable. 15222 type UnavailableEntityOutline struct { 15223 Account accounts.AccountOutline `json:"account,omitempty"` 15224 // The New Relic account ID associated with this entity. 15225 AccountID int `json:"accountId,omitempty"` 15226 // The current alerting severity of the entity. 15227 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 15228 // The alert status of the entity. 15229 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 15230 // The list of dashboard templates available for this entity. 15231 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 15232 // The entity's domain 15233 Domain string `json:"domain,omitempty"` 15234 // A value representing the combination of the entity's domain and type. 15235 EntityType EntityType `json:"entityType,omitempty"` 15236 // A unique entity identifier. 15237 GUID common.EntityGUID `json:"guid,omitempty"` 15238 // The list of golden metrics for a specific entity 15239 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 15240 // Existing API - to be replaced with V2 implementation. 15241 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 15242 // The stored golden signal(s) for the given entity. 15243 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 15244 // The list of golden tags for a specific entityType. 15245 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 15246 // The time the entity was indexed. 15247 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 15248 // The name of this entity. 15249 Name string `json:"name,omitempty"` 15250 // The url to the entity. 15251 Permalink string `json:"permalink,omitempty"` 15252 // The recommended service levels for the entity. 15253 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 15254 // Related dashboards results 15255 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 15256 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 15257 Reporting bool `json:"reporting,omitempty"` 15258 // The service level defined for the entity. 15259 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 15260 // The list of summary metrics. 15261 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 15262 // The tags applied to the entity. 15263 // 15264 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 15265 Tags []EntityTag `json:"tags,omitempty"` 15266 // The entity's type 15267 Type string `json:"type,omitempty"` 15268 // List of templates availables for this entity. 15269 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 15270 } 15271 15272 // GetAccount returns a pointer to the value of Account from UnavailableEntityOutline 15273 func (x UnavailableEntityOutline) GetAccount() accounts.AccountOutline { 15274 return x.Account 15275 } 15276 15277 // GetAccountID returns a pointer to the value of AccountID from UnavailableEntityOutline 15278 func (x UnavailableEntityOutline) GetAccountID() int { 15279 return x.AccountID 15280 } 15281 15282 // GetAlertSeverity returns a pointer to the value of AlertSeverity from UnavailableEntityOutline 15283 func (x UnavailableEntityOutline) GetAlertSeverity() EntityAlertSeverity { 15284 return x.AlertSeverity 15285 } 15286 15287 // GetAlertStatus returns a pointer to the value of AlertStatus from UnavailableEntityOutline 15288 func (x UnavailableEntityOutline) GetAlertStatus() EntityAlertStatus { 15289 return x.AlertStatus 15290 } 15291 15292 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from UnavailableEntityOutline 15293 func (x UnavailableEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 15294 return x.DashboardTemplates 15295 } 15296 15297 // GetDomain returns a pointer to the value of Domain from UnavailableEntityOutline 15298 func (x UnavailableEntityOutline) GetDomain() string { 15299 return x.Domain 15300 } 15301 15302 // GetEntityType returns a pointer to the value of EntityType from UnavailableEntityOutline 15303 func (x UnavailableEntityOutline) GetEntityType() EntityType { 15304 return x.EntityType 15305 } 15306 15307 // GetGUID returns a pointer to the value of GUID from UnavailableEntityOutline 15308 func (x UnavailableEntityOutline) GetGUID() common.EntityGUID { 15309 return x.GUID 15310 } 15311 15312 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from UnavailableEntityOutline 15313 func (x UnavailableEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 15314 return x.GoldenMetrics 15315 } 15316 15317 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from UnavailableEntityOutline 15318 func (x UnavailableEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 15319 return x.GoldenSignalValues 15320 } 15321 15322 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from UnavailableEntityOutline 15323 func (x UnavailableEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 15324 return x.GoldenSignalValuesV2 15325 } 15326 15327 // GetGoldenTags returns a pointer to the value of GoldenTags from UnavailableEntityOutline 15328 func (x UnavailableEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 15329 return x.GoldenTags 15330 } 15331 15332 // GetIndexedAt returns a pointer to the value of IndexedAt from UnavailableEntityOutline 15333 func (x UnavailableEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 15334 return x.IndexedAt 15335 } 15336 15337 // GetName returns a pointer to the value of Name from UnavailableEntityOutline 15338 func (x UnavailableEntityOutline) GetName() string { 15339 return x.Name 15340 } 15341 15342 // GetPermalink returns a pointer to the value of Permalink from UnavailableEntityOutline 15343 func (x UnavailableEntityOutline) GetPermalink() string { 15344 return x.Permalink 15345 } 15346 15347 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from UnavailableEntityOutline 15348 func (x UnavailableEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 15349 return x.RecommendedServiceLevel 15350 } 15351 15352 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from UnavailableEntityOutline 15353 func (x UnavailableEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 15354 return x.RelatedDashboards 15355 } 15356 15357 // GetReporting returns a pointer to the value of Reporting from UnavailableEntityOutline 15358 func (x UnavailableEntityOutline) GetReporting() bool { 15359 return x.Reporting 15360 } 15361 15362 // GetServiceLevel returns a pointer to the value of ServiceLevel from UnavailableEntityOutline 15363 func (x UnavailableEntityOutline) GetServiceLevel() ServiceLevelDefinition { 15364 return x.ServiceLevel 15365 } 15366 15367 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from UnavailableEntityOutline 15368 func (x UnavailableEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 15369 return x.SummaryMetrics 15370 } 15371 15372 // GetTags returns a pointer to the value of Tags from UnavailableEntityOutline 15373 func (x UnavailableEntityOutline) GetTags() []EntityTag { 15374 return x.Tags 15375 } 15376 15377 // GetType returns a pointer to the value of Type from UnavailableEntityOutline 15378 func (x UnavailableEntityOutline) GetType() string { 15379 return x.Type 15380 } 15381 15382 // GetUiTemplates returns a pointer to the value of UiTemplates from UnavailableEntityOutline 15383 func (x UnavailableEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 15384 return x.UiTemplates 15385 } 15386 15387 func (x *UnavailableEntityOutline) ImplementsAlertableEntityOutline() {} 15388 15389 func (x *UnavailableEntityOutline) ImplementsEntityOutline() {} 15390 15391 // WorkloadEntity - A workload entity. 15392 type WorkloadEntity struct { 15393 Account accounts.AccountOutline `json:"account,omitempty"` 15394 // The New Relic account ID associated with this entity. 15395 AccountID int `json:"accountId,omitempty"` 15396 // The current alerting severity of the workload entity. 15397 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 15398 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 15399 // Violations on the members of the workload that were open during the specified time window. 15400 AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"` 15401 Collection EntityCollection `json:"collection,omitempty"` 15402 // When the workload was created. 15403 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt,omitempty"` 15404 // The user that created the workload. 15405 CreatedByUser users.UserReference `json:"createdByUser,omitempty"` 15406 // The list of dashboard templates available for this entity. 15407 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 15408 // The entity's domain 15409 Domain string `json:"domain,omitempty"` 15410 // A value representing the combination of the entity's domain and type. 15411 EntityType EntityType `json:"entityType,omitempty"` 15412 // Retrieve metadata on a specific error group. 15413 ErrorGroup ErrorTrackingErrorGroup `json:"errorGroup,omitempty"` 15414 // Fetch the number of error groups counted within a given time range (default 3 hours). 15415 ErrorGroupCount ErrorTrackingErrorGroupCount `json:"errorGroupCount,omitempty"` 15416 // Fetch a list of error groups. 15417 ErrorGroupListing []ErrorTrackingErrorGroup `json:"errorGroupListing"` 15418 // The associated error group notification policy. 15419 ErrorGroupNotificationPolicy ErrorTrackingNotificationPolicy `json:"errorGroupNotificationPolicy,omitempty"` 15420 // A unique entity identifier. 15421 GUID common.EntityGUID `json:"guid,omitempty"` 15422 // The list of golden metrics for a specific entity 15423 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 15424 // Existing API - to be replaced with V2 implementation. 15425 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 15426 // The stored golden signal(s) for the given entity. 15427 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 15428 // The list of golden tags for a specific entityType. 15429 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 15430 // The time the entity was indexed. 15431 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 15432 // Make an `Entity` scoped query to NRDB with a NRQL string. 15433 // 15434 // A relevant `WHERE` clause will be added to your query to scope data to the entity in question. 15435 // 15436 // See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about generating a query string. 15437 NRDBQuery nrdb.NRDBResultContainer `json:"nrdbQuery,omitempty"` 15438 // The name of this entity. 15439 Name string `json:"name,omitempty"` 15440 NerdStorage NerdStorageEntityScope `json:"nerdStorage,omitempty"` 15441 NerdStoreCollection []NerdStoreCollectionMember `json:"nerdStoreCollection,omitempty"` 15442 NerdStoreDocument NerdStoreDocument `json:"nerdStoreDocument,omitempty"` 15443 // The url to the entity. 15444 Permalink string `json:"permalink,omitempty"` 15445 // Recent violations on the members of the workload. 15446 RecentAlertViolations []EntityAlertViolation `json:"recentAlertViolations,omitempty"` 15447 // The recommended service levels for the entity. 15448 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 15449 // Related dashboards results 15450 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 15451 // Related entities result with optional filtering. 15452 RelatedEntities EntityRelationshipRelatedEntitiesResult `json:"relatedEntities,omitempty"` 15453 // A list of the entities' relationships. 15454 // 15455 // For more information, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). 15456 Relationships []EntityRelationship `json:"relationships,omitempty"` 15457 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 15458 Reporting bool `json:"reporting,omitempty"` 15459 // The service level defined for the entity. 15460 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 15461 // The list of summary metrics. 15462 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 15463 // The tags applied to the entity. 15464 // 15465 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 15466 Tags []EntityTag `json:"tags,omitempty"` 15467 // The tags applied to the entity with their metadata. 15468 TagsWithMetadata []EntityTagWithMetadata `json:"tagsWithMetadata,omitempty"` 15469 // Look up Distributed Tracing summary data for the selected `EntityGuid` 15470 TracingSummary DistributedTracingEntityTracingSummary `json:"tracingSummary,omitempty"` 15471 // The entity's type 15472 Type string `json:"type,omitempty"` 15473 // List of templates availables for this entity. 15474 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 15475 // When the workload was last updated. 15476 UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` 15477 // Status of the workload. 15478 WorkloadStatus WorkloadStatus `json:"workloadStatus,omitempty"` 15479 } 15480 15481 // GetAccount returns a pointer to the value of Account from WorkloadEntity 15482 func (x WorkloadEntity) GetAccount() accounts.AccountOutline { 15483 return x.Account 15484 } 15485 15486 // GetAccountID returns a pointer to the value of AccountID from WorkloadEntity 15487 func (x WorkloadEntity) GetAccountID() int { 15488 return x.AccountID 15489 } 15490 15491 // GetAlertSeverity returns a pointer to the value of AlertSeverity from WorkloadEntity 15492 func (x WorkloadEntity) GetAlertSeverity() EntityAlertSeverity { 15493 return x.AlertSeverity 15494 } 15495 15496 // GetAlertStatus returns a pointer to the value of AlertStatus from WorkloadEntity 15497 func (x WorkloadEntity) GetAlertStatus() EntityAlertStatus { 15498 return x.AlertStatus 15499 } 15500 15501 // GetAlertViolations returns a pointer to the value of AlertViolations from WorkloadEntity 15502 func (x WorkloadEntity) GetAlertViolations() []EntityAlertViolation { 15503 return x.AlertViolations 15504 } 15505 15506 // GetCollection returns a pointer to the value of Collection from WorkloadEntity 15507 func (x WorkloadEntity) GetCollection() EntityCollection { 15508 return x.Collection 15509 } 15510 15511 // GetCreatedAt returns a pointer to the value of CreatedAt from WorkloadEntity 15512 func (x WorkloadEntity) GetCreatedAt() *nrtime.EpochMilliseconds { 15513 return x.CreatedAt 15514 } 15515 15516 // GetCreatedByUser returns a pointer to the value of CreatedByUser from WorkloadEntity 15517 func (x WorkloadEntity) GetCreatedByUser() users.UserReference { 15518 return x.CreatedByUser 15519 } 15520 15521 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from WorkloadEntity 15522 func (x WorkloadEntity) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 15523 return x.DashboardTemplates 15524 } 15525 15526 // GetDomain returns a pointer to the value of Domain from WorkloadEntity 15527 func (x WorkloadEntity) GetDomain() string { 15528 return x.Domain 15529 } 15530 15531 // GetEntityType returns a pointer to the value of EntityType from WorkloadEntity 15532 func (x WorkloadEntity) GetEntityType() EntityType { 15533 return x.EntityType 15534 } 15535 15536 // GetErrorGroup returns a pointer to the value of ErrorGroup from WorkloadEntity 15537 func (x WorkloadEntity) GetErrorGroup() ErrorTrackingErrorGroup { 15538 return x.ErrorGroup 15539 } 15540 15541 // GetErrorGroupCount returns a pointer to the value of ErrorGroupCount from WorkloadEntity 15542 func (x WorkloadEntity) GetErrorGroupCount() ErrorTrackingErrorGroupCount { 15543 return x.ErrorGroupCount 15544 } 15545 15546 // GetErrorGroupListing returns a pointer to the value of ErrorGroupListing from WorkloadEntity 15547 func (x WorkloadEntity) GetErrorGroupListing() []ErrorTrackingErrorGroup { 15548 return x.ErrorGroupListing 15549 } 15550 15551 // GetErrorGroupNotificationPolicy returns a pointer to the value of ErrorGroupNotificationPolicy from WorkloadEntity 15552 func (x WorkloadEntity) GetErrorGroupNotificationPolicy() ErrorTrackingNotificationPolicy { 15553 return x.ErrorGroupNotificationPolicy 15554 } 15555 15556 // GetGUID returns a pointer to the value of GUID from WorkloadEntity 15557 func (x WorkloadEntity) GetGUID() common.EntityGUID { 15558 return x.GUID 15559 } 15560 15561 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from WorkloadEntity 15562 func (x WorkloadEntity) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 15563 return x.GoldenMetrics 15564 } 15565 15566 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from WorkloadEntity 15567 func (x WorkloadEntity) GetGoldenSignalValues() []GoldenSignalSignalValues { 15568 return x.GoldenSignalValues 15569 } 15570 15571 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from WorkloadEntity 15572 func (x WorkloadEntity) GetGoldenSignalValuesV2() GoldenSignalValues { 15573 return x.GoldenSignalValuesV2 15574 } 15575 15576 // GetGoldenTags returns a pointer to the value of GoldenTags from WorkloadEntity 15577 func (x WorkloadEntity) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 15578 return x.GoldenTags 15579 } 15580 15581 // GetIndexedAt returns a pointer to the value of IndexedAt from WorkloadEntity 15582 func (x WorkloadEntity) GetIndexedAt() *nrtime.EpochMilliseconds { 15583 return x.IndexedAt 15584 } 15585 15586 // GetNRDBQuery returns a pointer to the value of NRDBQuery from WorkloadEntity 15587 func (x WorkloadEntity) GetNRDBQuery() nrdb.NRDBResultContainer { 15588 return x.NRDBQuery 15589 } 15590 15591 // GetName returns a pointer to the value of Name from WorkloadEntity 15592 func (x WorkloadEntity) GetName() string { 15593 return x.Name 15594 } 15595 15596 // GetNerdStorage returns a pointer to the value of NerdStorage from WorkloadEntity 15597 func (x WorkloadEntity) GetNerdStorage() NerdStorageEntityScope { 15598 return x.NerdStorage 15599 } 15600 15601 // GetNerdStoreCollection returns a pointer to the value of NerdStoreCollection from WorkloadEntity 15602 func (x WorkloadEntity) GetNerdStoreCollection() []NerdStoreCollectionMember { 15603 return x.NerdStoreCollection 15604 } 15605 15606 // GetNerdStoreDocument returns a pointer to the value of NerdStoreDocument from WorkloadEntity 15607 func (x WorkloadEntity) GetNerdStoreDocument() NerdStoreDocument { 15608 return x.NerdStoreDocument 15609 } 15610 15611 // GetPermalink returns a pointer to the value of Permalink from WorkloadEntity 15612 func (x WorkloadEntity) GetPermalink() string { 15613 return x.Permalink 15614 } 15615 15616 // GetRecentAlertViolations returns a pointer to the value of RecentAlertViolations from WorkloadEntity 15617 func (x WorkloadEntity) GetRecentAlertViolations() []EntityAlertViolation { 15618 return x.RecentAlertViolations 15619 } 15620 15621 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from WorkloadEntity 15622 func (x WorkloadEntity) GetRecommendedServiceLevel() ServiceLevelRecommendation { 15623 return x.RecommendedServiceLevel 15624 } 15625 15626 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from WorkloadEntity 15627 func (x WorkloadEntity) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 15628 return x.RelatedDashboards 15629 } 15630 15631 // GetRelatedEntities returns a pointer to the value of RelatedEntities from WorkloadEntity 15632 func (x WorkloadEntity) GetRelatedEntities() EntityRelationshipRelatedEntitiesResult { 15633 return x.RelatedEntities 15634 } 15635 15636 // GetRelationships returns a pointer to the value of Relationships from WorkloadEntity 15637 func (x WorkloadEntity) GetRelationships() []EntityRelationship { 15638 return x.Relationships 15639 } 15640 15641 // GetReporting returns a pointer to the value of Reporting from WorkloadEntity 15642 func (x WorkloadEntity) GetReporting() bool { 15643 return x.Reporting 15644 } 15645 15646 // GetServiceLevel returns a pointer to the value of ServiceLevel from WorkloadEntity 15647 func (x WorkloadEntity) GetServiceLevel() ServiceLevelDefinition { 15648 return x.ServiceLevel 15649 } 15650 15651 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from WorkloadEntity 15652 func (x WorkloadEntity) GetSummaryMetrics() []EntitySummaryMetric { 15653 return x.SummaryMetrics 15654 } 15655 15656 // GetTags returns a pointer to the value of Tags from WorkloadEntity 15657 func (x WorkloadEntity) GetTags() []EntityTag { 15658 return x.Tags 15659 } 15660 15661 // GetTagsWithMetadata returns a pointer to the value of TagsWithMetadata from WorkloadEntity 15662 func (x WorkloadEntity) GetTagsWithMetadata() []EntityTagWithMetadata { 15663 return x.TagsWithMetadata 15664 } 15665 15666 // GetTracingSummary returns a pointer to the value of TracingSummary from WorkloadEntity 15667 func (x WorkloadEntity) GetTracingSummary() DistributedTracingEntityTracingSummary { 15668 return x.TracingSummary 15669 } 15670 15671 // GetType returns a pointer to the value of Type from WorkloadEntity 15672 func (x WorkloadEntity) GetType() string { 15673 return x.Type 15674 } 15675 15676 // GetUiTemplates returns a pointer to the value of UiTemplates from WorkloadEntity 15677 func (x WorkloadEntity) GetUiTemplates() []EntityDashboardTemplatesUi { 15678 return x.UiTemplates 15679 } 15680 15681 // GetUpdatedAt returns a pointer to the value of UpdatedAt from WorkloadEntity 15682 func (x WorkloadEntity) GetUpdatedAt() *nrtime.EpochMilliseconds { 15683 return x.UpdatedAt 15684 } 15685 15686 // GetWorkloadStatus returns a pointer to the value of WorkloadStatus from WorkloadEntity 15687 func (x WorkloadEntity) GetWorkloadStatus() WorkloadStatus { 15688 return x.WorkloadStatus 15689 } 15690 15691 func (x *WorkloadEntity) ImplementsAlertableEntity() {} 15692 15693 func (x *WorkloadEntity) ImplementsCollectionEntity() {} 15694 15695 func (x *WorkloadEntity) ImplementsEntity() {} 15696 15697 // WorkloadEntityOutline - A workload entity outline. 15698 type WorkloadEntityOutline struct { 15699 Account accounts.AccountOutline `json:"account,omitempty"` 15700 // The New Relic account ID associated with this entity. 15701 AccountID int `json:"accountId,omitempty"` 15702 // The current alerting severity of the workload entity. 15703 AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` 15704 AlertStatus EntityAlertStatus `json:"alertStatus,omitempty"` 15705 // When the workload was created. 15706 CreatedAt *nrtime.EpochMilliseconds `json:"createdAt,omitempty"` 15707 // The user that created the workload. 15708 CreatedByUser users.UserReference `json:"createdByUser,omitempty"` 15709 // The list of dashboard templates available for this entity. 15710 DashboardTemplates []EntityDashboardTemplatesDashboardTemplate `json:"dashboardTemplates"` 15711 // The entity's domain 15712 Domain string `json:"domain,omitempty"` 15713 // A value representing the combination of the entity's domain and type. 15714 EntityType EntityType `json:"entityType,omitempty"` 15715 // A unique entity identifier. 15716 GUID common.EntityGUID `json:"guid,omitempty"` 15717 // The list of golden metrics for a specific entity 15718 GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` 15719 // Existing API - to be replaced with V2 implementation. 15720 GoldenSignalValues []GoldenSignalSignalValues `json:"goldenSignalValues"` 15721 // The stored golden signal(s) for the given entity. 15722 GoldenSignalValuesV2 GoldenSignalValues `json:"goldenSignalValuesV2,omitempty"` 15723 // The list of golden tags for a specific entityType. 15724 GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` 15725 // The time the entity was indexed. 15726 IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` 15727 // The name of this entity. 15728 Name string `json:"name,omitempty"` 15729 // The url to the entity. 15730 Permalink string `json:"permalink,omitempty"` 15731 // The recommended service levels for the entity. 15732 RecommendedServiceLevel ServiceLevelRecommendation `json:"recommendedServiceLevel,omitempty"` 15733 // Related dashboards results 15734 RelatedDashboards RelatedDashboardsRelatedDashboardResult `json:"relatedDashboards"` 15735 // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. 15736 Reporting bool `json:"reporting,omitempty"` 15737 // The service level defined for the entity. 15738 ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` 15739 // The list of summary metrics. 15740 SummaryMetrics []EntitySummaryMetric `json:"summaryMetrics,omitempty"` 15741 // The tags applied to the entity. 15742 // 15743 // For details on tags, as well as query and mutation examples, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-tagging-api-tutorial). 15744 Tags []EntityTag `json:"tags,omitempty"` 15745 // The entity's type 15746 Type string `json:"type,omitempty"` 15747 // List of templates availables for this entity. 15748 UiTemplates []EntityDashboardTemplatesUi `json:"uiTemplates"` 15749 // When the workload was last updated. 15750 UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` 15751 // Status of the workload. 15752 WorkloadStatus WorkloadStatus `json:"workloadStatus,omitempty"` 15753 } 15754 15755 // GetAccount returns a pointer to the value of Account from WorkloadEntityOutline 15756 func (x WorkloadEntityOutline) GetAccount() accounts.AccountOutline { 15757 return x.Account 15758 } 15759 15760 // GetAccountID returns a pointer to the value of AccountID from WorkloadEntityOutline 15761 func (x WorkloadEntityOutline) GetAccountID() int { 15762 return x.AccountID 15763 } 15764 15765 // GetAlertSeverity returns a pointer to the value of AlertSeverity from WorkloadEntityOutline 15766 func (x WorkloadEntityOutline) GetAlertSeverity() EntityAlertSeverity { 15767 return x.AlertSeverity 15768 } 15769 15770 // GetAlertStatus returns a pointer to the value of AlertStatus from WorkloadEntityOutline 15771 func (x WorkloadEntityOutline) GetAlertStatus() EntityAlertStatus { 15772 return x.AlertStatus 15773 } 15774 15775 // GetCreatedAt returns a pointer to the value of CreatedAt from WorkloadEntityOutline 15776 func (x WorkloadEntityOutline) GetCreatedAt() *nrtime.EpochMilliseconds { 15777 return x.CreatedAt 15778 } 15779 15780 // GetCreatedByUser returns a pointer to the value of CreatedByUser from WorkloadEntityOutline 15781 func (x WorkloadEntityOutline) GetCreatedByUser() users.UserReference { 15782 return x.CreatedByUser 15783 } 15784 15785 // GetDashboardTemplates returns a pointer to the value of DashboardTemplates from WorkloadEntityOutline 15786 func (x WorkloadEntityOutline) GetDashboardTemplates() []EntityDashboardTemplatesDashboardTemplate { 15787 return x.DashboardTemplates 15788 } 15789 15790 // GetDomain returns a pointer to the value of Domain from WorkloadEntityOutline 15791 func (x WorkloadEntityOutline) GetDomain() string { 15792 return x.Domain 15793 } 15794 15795 // GetEntityType returns a pointer to the value of EntityType from WorkloadEntityOutline 15796 func (x WorkloadEntityOutline) GetEntityType() EntityType { 15797 return x.EntityType 15798 } 15799 15800 // GetGUID returns a pointer to the value of GUID from WorkloadEntityOutline 15801 func (x WorkloadEntityOutline) GetGUID() common.EntityGUID { 15802 return x.GUID 15803 } 15804 15805 // GetGoldenMetrics returns a pointer to the value of GoldenMetrics from WorkloadEntityOutline 15806 func (x WorkloadEntityOutline) GetGoldenMetrics() EntityGoldenContextScopedGoldenMetrics { 15807 return x.GoldenMetrics 15808 } 15809 15810 // GetGoldenSignalValues returns a pointer to the value of GoldenSignalValues from WorkloadEntityOutline 15811 func (x WorkloadEntityOutline) GetGoldenSignalValues() []GoldenSignalSignalValues { 15812 return x.GoldenSignalValues 15813 } 15814 15815 // GetGoldenSignalValuesV2 returns a pointer to the value of GoldenSignalValuesV2 from WorkloadEntityOutline 15816 func (x WorkloadEntityOutline) GetGoldenSignalValuesV2() GoldenSignalValues { 15817 return x.GoldenSignalValuesV2 15818 } 15819 15820 // GetGoldenTags returns a pointer to the value of GoldenTags from WorkloadEntityOutline 15821 func (x WorkloadEntityOutline) GetGoldenTags() EntityGoldenContextScopedGoldenTags { 15822 return x.GoldenTags 15823 } 15824 15825 // GetIndexedAt returns a pointer to the value of IndexedAt from WorkloadEntityOutline 15826 func (x WorkloadEntityOutline) GetIndexedAt() *nrtime.EpochMilliseconds { 15827 return x.IndexedAt 15828 } 15829 15830 // GetName returns a pointer to the value of Name from WorkloadEntityOutline 15831 func (x WorkloadEntityOutline) GetName() string { 15832 return x.Name 15833 } 15834 15835 // GetPermalink returns a pointer to the value of Permalink from WorkloadEntityOutline 15836 func (x WorkloadEntityOutline) GetPermalink() string { 15837 return x.Permalink 15838 } 15839 15840 // GetRecommendedServiceLevel returns a pointer to the value of RecommendedServiceLevel from WorkloadEntityOutline 15841 func (x WorkloadEntityOutline) GetRecommendedServiceLevel() ServiceLevelRecommendation { 15842 return x.RecommendedServiceLevel 15843 } 15844 15845 // GetRelatedDashboards returns a pointer to the value of RelatedDashboards from WorkloadEntityOutline 15846 func (x WorkloadEntityOutline) GetRelatedDashboards() RelatedDashboardsRelatedDashboardResult { 15847 return x.RelatedDashboards 15848 } 15849 15850 // GetReporting returns a pointer to the value of Reporting from WorkloadEntityOutline 15851 func (x WorkloadEntityOutline) GetReporting() bool { 15852 return x.Reporting 15853 } 15854 15855 // GetServiceLevel returns a pointer to the value of ServiceLevel from WorkloadEntityOutline 15856 func (x WorkloadEntityOutline) GetServiceLevel() ServiceLevelDefinition { 15857 return x.ServiceLevel 15858 } 15859 15860 // GetSummaryMetrics returns a pointer to the value of SummaryMetrics from WorkloadEntityOutline 15861 func (x WorkloadEntityOutline) GetSummaryMetrics() []EntitySummaryMetric { 15862 return x.SummaryMetrics 15863 } 15864 15865 // GetTags returns a pointer to the value of Tags from WorkloadEntityOutline 15866 func (x WorkloadEntityOutline) GetTags() []EntityTag { 15867 return x.Tags 15868 } 15869 15870 // GetType returns a pointer to the value of Type from WorkloadEntityOutline 15871 func (x WorkloadEntityOutline) GetType() string { 15872 return x.Type 15873 } 15874 15875 // GetUiTemplates returns a pointer to the value of UiTemplates from WorkloadEntityOutline 15876 func (x WorkloadEntityOutline) GetUiTemplates() []EntityDashboardTemplatesUi { 15877 return x.UiTemplates 15878 } 15879 15880 // GetUpdatedAt returns a pointer to the value of UpdatedAt from WorkloadEntityOutline 15881 func (x WorkloadEntityOutline) GetUpdatedAt() *nrtime.EpochMilliseconds { 15882 return x.UpdatedAt 15883 } 15884 15885 // GetWorkloadStatus returns a pointer to the value of WorkloadStatus from WorkloadEntityOutline 15886 func (x WorkloadEntityOutline) GetWorkloadStatus() WorkloadStatus { 15887 return x.WorkloadStatus 15888 } 15889 15890 func (x *WorkloadEntityOutline) ImplementsAlertableEntityOutline() {} 15891 15892 func (x *WorkloadEntityOutline) ImplementsEntityOutline() {} 15893 15894 // WorkloadEntityRef - A reference to a New Relic entity. 15895 type WorkloadEntityRef struct { 15896 // The unique entity identifier in New Relic. 15897 GUID common.EntityGUID `json:"guid,omitempty"` 15898 } 15899 15900 // WorkloadStatus - Detailed information about the status of a workload. 15901 type WorkloadStatus struct { 15902 // A description that provides additional details about the status of the workload. 15903 Description string `json:"description,omitempty"` 15904 // Indicates where the status value derives from. 15905 StatusSource WorkloadStatusSource `json:"statusSource,omitempty"` 15906 // The status of the workload. 15907 StatusValue WorkloadStatusValue `json:"statusValue,omitempty"` 15908 // A short description of the status of the workload. 15909 Summary string `json:"summary,omitempty"` 15910 } 15911 15912 type entitiesResponse struct { 15913 Actor Actor `json:"actor"` 15914 } 15915 15916 type entityResponse struct { 15917 Actor Actor `json:"actor"` 15918 } 15919 15920 type entitySearchResponse struct { 15921 Actor Actor `json:"actor"` 15922 } 15923 15924 // AgentApplicationSettingsErrorCollectorHttpStatus - A list of HTTP status codes and/or status code ranges, such as "404" or "500-599" 15925 type AgentApplicationSettingsErrorCollectorHttpStatus string 15926 15927 // AgentTracesExplainPlanRow - This scalar represents a explain plan row (list of values) 15928 type AgentTracesExplainPlanRow string 15929 15930 // AgentTracesQueryParameters - This scalar represents a map of sql query parameters in the form of key-value pairs. 15931 type AgentTracesQueryParameters string 15932 15933 // AgentTracesTraceAttributes - This scalar represents a map of attributes in the form of key-value pairs. 15934 type AgentTracesTraceAttributes string 15935 15936 // AttributeMap - This scalar represents a map of attributes in the form of key-value pairs. 15937 type AttributeMap map[string]interface{} 15938 15939 // DashboardEncodedInfraFilterSet - Encoded infra filter set 15940 type DashboardEncodedInfraFilterSet string 15941 15942 // DashboardWidgetRawConfiguration - Raw JSON payload with full configuration of a widget. 15943 type DashboardWidgetRawConfiguration []byte 15944 15945 // EntityDashboardTemplatesRawMosaicTemplate - Dashboard template in Mosaic format, obtained from a dashboard template located in the Entity Synthesis Definitions repository. 15946 type EntityDashboardTemplatesRawMosaicTemplate string 15947 15948 // Float - The `Float` scalar type represents signed double-precision fractional 15949 // values as specified by 15950 // [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). 15951 type Float string 15952 15953 // Milliseconds - The `Milliseconds` scalar represents a duration in milliseconds 15954 type Milliseconds string 15955 15956 // NerdStorageDocument - This scalar represents a NerdStorage document. 15957 type NerdStorageDocument string 15958 15959 // NerdStoreDocument - This scalar represents a NerdStore document. 15960 type NerdStoreDocument string 15961 15962 // AiNotificationsAuth - Authentication interface 15963 type AiNotificationsAuthInterface interface { 15964 ImplementsAiNotificationsAuth() 15965 } 15966 15967 // UnmarshalAiNotificationsAuthInterface unmarshals the interface into the correct type 15968 // based on __typename provided by GraphQL 15969 func UnmarshalAiNotificationsAuthInterface(b []byte) (*AiNotificationsAuthInterface, error) { 15970 var err error 15971 15972 var rawMessageAiNotificationsAuth map[string]*json.RawMessage 15973 err = json.Unmarshal(b, &rawMessageAiNotificationsAuth) 15974 if err != nil { 15975 return nil, err 15976 } 15977 15978 // Nothing to unmarshal 15979 if len(rawMessageAiNotificationsAuth) < 1 { 15980 return nil, nil 15981 } 15982 15983 var typeName string 15984 15985 if rawTypeName, ok := rawMessageAiNotificationsAuth["__typename"]; ok { 15986 err = json.Unmarshal(*rawTypeName, &typeName) 15987 if err != nil { 15988 return nil, err 15989 } 15990 15991 switch typeName { 15992 case "AiNotificationsBasicAuth": 15993 var interfaceType ai.AiNotificationsBasicAuth 15994 err = json.Unmarshal(b, &interfaceType) 15995 if err != nil { 15996 return nil, err 15997 } 15998 15999 var xxx AiNotificationsAuthInterface = &interfaceType 16000 16001 return &xxx, nil 16002 case "AiNotificationsTokenAuth": 16003 var interfaceType ai.AiNotificationsTokenAuth 16004 err = json.Unmarshal(b, &interfaceType) 16005 if err != nil { 16006 return nil, err 16007 } 16008 16009 var xxx AiNotificationsAuthInterface = &interfaceType 16010 16011 return &xxx, nil 16012 } 16013 } else { 16014 keys := []string{} 16015 for k := range rawMessageAiNotificationsAuth { 16016 keys = append(keys, k) 16017 } 16018 return nil, fmt.Errorf("interface AiNotificationsAuth did not include a __typename field for inspection: %s", keys) 16019 } 16020 16021 return nil, fmt.Errorf("interface AiNotificationsAuth was not matched against all PossibleTypes: %s", typeName) 16022 } 16023 16024 // AiWorkflowsConfiguration - Enrichment configuration object 16025 type AiWorkflowsConfigurationInterface interface { 16026 ImplementsAiWorkflowsConfiguration() 16027 } 16028 16029 // UnmarshalAiWorkflowsConfigurationInterface unmarshals the interface into the correct type 16030 // based on __typename provided by GraphQL 16031 func UnmarshalAiWorkflowsConfigurationInterface(b []byte) (*AiWorkflowsConfigurationInterface, error) { 16032 var err error 16033 16034 var rawMessageAiWorkflowsConfiguration map[string]*json.RawMessage 16035 err = json.Unmarshal(b, &rawMessageAiWorkflowsConfiguration) 16036 if err != nil { 16037 return nil, err 16038 } 16039 16040 // Nothing to unmarshal 16041 if len(rawMessageAiWorkflowsConfiguration) < 1 { 16042 return nil, nil 16043 } 16044 16045 var typeName string 16046 16047 if rawTypeName, ok := rawMessageAiWorkflowsConfiguration["__typename"]; ok { 16048 err = json.Unmarshal(*rawTypeName, &typeName) 16049 if err != nil { 16050 return nil, err 16051 } 16052 16053 switch typeName { 16054 case "AiWorkflowsNrqlConfiguration": 16055 var interfaceType ai.AiWorkflowsNRQLConfiguration 16056 err = json.Unmarshal(b, &interfaceType) 16057 if err != nil { 16058 return nil, err 16059 } 16060 16061 var xxx AiWorkflowsConfigurationInterface = &interfaceType 16062 16063 return &xxx, nil 16064 } 16065 } else { 16066 keys := []string{} 16067 for k := range rawMessageAiWorkflowsConfiguration { 16068 keys = append(keys, k) 16069 } 16070 return nil, fmt.Errorf("interface AiWorkflowsConfiguration did not include a __typename field for inspection: %s", keys) 16071 } 16072 16073 return nil, fmt.Errorf("interface AiWorkflowsConfiguration was not matched against all PossibleTypes: %s", typeName) 16074 } 16075 16076 type AlertableEntityInterface interface { 16077 ImplementsAlertableEntity() 16078 } 16079 16080 // UnmarshalAlertableEntityInterface unmarshals the interface into the correct type 16081 // based on __typename provided by GraphQL 16082 func UnmarshalAlertableEntityInterface(b []byte) (*AlertableEntityInterface, error) { 16083 var err error 16084 16085 var rawMessageAlertableEntity map[string]*json.RawMessage 16086 err = json.Unmarshal(b, &rawMessageAlertableEntity) 16087 if err != nil { 16088 return nil, err 16089 } 16090 16091 // Nothing to unmarshal 16092 if len(rawMessageAlertableEntity) < 1 { 16093 return nil, nil 16094 } 16095 16096 var typeName string 16097 16098 if rawTypeName, ok := rawMessageAlertableEntity["__typename"]; ok { 16099 err = json.Unmarshal(*rawTypeName, &typeName) 16100 if err != nil { 16101 return nil, err 16102 } 16103 16104 switch typeName { 16105 case "ApmAgentInstrumentedServiceEntity": 16106 var interfaceType ApmAgentInstrumentedServiceEntity 16107 err = json.Unmarshal(b, &interfaceType) 16108 if err != nil { 16109 return nil, err 16110 } 16111 16112 var xxx AlertableEntityInterface = &interfaceType 16113 16114 return &xxx, nil 16115 case "ApmApplicationEntity": 16116 var interfaceType ApmApplicationEntity 16117 err = json.Unmarshal(b, &interfaceType) 16118 if err != nil { 16119 return nil, err 16120 } 16121 16122 var xxx AlertableEntityInterface = &interfaceType 16123 16124 return &xxx, nil 16125 case "ApmDatabaseInstanceEntity": 16126 var interfaceType ApmDatabaseInstanceEntity 16127 err = json.Unmarshal(b, &interfaceType) 16128 if err != nil { 16129 return nil, err 16130 } 16131 16132 var xxx AlertableEntityInterface = &interfaceType 16133 16134 return &xxx, nil 16135 case "ApmExternalServiceEntity": 16136 var interfaceType ApmExternalServiceEntity 16137 err = json.Unmarshal(b, &interfaceType) 16138 if err != nil { 16139 return nil, err 16140 } 16141 16142 var xxx AlertableEntityInterface = &interfaceType 16143 16144 return &xxx, nil 16145 case "BrowserApplicationEntity": 16146 var interfaceType BrowserApplicationEntity 16147 err = json.Unmarshal(b, &interfaceType) 16148 if err != nil { 16149 return nil, err 16150 } 16151 16152 var xxx AlertableEntityInterface = &interfaceType 16153 16154 return &xxx, nil 16155 case "DashboardEntity": 16156 var interfaceType DashboardEntity 16157 err = json.Unmarshal(b, &interfaceType) 16158 if err != nil { 16159 return nil, err 16160 } 16161 16162 var xxx AlertableEntityInterface = &interfaceType 16163 16164 return &xxx, nil 16165 case "Entity": 16166 var interfaceType Entity 16167 err = json.Unmarshal(b, &interfaceType) 16168 if err != nil { 16169 return nil, err 16170 } 16171 16172 var xxx AlertableEntityInterface = &interfaceType 16173 16174 return &xxx, nil 16175 case "ExternalEntity": 16176 var interfaceType ExternalEntity 16177 err = json.Unmarshal(b, &interfaceType) 16178 if err != nil { 16179 return nil, err 16180 } 16181 16182 var xxx AlertableEntityInterface = &interfaceType 16183 16184 return &xxx, nil 16185 case "GenericEntity": 16186 var interfaceType GenericEntity 16187 err = json.Unmarshal(b, &interfaceType) 16188 if err != nil { 16189 return nil, err 16190 } 16191 16192 var xxx AlertableEntityInterface = &interfaceType 16193 16194 return &xxx, nil 16195 case "GenericInfrastructureEntity": 16196 var interfaceType GenericInfrastructureEntity 16197 err = json.Unmarshal(b, &interfaceType) 16198 if err != nil { 16199 return nil, err 16200 } 16201 16202 var xxx AlertableEntityInterface = &interfaceType 16203 16204 return &xxx, nil 16205 case "GenericServiceEntity": 16206 var interfaceType GenericServiceEntity 16207 err = json.Unmarshal(b, &interfaceType) 16208 if err != nil { 16209 return nil, err 16210 } 16211 16212 var xxx AlertableEntityInterface = &interfaceType 16213 16214 return &xxx, nil 16215 case "InfrastructureAwsLambdaFunctionEntity": 16216 var interfaceType InfrastructureAwsLambdaFunctionEntity 16217 err = json.Unmarshal(b, &interfaceType) 16218 if err != nil { 16219 return nil, err 16220 } 16221 16222 var xxx AlertableEntityInterface = &interfaceType 16223 16224 return &xxx, nil 16225 case "InfrastructureHostEntity": 16226 var interfaceType InfrastructureHostEntity 16227 err = json.Unmarshal(b, &interfaceType) 16228 if err != nil { 16229 return nil, err 16230 } 16231 16232 var xxx AlertableEntityInterface = &interfaceType 16233 16234 return &xxx, nil 16235 case "MobileApplicationEntity": 16236 var interfaceType MobileApplicationEntity 16237 err = json.Unmarshal(b, &interfaceType) 16238 if err != nil { 16239 return nil, err 16240 } 16241 16242 var xxx AlertableEntityInterface = &interfaceType 16243 16244 return &xxx, nil 16245 case "SecureCredentialEntity": 16246 var interfaceType SecureCredentialEntity 16247 err = json.Unmarshal(b, &interfaceType) 16248 if err != nil { 16249 return nil, err 16250 } 16251 16252 var xxx AlertableEntityInterface = &interfaceType 16253 16254 return &xxx, nil 16255 case "ServiceEntity": 16256 var interfaceType ServiceEntity 16257 err = json.Unmarshal(b, &interfaceType) 16258 if err != nil { 16259 return nil, err 16260 } 16261 16262 var xxx AlertableEntityInterface = &interfaceType 16263 16264 return &xxx, nil 16265 case "SyntheticMonitorEntity": 16266 var interfaceType SyntheticMonitorEntity 16267 err = json.Unmarshal(b, &interfaceType) 16268 if err != nil { 16269 return nil, err 16270 } 16271 16272 var xxx AlertableEntityInterface = &interfaceType 16273 16274 return &xxx, nil 16275 case "ThirdPartyServiceEntity": 16276 var interfaceType ThirdPartyServiceEntity 16277 err = json.Unmarshal(b, &interfaceType) 16278 if err != nil { 16279 return nil, err 16280 } 16281 16282 var xxx AlertableEntityInterface = &interfaceType 16283 16284 return &xxx, nil 16285 case "UnavailableEntity": 16286 var interfaceType UnavailableEntity 16287 err = json.Unmarshal(b, &interfaceType) 16288 if err != nil { 16289 return nil, err 16290 } 16291 16292 var xxx AlertableEntityInterface = &interfaceType 16293 16294 return &xxx, nil 16295 case "WorkloadEntity": 16296 var interfaceType WorkloadEntity 16297 err = json.Unmarshal(b, &interfaceType) 16298 if err != nil { 16299 return nil, err 16300 } 16301 16302 var xxx AlertableEntityInterface = &interfaceType 16303 16304 return &xxx, nil 16305 } 16306 } else { 16307 keys := []string{} 16308 for k := range rawMessageAlertableEntity { 16309 keys = append(keys, k) 16310 } 16311 return nil, fmt.Errorf("interface AlertableEntity did not include a __typename field for inspection: %s", keys) 16312 } 16313 16314 return nil, fmt.Errorf("interface AlertableEntity was not matched against all PossibleTypes: %s", typeName) 16315 } 16316 16317 type AlertableEntityOutlineInterface interface { 16318 ImplementsAlertableEntityOutline() 16319 } 16320 16321 // UnmarshalAlertableEntityOutlineInterface unmarshals the interface into the correct type 16322 // based on __typename provided by GraphQL 16323 func UnmarshalAlertableEntityOutlineInterface(b []byte) (*AlertableEntityOutlineInterface, error) { 16324 var err error 16325 16326 var rawMessageAlertableEntityOutline map[string]*json.RawMessage 16327 err = json.Unmarshal(b, &rawMessageAlertableEntityOutline) 16328 if err != nil { 16329 return nil, err 16330 } 16331 16332 // Nothing to unmarshal 16333 if len(rawMessageAlertableEntityOutline) < 1 { 16334 return nil, nil 16335 } 16336 16337 var typeName string 16338 16339 if rawTypeName, ok := rawMessageAlertableEntityOutline["__typename"]; ok { 16340 err = json.Unmarshal(*rawTypeName, &typeName) 16341 if err != nil { 16342 return nil, err 16343 } 16344 16345 switch typeName { 16346 case "ApmAgentInstrumentedServiceEntityOutline": 16347 var interfaceType ApmAgentInstrumentedServiceEntityOutline 16348 err = json.Unmarshal(b, &interfaceType) 16349 if err != nil { 16350 return nil, err 16351 } 16352 16353 var xxx AlertableEntityOutlineInterface = &interfaceType 16354 16355 return &xxx, nil 16356 case "ApmApplicationEntityOutline": 16357 var interfaceType ApmApplicationEntityOutline 16358 err = json.Unmarshal(b, &interfaceType) 16359 if err != nil { 16360 return nil, err 16361 } 16362 16363 var xxx AlertableEntityOutlineInterface = &interfaceType 16364 16365 return &xxx, nil 16366 case "ApmDatabaseInstanceEntityOutline": 16367 var interfaceType ApmDatabaseInstanceEntityOutline 16368 err = json.Unmarshal(b, &interfaceType) 16369 if err != nil { 16370 return nil, err 16371 } 16372 16373 var xxx AlertableEntityOutlineInterface = &interfaceType 16374 16375 return &xxx, nil 16376 case "ApmExternalServiceEntityOutline": 16377 var interfaceType ApmExternalServiceEntityOutline 16378 err = json.Unmarshal(b, &interfaceType) 16379 if err != nil { 16380 return nil, err 16381 } 16382 16383 var xxx AlertableEntityOutlineInterface = &interfaceType 16384 16385 return &xxx, nil 16386 case "BrowserApplicationEntityOutline": 16387 var interfaceType BrowserApplicationEntityOutline 16388 err = json.Unmarshal(b, &interfaceType) 16389 if err != nil { 16390 return nil, err 16391 } 16392 16393 var xxx AlertableEntityOutlineInterface = &interfaceType 16394 16395 return &xxx, nil 16396 case "DashboardEntityOutline": 16397 var interfaceType DashboardEntityOutline 16398 err = json.Unmarshal(b, &interfaceType) 16399 if err != nil { 16400 return nil, err 16401 } 16402 16403 var xxx AlertableEntityOutlineInterface = &interfaceType 16404 16405 return &xxx, nil 16406 case "EntityOutline": 16407 var interfaceType EntityOutline 16408 err = json.Unmarshal(b, &interfaceType) 16409 if err != nil { 16410 return nil, err 16411 } 16412 16413 var xxx AlertableEntityOutlineInterface = &interfaceType 16414 16415 return &xxx, nil 16416 case "ExternalEntityOutline": 16417 var interfaceType ExternalEntityOutline 16418 err = json.Unmarshal(b, &interfaceType) 16419 if err != nil { 16420 return nil, err 16421 } 16422 16423 var xxx AlertableEntityOutlineInterface = &interfaceType 16424 16425 return &xxx, nil 16426 case "GenericEntityOutline": 16427 var interfaceType GenericEntityOutline 16428 err = json.Unmarshal(b, &interfaceType) 16429 if err != nil { 16430 return nil, err 16431 } 16432 16433 var xxx AlertableEntityOutlineInterface = &interfaceType 16434 16435 return &xxx, nil 16436 case "GenericInfrastructureEntityOutline": 16437 var interfaceType GenericInfrastructureEntityOutline 16438 err = json.Unmarshal(b, &interfaceType) 16439 if err != nil { 16440 return nil, err 16441 } 16442 16443 var xxx AlertableEntityOutlineInterface = &interfaceType 16444 16445 return &xxx, nil 16446 case "GenericServiceEntityOutline": 16447 var interfaceType GenericServiceEntityOutline 16448 err = json.Unmarshal(b, &interfaceType) 16449 if err != nil { 16450 return nil, err 16451 } 16452 16453 var xxx AlertableEntityOutlineInterface = &interfaceType 16454 16455 return &xxx, nil 16456 case "InfrastructureAwsLambdaFunctionEntityOutline": 16457 var interfaceType InfrastructureAwsLambdaFunctionEntityOutline 16458 err = json.Unmarshal(b, &interfaceType) 16459 if err != nil { 16460 return nil, err 16461 } 16462 16463 var xxx AlertableEntityOutlineInterface = &interfaceType 16464 16465 return &xxx, nil 16466 case "InfrastructureHostEntityOutline": 16467 var interfaceType InfrastructureHostEntityOutline 16468 err = json.Unmarshal(b, &interfaceType) 16469 if err != nil { 16470 return nil, err 16471 } 16472 16473 var xxx AlertableEntityOutlineInterface = &interfaceType 16474 16475 return &xxx, nil 16476 case "MobileApplicationEntityOutline": 16477 var interfaceType MobileApplicationEntityOutline 16478 err = json.Unmarshal(b, &interfaceType) 16479 if err != nil { 16480 return nil, err 16481 } 16482 16483 var xxx AlertableEntityOutlineInterface = &interfaceType 16484 16485 return &xxx, nil 16486 case "SecureCredentialEntityOutline": 16487 var interfaceType SecureCredentialEntityOutline 16488 err = json.Unmarshal(b, &interfaceType) 16489 if err != nil { 16490 return nil, err 16491 } 16492 16493 var xxx AlertableEntityOutlineInterface = &interfaceType 16494 16495 return &xxx, nil 16496 case "ServiceEntityOutline": 16497 var interfaceType ServiceEntityOutline 16498 err = json.Unmarshal(b, &interfaceType) 16499 if err != nil { 16500 return nil, err 16501 } 16502 16503 var xxx AlertableEntityOutlineInterface = &interfaceType 16504 16505 return &xxx, nil 16506 case "SyntheticMonitorEntityOutline": 16507 var interfaceType SyntheticMonitorEntityOutline 16508 err = json.Unmarshal(b, &interfaceType) 16509 if err != nil { 16510 return nil, err 16511 } 16512 16513 var xxx AlertableEntityOutlineInterface = &interfaceType 16514 16515 return &xxx, nil 16516 case "ThirdPartyServiceEntityOutline": 16517 var interfaceType ThirdPartyServiceEntityOutline 16518 err = json.Unmarshal(b, &interfaceType) 16519 if err != nil { 16520 return nil, err 16521 } 16522 16523 var xxx AlertableEntityOutlineInterface = &interfaceType 16524 16525 return &xxx, nil 16526 case "UnavailableEntityOutline": 16527 var interfaceType UnavailableEntityOutline 16528 err = json.Unmarshal(b, &interfaceType) 16529 if err != nil { 16530 return nil, err 16531 } 16532 16533 var xxx AlertableEntityOutlineInterface = &interfaceType 16534 16535 return &xxx, nil 16536 case "WorkloadEntityOutline": 16537 var interfaceType WorkloadEntityOutline 16538 err = json.Unmarshal(b, &interfaceType) 16539 if err != nil { 16540 return nil, err 16541 } 16542 16543 var xxx AlertableEntityOutlineInterface = &interfaceType 16544 16545 return &xxx, nil 16546 } 16547 } else { 16548 keys := []string{} 16549 for k := range rawMessageAlertableEntityOutline { 16550 keys = append(keys, k) 16551 } 16552 return nil, fmt.Errorf("interface AlertableEntityOutline did not include a __typename field for inspection: %s", keys) 16553 } 16554 16555 return nil, fmt.Errorf("interface AlertableEntityOutline was not matched against all PossibleTypes: %s", typeName) 16556 } 16557 16558 // ApmApplicationEntity - An APM Application entity. 16559 type ApmApplicationEntityInterface interface { 16560 ImplementsApmApplicationEntity() 16561 } 16562 16563 // UnmarshalApmApplicationEntityInterface unmarshals the interface into the correct type 16564 // based on __typename provided by GraphQL 16565 func UnmarshalApmApplicationEntityInterface(b []byte) (*ApmApplicationEntityInterface, error) { 16566 var err error 16567 16568 var rawMessageApmApplicationEntity map[string]*json.RawMessage 16569 err = json.Unmarshal(b, &rawMessageApmApplicationEntity) 16570 if err != nil { 16571 return nil, err 16572 } 16573 16574 // Nothing to unmarshal 16575 if len(rawMessageApmApplicationEntity) < 1 { 16576 return nil, nil 16577 } 16578 16579 var typeName string 16580 16581 if rawTypeName, ok := rawMessageApmApplicationEntity["__typename"]; ok { 16582 err = json.Unmarshal(*rawTypeName, &typeName) 16583 if err != nil { 16584 return nil, err 16585 } 16586 16587 switch typeName { 16588 case "ApmAgentInstrumentedServiceEntity": 16589 var interfaceType ApmAgentInstrumentedServiceEntity 16590 err = json.Unmarshal(b, &interfaceType) 16591 if err != nil { 16592 return nil, err 16593 } 16594 16595 var xxx ApmApplicationEntityInterface = &interfaceType 16596 16597 return &xxx, nil 16598 } 16599 } else { 16600 keys := []string{} 16601 for k := range rawMessageApmApplicationEntity { 16602 keys = append(keys, k) 16603 } 16604 return nil, fmt.Errorf("interface ApmApplicationEntity did not include a __typename field for inspection: %s", keys) 16605 } 16606 16607 return nil, fmt.Errorf("interface ApmApplicationEntity was not matched against all PossibleTypes: %s", typeName) 16608 } 16609 16610 // ApmApplicationEntityOutline - An APM Application entity outline. 16611 type ApmApplicationEntityOutlineInterface interface { 16612 ImplementsApmApplicationEntityOutline() 16613 } 16614 16615 // UnmarshalApmApplicationEntityOutlineInterface unmarshals the interface into the correct type 16616 // based on __typename provided by GraphQL 16617 func UnmarshalApmApplicationEntityOutlineInterface(b []byte) (*ApmApplicationEntityOutlineInterface, error) { 16618 var err error 16619 16620 var rawMessageApmApplicationEntityOutline map[string]*json.RawMessage 16621 err = json.Unmarshal(b, &rawMessageApmApplicationEntityOutline) 16622 if err != nil { 16623 return nil, err 16624 } 16625 16626 // Nothing to unmarshal 16627 if len(rawMessageApmApplicationEntityOutline) < 1 { 16628 return nil, nil 16629 } 16630 16631 var typeName string 16632 16633 if rawTypeName, ok := rawMessageApmApplicationEntityOutline["__typename"]; ok { 16634 err = json.Unmarshal(*rawTypeName, &typeName) 16635 if err != nil { 16636 return nil, err 16637 } 16638 16639 switch typeName { 16640 case "ApmAgentInstrumentedServiceEntityOutline": 16641 var interfaceType ApmAgentInstrumentedServiceEntityOutline 16642 err = json.Unmarshal(b, &interfaceType) 16643 if err != nil { 16644 return nil, err 16645 } 16646 16647 var xxx ApmApplicationEntityOutlineInterface = &interfaceType 16648 16649 return &xxx, nil 16650 } 16651 } else { 16652 keys := []string{} 16653 for k := range rawMessageApmApplicationEntityOutline { 16654 keys = append(keys, k) 16655 } 16656 return nil, fmt.Errorf("interface ApmApplicationEntityOutline did not include a __typename field for inspection: %s", keys) 16657 } 16658 16659 return nil, fmt.Errorf("interface ApmApplicationEntityOutline was not matched against all PossibleTypes: %s", typeName) 16660 } 16661 16662 // ApmBrowserApplicationEntity - The `ApmBrowserApplicationEntity` interface provides detailed information for the Browser App injected by an APM Application. 16663 type ApmBrowserApplicationEntityInterface interface { 16664 ImplementsApmBrowserApplicationEntity() 16665 } 16666 16667 // UnmarshalApmBrowserApplicationEntityInterface unmarshals the interface into the correct type 16668 // based on __typename provided by GraphQL 16669 func UnmarshalApmBrowserApplicationEntityInterface(b []byte) (*ApmBrowserApplicationEntityInterface, error) { 16670 var err error 16671 16672 var rawMessageApmBrowserApplicationEntity map[string]*json.RawMessage 16673 err = json.Unmarshal(b, &rawMessageApmBrowserApplicationEntity) 16674 if err != nil { 16675 return nil, err 16676 } 16677 16678 // Nothing to unmarshal 16679 if len(rawMessageApmBrowserApplicationEntity) < 1 { 16680 return nil, nil 16681 } 16682 16683 var typeName string 16684 16685 if rawTypeName, ok := rawMessageApmBrowserApplicationEntity["__typename"]; ok { 16686 err = json.Unmarshal(*rawTypeName, &typeName) 16687 if err != nil { 16688 return nil, err 16689 } 16690 16691 switch typeName { 16692 case "ApmAgentInstrumentedServiceEntity": 16693 var interfaceType ApmAgentInstrumentedServiceEntity 16694 err = json.Unmarshal(b, &interfaceType) 16695 if err != nil { 16696 return nil, err 16697 } 16698 16699 var xxx ApmBrowserApplicationEntityInterface = &interfaceType 16700 16701 return &xxx, nil 16702 case "ApmApplicationEntity": 16703 var interfaceType ApmApplicationEntity 16704 err = json.Unmarshal(b, &interfaceType) 16705 if err != nil { 16706 return nil, err 16707 } 16708 16709 var xxx ApmBrowserApplicationEntityInterface = &interfaceType 16710 16711 return &xxx, nil 16712 } 16713 } else { 16714 keys := []string{} 16715 for k := range rawMessageApmBrowserApplicationEntity { 16716 keys = append(keys, k) 16717 } 16718 return nil, fmt.Errorf("interface ApmBrowserApplicationEntity did not include a __typename field for inspection: %s", keys) 16719 } 16720 16721 return nil, fmt.Errorf("interface ApmBrowserApplicationEntity was not matched against all PossibleTypes: %s", typeName) 16722 } 16723 16724 // ApmBrowserApplicationEntityOutline - The `ApmBrowserApplicationEntityOutline` interface provides detailed information for the Browser App injected by an APM Application. 16725 type ApmBrowserApplicationEntityOutlineInterface interface { 16726 ImplementsApmBrowserApplicationEntityOutline() 16727 } 16728 16729 // UnmarshalApmBrowserApplicationEntityOutlineInterface unmarshals the interface into the correct type 16730 // based on __typename provided by GraphQL 16731 func UnmarshalApmBrowserApplicationEntityOutlineInterface(b []byte) (*ApmBrowserApplicationEntityOutlineInterface, error) { 16732 var err error 16733 16734 var rawMessageApmBrowserApplicationEntityOutline map[string]*json.RawMessage 16735 err = json.Unmarshal(b, &rawMessageApmBrowserApplicationEntityOutline) 16736 if err != nil { 16737 return nil, err 16738 } 16739 16740 // Nothing to unmarshal 16741 if len(rawMessageApmBrowserApplicationEntityOutline) < 1 { 16742 return nil, nil 16743 } 16744 16745 var typeName string 16746 16747 if rawTypeName, ok := rawMessageApmBrowserApplicationEntityOutline["__typename"]; ok { 16748 err = json.Unmarshal(*rawTypeName, &typeName) 16749 if err != nil { 16750 return nil, err 16751 } 16752 16753 switch typeName { 16754 case "ApmAgentInstrumentedServiceEntityOutline": 16755 var interfaceType ApmAgentInstrumentedServiceEntityOutline 16756 err = json.Unmarshal(b, &interfaceType) 16757 if err != nil { 16758 return nil, err 16759 } 16760 16761 var xxx ApmBrowserApplicationEntityOutlineInterface = &interfaceType 16762 16763 return &xxx, nil 16764 case "ApmApplicationEntityOutline": 16765 var interfaceType ApmApplicationEntityOutline 16766 err = json.Unmarshal(b, &interfaceType) 16767 if err != nil { 16768 return nil, err 16769 } 16770 16771 var xxx ApmBrowserApplicationEntityOutlineInterface = &interfaceType 16772 16773 return &xxx, nil 16774 } 16775 } else { 16776 keys := []string{} 16777 for k := range rawMessageApmBrowserApplicationEntityOutline { 16778 keys = append(keys, k) 16779 } 16780 return nil, fmt.Errorf("interface ApmBrowserApplicationEntityOutline did not include a __typename field for inspection: %s", keys) 16781 } 16782 16783 return nil, fmt.Errorf("interface ApmBrowserApplicationEntityOutline was not matched against all PossibleTypes: %s", typeName) 16784 } 16785 16786 // CollectionEntity - A group of entities defined by entity search queries and specific GUIDs 16787 type CollectionEntityInterface interface { 16788 ImplementsCollectionEntity() 16789 } 16790 16791 // UnmarshalCollectionEntityInterface unmarshals the interface into the correct type 16792 // based on __typename provided by GraphQL 16793 func UnmarshalCollectionEntityInterface(b []byte) (*CollectionEntityInterface, error) { 16794 var err error 16795 16796 var rawMessageCollectionEntity map[string]*json.RawMessage 16797 err = json.Unmarshal(b, &rawMessageCollectionEntity) 16798 if err != nil { 16799 return nil, err 16800 } 16801 16802 // Nothing to unmarshal 16803 if len(rawMessageCollectionEntity) < 1 { 16804 return nil, nil 16805 } 16806 16807 var typeName string 16808 16809 if rawTypeName, ok := rawMessageCollectionEntity["__typename"]; ok { 16810 err = json.Unmarshal(*rawTypeName, &typeName) 16811 if err != nil { 16812 return nil, err 16813 } 16814 16815 switch typeName { 16816 case "WorkloadEntity": 16817 var interfaceType WorkloadEntity 16818 err = json.Unmarshal(b, &interfaceType) 16819 if err != nil { 16820 return nil, err 16821 } 16822 16823 var xxx CollectionEntityInterface = &interfaceType 16824 16825 return &xxx, nil 16826 } 16827 } else { 16828 keys := []string{} 16829 for k := range rawMessageCollectionEntity { 16830 keys = append(keys, k) 16831 } 16832 return nil, fmt.Errorf("interface CollectionEntity did not include a __typename field for inspection: %s", keys) 16833 } 16834 16835 return nil, fmt.Errorf("interface CollectionEntity was not matched against all PossibleTypes: %s", typeName) 16836 } 16837 16838 // DashboardWidgetCommons - Common interface for all widgets. 16839 type DashboardWidgetCommonsInterface interface { 16840 ImplementsDashboardWidgetCommons() 16841 } 16842 16843 // UnmarshalDashboardWidgetCommonsInterface unmarshals the interface into the correct type 16844 // based on __typename provided by GraphQL 16845 func UnmarshalDashboardWidgetCommonsInterface(b []byte) (*DashboardWidgetCommonsInterface, error) { 16846 var err error 16847 16848 var rawMessageDashboardWidgetCommons map[string]*json.RawMessage 16849 err = json.Unmarshal(b, &rawMessageDashboardWidgetCommons) 16850 if err != nil { 16851 return nil, err 16852 } 16853 16854 // Nothing to unmarshal 16855 if len(rawMessageDashboardWidgetCommons) < 1 { 16856 return nil, nil 16857 } 16858 16859 var typeName string 16860 16861 if rawTypeName, ok := rawMessageDashboardWidgetCommons["__typename"]; ok { 16862 err = json.Unmarshal(*rawTypeName, &typeName) 16863 if err != nil { 16864 return nil, err 16865 } 16866 16867 switch typeName { 16868 case "DashboardFacetChartWidget": 16869 var interfaceType DashboardFacetChartWidget 16870 err = json.Unmarshal(b, &interfaceType) 16871 if err != nil { 16872 return nil, err 16873 } 16874 16875 var xxx DashboardWidgetCommonsInterface = &interfaceType 16876 16877 return &xxx, nil 16878 case "DashboardInaccessibleWidget": 16879 var interfaceType DashboardInaccessibleWidget 16880 err = json.Unmarshal(b, &interfaceType) 16881 if err != nil { 16882 return nil, err 16883 } 16884 16885 var xxx DashboardWidgetCommonsInterface = &interfaceType 16886 16887 return &xxx, nil 16888 case "DashboardInventoryWidget": 16889 var interfaceType DashboardInventoryWidget 16890 err = json.Unmarshal(b, &interfaceType) 16891 if err != nil { 16892 return nil, err 16893 } 16894 16895 var xxx DashboardWidgetCommonsInterface = &interfaceType 16896 16897 return &xxx, nil 16898 case "DashboardMarkdownWidget": 16899 var interfaceType DashboardMarkdownWidget 16900 err = json.Unmarshal(b, &interfaceType) 16901 if err != nil { 16902 return nil, err 16903 } 16904 16905 var xxx DashboardWidgetCommonsInterface = &interfaceType 16906 16907 return &xxx, nil 16908 case "DashboardMetricLineChartWidget": 16909 var interfaceType DashboardMetricLineChartWidget 16910 err = json.Unmarshal(b, &interfaceType) 16911 if err != nil { 16912 return nil, err 16913 } 16914 16915 var xxx DashboardWidgetCommonsInterface = &interfaceType 16916 16917 return &xxx, nil 16918 case "DashboardPredefinedMetricChartWidget": 16919 var interfaceType DashboardPredefinedMetricChartWidget 16920 err = json.Unmarshal(b, &interfaceType) 16921 if err != nil { 16922 return nil, err 16923 } 16924 16925 var xxx DashboardWidgetCommonsInterface = &interfaceType 16926 16927 return &xxx, nil 16928 case "DashboardServiceMapWidget": 16929 var interfaceType DashboardServiceMapWidget 16930 err = json.Unmarshal(b, &interfaceType) 16931 if err != nil { 16932 return nil, err 16933 } 16934 16935 var xxx DashboardWidgetCommonsInterface = &interfaceType 16936 16937 return &xxx, nil 16938 case "DashboardSimpleEventWidget": 16939 var interfaceType DashboardSimpleEventWidget 16940 err = json.Unmarshal(b, &interfaceType) 16941 if err != nil { 16942 return nil, err 16943 } 16944 16945 var xxx DashboardWidgetCommonsInterface = &interfaceType 16946 16947 return &xxx, nil 16948 case "DashboardThresholdEventWidget": 16949 var interfaceType DashboardThresholdEventWidget 16950 err = json.Unmarshal(b, &interfaceType) 16951 if err != nil { 16952 return nil, err 16953 } 16954 16955 var xxx DashboardWidgetCommonsInterface = &interfaceType 16956 16957 return &xxx, nil 16958 } 16959 } else { 16960 keys := []string{} 16961 for k := range rawMessageDashboardWidgetCommons { 16962 keys = append(keys, k) 16963 } 16964 return nil, fmt.Errorf("interface DashboardWidgetCommons did not include a __typename field for inspection: %s", keys) 16965 } 16966 16967 return nil, fmt.Errorf("interface DashboardWidgetCommons was not matched against all PossibleTypes: %s", typeName) 16968 } 16969 16970 // Entity - The `Entity` interface allows fetching detailed entity information for a single entity. 16971 // 16972 // To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 16973 type EntityInterface interface { 16974 ImplementsEntity() 16975 GetAccountID() int 16976 GetDomain() string 16977 GetGUID() common.EntityGUID 16978 GetName() string 16979 GetTags() []EntityTag 16980 GetType() string 16981 GetServiceLevel() ServiceLevelDefinition 16982 } 16983 16984 // UnmarshalEntityInterface unmarshals the interface into the correct type 16985 // based on __typename provided by GraphQL 16986 func UnmarshalEntityInterface(b []byte) (*EntityInterface, error) { 16987 var err error 16988 16989 var rawMessageEntity map[string]*json.RawMessage 16990 err = json.Unmarshal(b, &rawMessageEntity) 16991 if err != nil { 16992 return nil, err 16993 } 16994 16995 // Nothing to unmarshal 16996 if len(rawMessageEntity) < 1 { 16997 return nil, nil 16998 } 16999 17000 var typeName string 17001 17002 if rawTypeName, ok := rawMessageEntity["__typename"]; ok { 17003 err = json.Unmarshal(*rawTypeName, &typeName) 17004 if err != nil { 17005 return nil, err 17006 } 17007 17008 switch typeName { 17009 case "ApmAgentInstrumentedServiceEntity": 17010 var interfaceType ApmAgentInstrumentedServiceEntity 17011 err = json.Unmarshal(b, &interfaceType) 17012 if err != nil { 17013 return nil, err 17014 } 17015 17016 var xxx EntityInterface = &interfaceType 17017 17018 return &xxx, nil 17019 case "ApmApplicationEntity": 17020 var interfaceType ApmApplicationEntity 17021 err = json.Unmarshal(b, &interfaceType) 17022 if err != nil { 17023 return nil, err 17024 } 17025 17026 var xxx EntityInterface = &interfaceType 17027 17028 return &xxx, nil 17029 case "ApmDatabaseInstanceEntity": 17030 var interfaceType ApmDatabaseInstanceEntity 17031 err = json.Unmarshal(b, &interfaceType) 17032 if err != nil { 17033 return nil, err 17034 } 17035 17036 var xxx EntityInterface = &interfaceType 17037 17038 return &xxx, nil 17039 case "ApmExternalServiceEntity": 17040 var interfaceType ApmExternalServiceEntity 17041 err = json.Unmarshal(b, &interfaceType) 17042 if err != nil { 17043 return nil, err 17044 } 17045 17046 var xxx EntityInterface = &interfaceType 17047 17048 return &xxx, nil 17049 case "BrowserApplicationEntity": 17050 var interfaceType BrowserApplicationEntity 17051 err = json.Unmarshal(b, &interfaceType) 17052 if err != nil { 17053 return nil, err 17054 } 17055 17056 var xxx EntityInterface = &interfaceType 17057 17058 return &xxx, nil 17059 case "DashboardEntity": 17060 var interfaceType DashboardEntity 17061 err = json.Unmarshal(b, &interfaceType) 17062 if err != nil { 17063 return nil, err 17064 } 17065 17066 var xxx EntityInterface = &interfaceType 17067 17068 return &xxx, nil 17069 case "ExternalEntity": 17070 var interfaceType ExternalEntity 17071 err = json.Unmarshal(b, &interfaceType) 17072 if err != nil { 17073 return nil, err 17074 } 17075 17076 var xxx EntityInterface = &interfaceType 17077 17078 return &xxx, nil 17079 case "GenericEntity": 17080 var interfaceType GenericEntity 17081 err = json.Unmarshal(b, &interfaceType) 17082 if err != nil { 17083 return nil, err 17084 } 17085 17086 var xxx EntityInterface = &interfaceType 17087 17088 return &xxx, nil 17089 case "GenericInfrastructureEntity": 17090 var interfaceType GenericInfrastructureEntity 17091 err = json.Unmarshal(b, &interfaceType) 17092 if err != nil { 17093 return nil, err 17094 } 17095 17096 var xxx EntityInterface = &interfaceType 17097 17098 return &xxx, nil 17099 case "GenericServiceEntity": 17100 var interfaceType GenericServiceEntity 17101 err = json.Unmarshal(b, &interfaceType) 17102 if err != nil { 17103 return nil, err 17104 } 17105 17106 var xxx EntityInterface = &interfaceType 17107 17108 return &xxx, nil 17109 case "InfrastructureAwsLambdaFunctionEntity": 17110 var interfaceType InfrastructureAwsLambdaFunctionEntity 17111 err = json.Unmarshal(b, &interfaceType) 17112 if err != nil { 17113 return nil, err 17114 } 17115 17116 var xxx EntityInterface = &interfaceType 17117 17118 return &xxx, nil 17119 case "InfrastructureHostEntity": 17120 var interfaceType InfrastructureHostEntity 17121 err = json.Unmarshal(b, &interfaceType) 17122 if err != nil { 17123 return nil, err 17124 } 17125 17126 var xxx EntityInterface = &interfaceType 17127 17128 return &xxx, nil 17129 case "MobileApplicationEntity": 17130 var interfaceType MobileApplicationEntity 17131 err = json.Unmarshal(b, &interfaceType) 17132 if err != nil { 17133 return nil, err 17134 } 17135 17136 var xxx EntityInterface = &interfaceType 17137 17138 return &xxx, nil 17139 case "SecureCredentialEntity": 17140 var interfaceType SecureCredentialEntity 17141 err = json.Unmarshal(b, &interfaceType) 17142 if err != nil { 17143 return nil, err 17144 } 17145 17146 var xxx EntityInterface = &interfaceType 17147 17148 return &xxx, nil 17149 case "ServiceEntity": 17150 var interfaceType ServiceEntity 17151 err = json.Unmarshal(b, &interfaceType) 17152 if err != nil { 17153 return nil, err 17154 } 17155 17156 var xxx EntityInterface = &interfaceType 17157 17158 return &xxx, nil 17159 case "SyntheticMonitorEntity": 17160 var interfaceType SyntheticMonitorEntity 17161 err = json.Unmarshal(b, &interfaceType) 17162 if err != nil { 17163 return nil, err 17164 } 17165 17166 var xxx EntityInterface = &interfaceType 17167 17168 return &xxx, nil 17169 case "ThirdPartyServiceEntity": 17170 var interfaceType ThirdPartyServiceEntity 17171 err = json.Unmarshal(b, &interfaceType) 17172 if err != nil { 17173 return nil, err 17174 } 17175 17176 var xxx EntityInterface = &interfaceType 17177 17178 return &xxx, nil 17179 case "UnavailableEntity": 17180 var interfaceType UnavailableEntity 17181 err = json.Unmarshal(b, &interfaceType) 17182 if err != nil { 17183 return nil, err 17184 } 17185 17186 var xxx EntityInterface = &interfaceType 17187 17188 return &xxx, nil 17189 case "WorkloadEntity": 17190 var interfaceType WorkloadEntity 17191 err = json.Unmarshal(b, &interfaceType) 17192 if err != nil { 17193 return nil, err 17194 } 17195 17196 var xxx EntityInterface = &interfaceType 17197 17198 return &xxx, nil 17199 } 17200 } else { 17201 keys := []string{} 17202 for k := range rawMessageEntity { 17203 keys = append(keys, k) 17204 } 17205 return nil, fmt.Errorf("interface Entity did not include a __typename field for inspection: %s", keys) 17206 } 17207 17208 return nil, fmt.Errorf("interface Entity was not matched against all PossibleTypes: %s", typeName) 17209 } 17210 17211 // EntityOutline - The `EntityOutline` interface object allows fetching basic entity data for many entities at a time. 17212 // 17213 // To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities). 17214 type EntityOutlineInterface interface { 17215 ImplementsEntityOutline() 17216 GetAccountID() int 17217 GetDomain() string 17218 GetGUID() common.EntityGUID 17219 GetName() string 17220 GetType() string 17221 } 17222 17223 // UnmarshalEntityOutlineInterface unmarshals the interface into the correct type 17224 // based on __typename provided by GraphQL 17225 func UnmarshalEntityOutlineInterface(b []byte) (*EntityOutlineInterface, error) { 17226 var err error 17227 17228 var rawMessageEntityOutline map[string]*json.RawMessage 17229 err = json.Unmarshal(b, &rawMessageEntityOutline) 17230 if err != nil { 17231 return nil, err 17232 } 17233 17234 // Nothing to unmarshal 17235 if len(rawMessageEntityOutline) < 1 { 17236 return nil, nil 17237 } 17238 17239 var typeName string 17240 17241 if rawTypeName, ok := rawMessageEntityOutline["__typename"]; ok { 17242 err = json.Unmarshal(*rawTypeName, &typeName) 17243 if err != nil { 17244 return nil, err 17245 } 17246 17247 switch typeName { 17248 case "ApmAgentInstrumentedServiceEntityOutline": 17249 var interfaceType ApmAgentInstrumentedServiceEntityOutline 17250 err = json.Unmarshal(b, &interfaceType) 17251 if err != nil { 17252 return nil, err 17253 } 17254 17255 var xxx EntityOutlineInterface = &interfaceType 17256 17257 return &xxx, nil 17258 case "ApmApplicationEntityOutline": 17259 var interfaceType ApmApplicationEntityOutline 17260 err = json.Unmarshal(b, &interfaceType) 17261 if err != nil { 17262 return nil, err 17263 } 17264 17265 var xxx EntityOutlineInterface = &interfaceType 17266 17267 return &xxx, nil 17268 case "ApmDatabaseInstanceEntityOutline": 17269 var interfaceType ApmDatabaseInstanceEntityOutline 17270 err = json.Unmarshal(b, &interfaceType) 17271 if err != nil { 17272 return nil, err 17273 } 17274 17275 var xxx EntityOutlineInterface = &interfaceType 17276 17277 return &xxx, nil 17278 case "ApmExternalServiceEntityOutline": 17279 var interfaceType ApmExternalServiceEntityOutline 17280 err = json.Unmarshal(b, &interfaceType) 17281 if err != nil { 17282 return nil, err 17283 } 17284 17285 var xxx EntityOutlineInterface = &interfaceType 17286 17287 return &xxx, nil 17288 case "BrowserApplicationEntityOutline": 17289 var interfaceType BrowserApplicationEntityOutline 17290 err = json.Unmarshal(b, &interfaceType) 17291 if err != nil { 17292 return nil, err 17293 } 17294 17295 var xxx EntityOutlineInterface = &interfaceType 17296 17297 return &xxx, nil 17298 case "DashboardEntityOutline": 17299 var interfaceType DashboardEntityOutline 17300 err = json.Unmarshal(b, &interfaceType) 17301 if err != nil { 17302 return nil, err 17303 } 17304 17305 var xxx EntityOutlineInterface = &interfaceType 17306 17307 return &xxx, nil 17308 case "ExternalEntityOutline": 17309 var interfaceType ExternalEntityOutline 17310 err = json.Unmarshal(b, &interfaceType) 17311 if err != nil { 17312 return nil, err 17313 } 17314 17315 var xxx EntityOutlineInterface = &interfaceType 17316 17317 return &xxx, nil 17318 case "GenericEntityOutline": 17319 var interfaceType GenericEntityOutline 17320 err = json.Unmarshal(b, &interfaceType) 17321 if err != nil { 17322 return nil, err 17323 } 17324 17325 var xxx EntityOutlineInterface = &interfaceType 17326 17327 return &xxx, nil 17328 case "GenericInfrastructureEntityOutline": 17329 var interfaceType GenericInfrastructureEntityOutline 17330 err = json.Unmarshal(b, &interfaceType) 17331 if err != nil { 17332 return nil, err 17333 } 17334 17335 var xxx EntityOutlineInterface = &interfaceType 17336 17337 return &xxx, nil 17338 case "GenericServiceEntityOutline": 17339 var interfaceType GenericServiceEntityOutline 17340 err = json.Unmarshal(b, &interfaceType) 17341 if err != nil { 17342 return nil, err 17343 } 17344 17345 var xxx EntityOutlineInterface = &interfaceType 17346 17347 return &xxx, nil 17348 case "InfrastructureAwsLambdaFunctionEntityOutline": 17349 var interfaceType InfrastructureAwsLambdaFunctionEntityOutline 17350 err = json.Unmarshal(b, &interfaceType) 17351 if err != nil { 17352 return nil, err 17353 } 17354 17355 var xxx EntityOutlineInterface = &interfaceType 17356 17357 return &xxx, nil 17358 case "InfrastructureHostEntityOutline": 17359 var interfaceType InfrastructureHostEntityOutline 17360 err = json.Unmarshal(b, &interfaceType) 17361 if err != nil { 17362 return nil, err 17363 } 17364 17365 var xxx EntityOutlineInterface = &interfaceType 17366 17367 return &xxx, nil 17368 case "MobileApplicationEntityOutline": 17369 var interfaceType MobileApplicationEntityOutline 17370 err = json.Unmarshal(b, &interfaceType) 17371 if err != nil { 17372 return nil, err 17373 } 17374 17375 var xxx EntityOutlineInterface = &interfaceType 17376 17377 return &xxx, nil 17378 case "SecureCredentialEntityOutline": 17379 var interfaceType SecureCredentialEntityOutline 17380 err = json.Unmarshal(b, &interfaceType) 17381 if err != nil { 17382 return nil, err 17383 } 17384 17385 var xxx EntityOutlineInterface = &interfaceType 17386 17387 return &xxx, nil 17388 case "ServiceEntityOutline": 17389 var interfaceType ServiceEntityOutline 17390 err = json.Unmarshal(b, &interfaceType) 17391 if err != nil { 17392 return nil, err 17393 } 17394 17395 var xxx EntityOutlineInterface = &interfaceType 17396 17397 return &xxx, nil 17398 case "SyntheticMonitorEntityOutline": 17399 var interfaceType SyntheticMonitorEntityOutline 17400 err = json.Unmarshal(b, &interfaceType) 17401 if err != nil { 17402 return nil, err 17403 } 17404 17405 var xxx EntityOutlineInterface = &interfaceType 17406 17407 return &xxx, nil 17408 case "ThirdPartyServiceEntityOutline": 17409 var interfaceType ThirdPartyServiceEntityOutline 17410 err = json.Unmarshal(b, &interfaceType) 17411 if err != nil { 17412 return nil, err 17413 } 17414 17415 var xxx EntityOutlineInterface = &interfaceType 17416 17417 return &xxx, nil 17418 case "UnavailableEntityOutline": 17419 var interfaceType UnavailableEntityOutline 17420 err = json.Unmarshal(b, &interfaceType) 17421 if err != nil { 17422 return nil, err 17423 } 17424 17425 var xxx EntityOutlineInterface = &interfaceType 17426 17427 return &xxx, nil 17428 case "WorkloadEntityOutline": 17429 var interfaceType WorkloadEntityOutline 17430 err = json.Unmarshal(b, &interfaceType) 17431 if err != nil { 17432 return nil, err 17433 } 17434 17435 var xxx EntityOutlineInterface = &interfaceType 17436 17437 return &xxx, nil 17438 } 17439 } else { 17440 keys := []string{} 17441 for k := range rawMessageEntityOutline { 17442 keys = append(keys, k) 17443 } 17444 return nil, fmt.Errorf("interface EntityOutline did not include a __typename field for inspection: %s", keys) 17445 } 17446 17447 return nil, fmt.Errorf("interface EntityOutline was not matched against all PossibleTypes: %s", typeName) 17448 } 17449 17450 // EntityRelationshipEdge - An entity relationship. 17451 type EntityRelationshipEdgeInterface interface { 17452 ImplementsEntityRelationshipEdge() 17453 } 17454 17455 // UnmarshalEntityRelationshipEdgeInterface unmarshals the interface into the correct type 17456 // based on __typename provided by GraphQL 17457 func UnmarshalEntityRelationshipEdgeInterface(b []byte) (*EntityRelationshipEdgeInterface, error) { 17458 var err error 17459 17460 var rawMessageEntityRelationshipEdge map[string]*json.RawMessage 17461 err = json.Unmarshal(b, &rawMessageEntityRelationshipEdge) 17462 if err != nil { 17463 return nil, err 17464 } 17465 17466 // Nothing to unmarshal 17467 if len(rawMessageEntityRelationshipEdge) < 1 { 17468 return nil, nil 17469 } 17470 17471 var typeName string 17472 17473 if rawTypeName, ok := rawMessageEntityRelationshipEdge["__typename"]; ok { 17474 err = json.Unmarshal(*rawTypeName, &typeName) 17475 if err != nil { 17476 return nil, err 17477 } 17478 17479 switch typeName { 17480 case "EntityRelationshipDetectedEdge": 17481 var interfaceType EntityRelationshipDetectedEdge 17482 err = json.Unmarshal(b, &interfaceType) 17483 if err != nil { 17484 return nil, err 17485 } 17486 17487 var xxx EntityRelationshipEdgeInterface = &interfaceType 17488 17489 return &xxx, nil 17490 case "EntityRelationshipUserDefinedEdge": 17491 var interfaceType EntityRelationshipUserDefinedEdge 17492 err = json.Unmarshal(b, &interfaceType) 17493 if err != nil { 17494 return nil, err 17495 } 17496 17497 var xxx EntityRelationshipEdgeInterface = &interfaceType 17498 17499 return &xxx, nil 17500 } 17501 } else { 17502 keys := []string{} 17503 for k := range rawMessageEntityRelationshipEdge { 17504 keys = append(keys, k) 17505 } 17506 return nil, fmt.Errorf("interface EntityRelationshipEdge did not include a __typename field for inspection: %s", keys) 17507 } 17508 17509 return nil, fmt.Errorf("interface EntityRelationshipEdge was not matched against all PossibleTypes: %s", typeName) 17510 } 17511 17512 // EntitySummaryMetricValue - The interface representing the summary metric value. 17513 type EntitySummaryMetricValueInterface interface { 17514 ImplementsEntitySummaryMetricValue() 17515 } 17516 17517 // UnmarshalEntitySummaryMetricValueInterface unmarshals the interface into the correct type 17518 // based on __typename provided by GraphQL 17519 func UnmarshalEntitySummaryMetricValueInterface(b []byte) (*EntitySummaryMetricValueInterface, error) { 17520 var err error 17521 17522 var rawMessageEntitySummaryMetricValue map[string]*json.RawMessage 17523 err = json.Unmarshal(b, &rawMessageEntitySummaryMetricValue) 17524 if err != nil { 17525 return nil, err 17526 } 17527 17528 // Nothing to unmarshal 17529 if len(rawMessageEntitySummaryMetricValue) < 1 { 17530 return nil, nil 17531 } 17532 17533 var typeName string 17534 17535 if rawTypeName, ok := rawMessageEntitySummaryMetricValue["__typename"]; ok { 17536 err = json.Unmarshal(*rawTypeName, &typeName) 17537 if err != nil { 17538 return nil, err 17539 } 17540 17541 switch typeName { 17542 case "EntitySummaryNumericMetricValue": 17543 var interfaceType EntitySummaryNumericMetricValue 17544 err = json.Unmarshal(b, &interfaceType) 17545 if err != nil { 17546 return nil, err 17547 } 17548 17549 var xxx EntitySummaryMetricValueInterface = &interfaceType 17550 17551 return &xxx, nil 17552 case "EntitySummaryStringMetricValue": 17553 var interfaceType EntitySummaryStringMetricValue 17554 err = json.Unmarshal(b, &interfaceType) 17555 if err != nil { 17556 return nil, err 17557 } 17558 17559 var xxx EntitySummaryMetricValueInterface = &interfaceType 17560 17561 return &xxx, nil 17562 } 17563 } else { 17564 keys := []string{} 17565 for k := range rawMessageEntitySummaryMetricValue { 17566 keys = append(keys, k) 17567 } 17568 return nil, fmt.Errorf("interface EntitySummaryMetricValue did not include a __typename field for inspection: %s", keys) 17569 } 17570 17571 return nil, fmt.Errorf("interface EntitySummaryMetricValue was not matched against all PossibleTypes: %s", typeName) 17572 } 17573 17574 type InfrastructureIntegrationEntityInterface interface { 17575 ImplementsInfrastructureIntegrationEntity() 17576 } 17577 17578 // UnmarshalInfrastructureIntegrationEntityInterface unmarshals the interface into the correct type 17579 // based on __typename provided by GraphQL 17580 func UnmarshalInfrastructureIntegrationEntityInterface(b []byte) (*InfrastructureIntegrationEntityInterface, error) { 17581 var err error 17582 17583 var rawMessageInfrastructureIntegrationEntity map[string]*json.RawMessage 17584 err = json.Unmarshal(b, &rawMessageInfrastructureIntegrationEntity) 17585 if err != nil { 17586 return nil, err 17587 } 17588 17589 // Nothing to unmarshal 17590 if len(rawMessageInfrastructureIntegrationEntity) < 1 { 17591 return nil, nil 17592 } 17593 17594 var typeName string 17595 17596 if rawTypeName, ok := rawMessageInfrastructureIntegrationEntity["__typename"]; ok { 17597 err = json.Unmarshal(*rawTypeName, &typeName) 17598 if err != nil { 17599 return nil, err 17600 } 17601 17602 switch typeName { 17603 case "GenericInfrastructureEntity": 17604 var interfaceType GenericInfrastructureEntity 17605 err = json.Unmarshal(b, &interfaceType) 17606 if err != nil { 17607 return nil, err 17608 } 17609 17610 var xxx InfrastructureIntegrationEntityInterface = &interfaceType 17611 17612 return &xxx, nil 17613 case "InfrastructureAwsLambdaFunctionEntity": 17614 var interfaceType InfrastructureAwsLambdaFunctionEntity 17615 err = json.Unmarshal(b, &interfaceType) 17616 if err != nil { 17617 return nil, err 17618 } 17619 17620 var xxx InfrastructureIntegrationEntityInterface = &interfaceType 17621 17622 return &xxx, nil 17623 } 17624 } else { 17625 keys := []string{} 17626 for k := range rawMessageInfrastructureIntegrationEntity { 17627 keys = append(keys, k) 17628 } 17629 return nil, fmt.Errorf("interface InfrastructureIntegrationEntity did not include a __typename field for inspection: %s", keys) 17630 } 17631 17632 return nil, fmt.Errorf("interface InfrastructureIntegrationEntity was not matched against all PossibleTypes: %s", typeName) 17633 } 17634 17635 type InfrastructureIntegrationEntityOutlineInterface interface { 17636 ImplementsInfrastructureIntegrationEntityOutline() 17637 } 17638 17639 // UnmarshalInfrastructureIntegrationEntityOutlineInterface unmarshals the interface into the correct type 17640 // based on __typename provided by GraphQL 17641 func UnmarshalInfrastructureIntegrationEntityOutlineInterface(b []byte) (*InfrastructureIntegrationEntityOutlineInterface, error) { 17642 var err error 17643 17644 var rawMessageInfrastructureIntegrationEntityOutline map[string]*json.RawMessage 17645 err = json.Unmarshal(b, &rawMessageInfrastructureIntegrationEntityOutline) 17646 if err != nil { 17647 return nil, err 17648 } 17649 17650 // Nothing to unmarshal 17651 if len(rawMessageInfrastructureIntegrationEntityOutline) < 1 { 17652 return nil, nil 17653 } 17654 17655 var typeName string 17656 17657 if rawTypeName, ok := rawMessageInfrastructureIntegrationEntityOutline["__typename"]; ok { 17658 err = json.Unmarshal(*rawTypeName, &typeName) 17659 if err != nil { 17660 return nil, err 17661 } 17662 17663 switch typeName { 17664 case "GenericInfrastructureEntityOutline": 17665 var interfaceType GenericInfrastructureEntityOutline 17666 err = json.Unmarshal(b, &interfaceType) 17667 if err != nil { 17668 return nil, err 17669 } 17670 17671 var xxx InfrastructureIntegrationEntityOutlineInterface = &interfaceType 17672 17673 return &xxx, nil 17674 case "InfrastructureAwsLambdaFunctionEntityOutline": 17675 var interfaceType InfrastructureAwsLambdaFunctionEntityOutline 17676 err = json.Unmarshal(b, &interfaceType) 17677 if err != nil { 17678 return nil, err 17679 } 17680 17681 var xxx InfrastructureIntegrationEntityOutlineInterface = &interfaceType 17682 17683 return &xxx, nil 17684 } 17685 } else { 17686 keys := []string{} 17687 for k := range rawMessageInfrastructureIntegrationEntityOutline { 17688 keys = append(keys, k) 17689 } 17690 return nil, fmt.Errorf("interface InfrastructureIntegrationEntityOutline did not include a __typename field for inspection: %s", keys) 17691 } 17692 17693 return nil, fmt.Errorf("interface InfrastructureIntegrationEntityOutline was not matched against all PossibleTypes: %s", typeName) 17694 } 17695 17696 // ServiceEntity - A service entity. 17697 type ServiceEntityInterface interface { 17698 ImplementsServiceEntity() 17699 } 17700 17701 // UnmarshalServiceEntityInterface unmarshals the interface into the correct type 17702 // based on __typename provided by GraphQL 17703 func UnmarshalServiceEntityInterface(b []byte) (*ServiceEntityInterface, error) { 17704 var err error 17705 17706 var rawMessageServiceEntity map[string]*json.RawMessage 17707 err = json.Unmarshal(b, &rawMessageServiceEntity) 17708 if err != nil { 17709 return nil, err 17710 } 17711 17712 // Nothing to unmarshal 17713 if len(rawMessageServiceEntity) < 1 { 17714 return nil, nil 17715 } 17716 17717 var typeName string 17718 17719 if rawTypeName, ok := rawMessageServiceEntity["__typename"]; ok { 17720 err = json.Unmarshal(*rawTypeName, &typeName) 17721 if err != nil { 17722 return nil, err 17723 } 17724 17725 switch typeName { 17726 case "ApmAgentInstrumentedServiceEntity": 17727 var interfaceType ApmAgentInstrumentedServiceEntity 17728 err = json.Unmarshal(b, &interfaceType) 17729 if err != nil { 17730 return nil, err 17731 } 17732 17733 var xxx ServiceEntityInterface = &interfaceType 17734 17735 return &xxx, nil 17736 case "GenericServiceEntity": 17737 var interfaceType GenericServiceEntity 17738 err = json.Unmarshal(b, &interfaceType) 17739 if err != nil { 17740 return nil, err 17741 } 17742 17743 var xxx ServiceEntityInterface = &interfaceType 17744 17745 return &xxx, nil 17746 } 17747 } else { 17748 keys := []string{} 17749 for k := range rawMessageServiceEntity { 17750 keys = append(keys, k) 17751 } 17752 return nil, fmt.Errorf("interface ServiceEntity did not include a __typename field for inspection: %s", keys) 17753 } 17754 17755 return nil, fmt.Errorf("interface ServiceEntity was not matched against all PossibleTypes: %s", typeName) 17756 } 17757 17758 // ServiceEntityOutline - A service entity outline. 17759 type ServiceEntityOutlineInterface interface { 17760 ImplementsServiceEntityOutline() 17761 } 17762 17763 // UnmarshalServiceEntityOutlineInterface unmarshals the interface into the correct type 17764 // based on __typename provided by GraphQL 17765 func UnmarshalServiceEntityOutlineInterface(b []byte) (*ServiceEntityOutlineInterface, error) { 17766 var err error 17767 17768 var rawMessageServiceEntityOutline map[string]*json.RawMessage 17769 err = json.Unmarshal(b, &rawMessageServiceEntityOutline) 17770 if err != nil { 17771 return nil, err 17772 } 17773 17774 // Nothing to unmarshal 17775 if len(rawMessageServiceEntityOutline) < 1 { 17776 return nil, nil 17777 } 17778 17779 var typeName string 17780 17781 if rawTypeName, ok := rawMessageServiceEntityOutline["__typename"]; ok { 17782 err = json.Unmarshal(*rawTypeName, &typeName) 17783 if err != nil { 17784 return nil, err 17785 } 17786 17787 switch typeName { 17788 case "ApmAgentInstrumentedServiceEntityOutline": 17789 var interfaceType ApmAgentInstrumentedServiceEntityOutline 17790 err = json.Unmarshal(b, &interfaceType) 17791 if err != nil { 17792 return nil, err 17793 } 17794 17795 var xxx ServiceEntityOutlineInterface = &interfaceType 17796 17797 return &xxx, nil 17798 case "GenericServiceEntityOutline": 17799 var interfaceType GenericServiceEntityOutline 17800 err = json.Unmarshal(b, &interfaceType) 17801 if err != nil { 17802 return nil, err 17803 } 17804 17805 var xxx ServiceEntityOutlineInterface = &interfaceType 17806 17807 return &xxx, nil 17808 } 17809 } else { 17810 keys := []string{} 17811 for k := range rawMessageServiceEntityOutline { 17812 keys = append(keys, k) 17813 } 17814 return nil, fmt.Errorf("interface ServiceEntityOutline did not include a __typename field for inspection: %s", keys) 17815 } 17816 17817 return nil, fmt.Errorf("interface ServiceEntityOutline was not matched against all PossibleTypes: %s", typeName) 17818 } 17819 17820 // ThirdPartyServiceEntity - A third party service entity. 17821 type ThirdPartyServiceEntityInterface interface { 17822 ImplementsThirdPartyServiceEntity() 17823 } 17824 17825 // UnmarshalThirdPartyServiceEntityInterface unmarshals the interface into the correct type 17826 // based on __typename provided by GraphQL 17827 func UnmarshalThirdPartyServiceEntityInterface(b []byte) (*ThirdPartyServiceEntityInterface, error) { 17828 var err error 17829 17830 var rawMessageThirdPartyServiceEntity map[string]*json.RawMessage 17831 err = json.Unmarshal(b, &rawMessageThirdPartyServiceEntity) 17832 if err != nil { 17833 return nil, err 17834 } 17835 17836 // Nothing to unmarshal 17837 if len(rawMessageThirdPartyServiceEntity) < 1 { 17838 return nil, nil 17839 } 17840 17841 var typeName string 17842 17843 if rawTypeName, ok := rawMessageThirdPartyServiceEntity["__typename"]; ok { 17844 err = json.Unmarshal(*rawTypeName, &typeName) 17845 if err != nil { 17846 return nil, err 17847 } 17848 17849 switch typeName { 17850 case "GenericServiceEntity": 17851 var interfaceType GenericServiceEntity 17852 err = json.Unmarshal(b, &interfaceType) 17853 if err != nil { 17854 return nil, err 17855 } 17856 17857 var xxx ThirdPartyServiceEntityInterface = &interfaceType 17858 17859 return &xxx, nil 17860 } 17861 } else { 17862 keys := []string{} 17863 for k := range rawMessageThirdPartyServiceEntity { 17864 keys = append(keys, k) 17865 } 17866 return nil, fmt.Errorf("interface ThirdPartyServiceEntity did not include a __typename field for inspection: %s", keys) 17867 } 17868 17869 return nil, fmt.Errorf("interface ThirdPartyServiceEntity was not matched against all PossibleTypes: %s", typeName) 17870 } 17871 17872 // ThirdPartyServiceEntityOutline - A third party service entity outline. 17873 type ThirdPartyServiceEntityOutlineInterface interface { 17874 ImplementsThirdPartyServiceEntityOutline() 17875 } 17876 17877 // UnmarshalThirdPartyServiceEntityOutlineInterface unmarshals the interface into the correct type 17878 // based on __typename provided by GraphQL 17879 func UnmarshalThirdPartyServiceEntityOutlineInterface(b []byte) (*ThirdPartyServiceEntityOutlineInterface, error) { 17880 var err error 17881 17882 var rawMessageThirdPartyServiceEntityOutline map[string]*json.RawMessage 17883 err = json.Unmarshal(b, &rawMessageThirdPartyServiceEntityOutline) 17884 if err != nil { 17885 return nil, err 17886 } 17887 17888 // Nothing to unmarshal 17889 if len(rawMessageThirdPartyServiceEntityOutline) < 1 { 17890 return nil, nil 17891 } 17892 17893 var typeName string 17894 17895 if rawTypeName, ok := rawMessageThirdPartyServiceEntityOutline["__typename"]; ok { 17896 err = json.Unmarshal(*rawTypeName, &typeName) 17897 if err != nil { 17898 return nil, err 17899 } 17900 17901 switch typeName { 17902 case "GenericServiceEntityOutline": 17903 var interfaceType GenericServiceEntityOutline 17904 err = json.Unmarshal(b, &interfaceType) 17905 if err != nil { 17906 return nil, err 17907 } 17908 17909 var xxx ThirdPartyServiceEntityOutlineInterface = &interfaceType 17910 17911 return &xxx, nil 17912 } 17913 } else { 17914 keys := []string{} 17915 for k := range rawMessageThirdPartyServiceEntityOutline { 17916 keys = append(keys, k) 17917 } 17918 return nil, fmt.Errorf("interface ThirdPartyServiceEntityOutline did not include a __typename field for inspection: %s", keys) 17919 } 17920 17921 return nil, fmt.Errorf("interface ThirdPartyServiceEntityOutline was not matched against all PossibleTypes: %s", typeName) 17922 }