Documentation ¶
Overview ¶
Code generated by tutone: DO NOT EDIT
Code generated by tutone: DO NOT EDIT
Index ¶
- Constants
- Variables
- type AccountOutline
- type AccountReference
- type AlertableEntityOutline
- type AlertableEntityOutlineInterface
- type ApmApplicationEntityOutline
- type ApmApplicationRunningAgentVersions
- type ApmApplicationSettings
- type ApmApplicationSummaryData
- type ApmBrowserApplicationEntityOutline
- type ApmBrowserApplicationEntityOutlineInterface
- type ApmBrowserApplicationSummaryData
- type ApmDatabaseInstanceEntityOutline
- type ApmExternalServiceEntityOutline
- type ApmExternalServiceSummaryData
- type BrowserAgentInstallType
- type BrowserApplicationEntityOutline
- type BrowserApplicationRunningAgentVersions
- type BrowserApplicationSettings
- type BrowserApplicationSummaryData
- type DashboardEntityOutline
- type DashboardEntityOwnerInfo
- type DashboardEntityPermissions
- type EntityAlertSeverity
- type EntityGUID
- type EntityGoldenContext
- type EntityGoldenContextInput
- type EntityGoldenContextScopedGoldenMetrics
- type EntityGoldenContextScopedGoldenTags
- type EntityGoldenEventObjectId
- type EntityGoldenMetric
- type EntityGoldenMetricDefinition
- type EntityGoldenMetricUnit
- type EntityGoldenNRQLTimeWindowInput
- type EntityGoldenOriginalDefinitionWithSelector
- type EntityGoldenOriginalQueryWithSelector
- type EntityGoldenTag
- type EntityOutline
- type EntityOutlineInterface
- type EntityTag
- type EntityType
- type ExternalEntityOutline
- type Float
- type GenericEntityOutline
- type GenericInfrastructureEntityOutline
- type InfrastructureAwsLambdaFunctionEntityOutline
- type InfrastructureHostEntityOutline
- type InfrastructureHostSummaryData
- type InfrastructureIntegrationEntityOutline
- type InfrastructureIntegrationEntityOutlineInterface
- type KeyTransactionApplication
- type KeyTransactionCreateQueryResponse
- type KeyTransactionCreateResult
- type KeyTransactionDeleteQueryResponse
- type KeyTransactionDeleteResult
- type KeyTransactionEntityOutline
- type KeyTransactionUpdateQueryResponse
- type KeyTransactionUpdateResult
- type Keytransaction
- func (a *Keytransaction) KeyTransactionCreate(apdexTarget float64, applicationGUID EntityGUID, browserApdexTarget float64, ...) (*KeyTransactionCreateResult, error)
- func (a *Keytransaction) KeyTransactionCreateWithContext(ctx context.Context, apdexTarget float64, applicationGUID EntityGUID, ...) (*KeyTransactionCreateResult, error)
- func (a *Keytransaction) KeyTransactionDelete(gUID EntityGUID) (*KeyTransactionDeleteResult, error)
- func (a *Keytransaction) KeyTransactionDeleteWithContext(ctx context.Context, gUID EntityGUID) (*KeyTransactionDeleteResult, error)
- func (a *Keytransaction) KeyTransactionUpdate(apdexTarget float64, browserApdexTarget float64, gUID EntityGUID, name string) (*KeyTransactionUpdateResult, error)
- func (a *Keytransaction) KeyTransactionUpdateWithContext(ctx context.Context, apdexTarget float64, browserApdexTarget float64, ...) (*KeyTransactionUpdateResult, error)
- type Minutes
- type MobileAppSummaryData
- type MobileApplicationEntityOutline
- type NRQL
- type SecureCredentialEntityOutline
- type SecureCredentialSummaryData
- type SemVer
- type ServiceLevelDefinition
- type ServiceLevelEvents
- type ServiceLevelEventsQuery
- type ServiceLevelEventsQuerySelect
- type ServiceLevelEventsQuerySelectFunction
- type ServiceLevelIndicator
- type ServiceLevelIndicatorResultQueries
- type ServiceLevelObjective
- type ServiceLevelObjectiveResultQueries
- type ServiceLevelObjectiveRollingTimeWindow
- type ServiceLevelObjectiveRollingTimeWindowUnit
- type ServiceLevelObjectiveTimeWindow
- type ServiceLevelResultQuery
- type SyntheticMonitorEntityOutline
- type SyntheticMonitorStatus
- type SyntheticMonitorSummaryData
- type SyntheticMonitorType
- type TeamEntityOutline
- type ThirdPartyServiceEntityOutline
- type TimeWindowInput
- type UnavailableEntityOutline
- type UserReference
- type WorkloadEntityOutline
- type WorkloadStatus
- type WorkloadStatusSource
- type WorkloadStatusValue
Constants ¶
const KeyTransactionCreateMutation = `` /* 6136-byte string literal not displayed */
const KeyTransactionDeleteMutation = `mutation(
$guid: EntityGuid!,
) { keyTransactionDelete(
guid: $guid,
) {
success
} }`
const KeyTransactionUpdateMutation = `` /* 6033-byte string literal not displayed */
Variables ¶
var BrowserAgentInstallTypeTypes = struct { // Lite agent install type. LITE BrowserAgentInstallType // Pro agent install type. PRO BrowserAgentInstallType // Pro + SPA agent install type. PRO_SPA BrowserAgentInstallType }{ LITE: "LITE", PRO: "PRO", PRO_SPA: "PRO_SPA", }
var DashboardEntityPermissionsTypes = struct { // Private PRIVATE DashboardEntityPermissions // Public read only PUBLIC_READ_ONLY DashboardEntityPermissions // Public read & write PUBLIC_READ_WRITE DashboardEntityPermissions }{ PRIVATE: "PRIVATE", PUBLIC_READ_ONLY: "PUBLIC_READ_ONLY", PUBLIC_READ_WRITE: "PUBLIC_READ_WRITE", }
var EntityAlertSeverityTypes = struct { // Indicates an entity has a critical violation in progress. CRITICAL EntityAlertSeverity // Indicates an entity has no violations and therefore is not alerting. NOT_ALERTING EntityAlertSeverity // Indicates an entity is not configured for alerting. NOT_CONFIGURED EntityAlertSeverity // Indicates an entity has a warning violation in progress. WARNING EntityAlertSeverity }{ CRITICAL: "CRITICAL", NOT_ALERTING: "NOT_ALERTING", NOT_CONFIGURED: "NOT_CONFIGURED", WARNING: "WARNING", }
var EntityGoldenEventObjectIdTypes = struct { // The WHERE clause will be done against a domainId. DOMAIN_IDS EntityGoldenEventObjectId // The WHERE clause will be done against a GUID. ENTITY_GUIDS EntityGoldenEventObjectId // The WHERE clause will be done against the name of the entity. ENTITY_NAMES EntityGoldenEventObjectId }{ DOMAIN_IDS: "DOMAIN_IDS", ENTITY_GUIDS: "ENTITY_GUIDS", ENTITY_NAMES: "ENTITY_NAMES", }
var EntityGoldenMetricUnitTypes = struct { // Apdex (Application Performance Index). APDEX EntityGoldenMetricUnit // Bits. BITS EntityGoldenMetricUnit // Bits per second. BITS_PER_SECOND EntityGoldenMetricUnit // Bytes. BYTES EntityGoldenMetricUnit // Bytes per second. BYTES_PER_SECOND EntityGoldenMetricUnit // Degrees celsius. CELSIUS EntityGoldenMetricUnit // Count. COUNT EntityGoldenMetricUnit // Hertz. HERTZ EntityGoldenMetricUnit // Messages per second. MESSAGES_PER_SECOND EntityGoldenMetricUnit // Milliseconds. MS EntityGoldenMetricUnit // Operations per second. OPERATIONS_PER_SECOND EntityGoldenMetricUnit // Pages loaded per second. PAGES_PER_SECOND EntityGoldenMetricUnit // Percentage. PERCENTAGE EntityGoldenMetricUnit // Requests received per minute. REQUESTS_PER_MINUTE EntityGoldenMetricUnit // Requests received per second. REQUESTS_PER_SECOND EntityGoldenMetricUnit // Seconds. SECONDS EntityGoldenMetricUnit // Timestamp. TIMESTAMP EntityGoldenMetricUnit }{ APDEX: "APDEX", BITS: "BITS", BITS_PER_SECOND: "BITS_PER_SECOND", BYTES: "BYTES", BYTES_PER_SECOND: "BYTES_PER_SECOND", CELSIUS: "CELSIUS", COUNT: "COUNT", HERTZ: "HERTZ", MESSAGES_PER_SECOND: "MESSAGES_PER_SECOND", MS: "MS", OPERATIONS_PER_SECOND: "OPERATIONS_PER_SECOND", PAGES_PER_SECOND: "PAGES_PER_SECOND", PERCENTAGE: "PERCENTAGE", REQUESTS_PER_MINUTE: "REQUESTS_PER_MINUTE", REQUESTS_PER_SECOND: "REQUESTS_PER_SECOND", SECONDS: "SECONDS", TIMESTAMP: "TIMESTAMP", }
var EntityTypeTypes = struct { // An APM Application APM_APPLICATION_ENTITY EntityType // A database instance seen by an APM Application APM_DATABASE_INSTANCE_ENTITY EntityType // An external service seen by an APM Application APM_EXTERNAL_SERVICE_ENTITY EntityType // A Browser Application BROWSER_APPLICATION_ENTITY EntityType // A Dashboard entity DASHBOARD_ENTITY EntityType // An External entity. For more information about defining External entities, see the [open source documentation](https://github.com/newrelic-experimental/entity-synthesis-definitions). EXTERNAL_ENTITY EntityType // A Generic entity with no detailed data GENERIC_ENTITY EntityType // An Infrastructure entity GENERIC_INFRASTRUCTURE_ENTITY EntityType // An Infrastructure Integration AWS Lambda Function entity INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY EntityType // An Infrastructure Host entity INFRASTRUCTURE_HOST_ENTITY EntityType // A Key Transaction entity KEY_TRANSACTION_ENTITY EntityType // A Mobile Application MOBILE_APPLICATION_ENTITY EntityType // A Secure Credential entity SECURE_CREDENTIAL_ENTITY EntityType // A Synthetic Monitor entity SYNTHETIC_MONITOR_ENTITY EntityType // A Team Entity TEAM_ENTITY EntityType // A Third Party Service entity THIRD_PARTY_SERVICE_ENTITY EntityType // A entity that is unavailable UNAVAILABLE_ENTITY EntityType // A Workload entity WORKLOAD_ENTITY EntityType }{ APM_APPLICATION_ENTITY: "APM_APPLICATION_ENTITY", APM_DATABASE_INSTANCE_ENTITY: "APM_DATABASE_INSTANCE_ENTITY", APM_EXTERNAL_SERVICE_ENTITY: "APM_EXTERNAL_SERVICE_ENTITY", BROWSER_APPLICATION_ENTITY: "BROWSER_APPLICATION_ENTITY", DASHBOARD_ENTITY: "DASHBOARD_ENTITY", EXTERNAL_ENTITY: "EXTERNAL_ENTITY", GENERIC_ENTITY: "GENERIC_ENTITY", GENERIC_INFRASTRUCTURE_ENTITY: "GENERIC_INFRASTRUCTURE_ENTITY", INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY: "INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY", INFRASTRUCTURE_HOST_ENTITY: "INFRASTRUCTURE_HOST_ENTITY", KEY_TRANSACTION_ENTITY: "KEY_TRANSACTION_ENTITY", MOBILE_APPLICATION_ENTITY: "MOBILE_APPLICATION_ENTITY", SECURE_CREDENTIAL_ENTITY: "SECURE_CREDENTIAL_ENTITY", SYNTHETIC_MONITOR_ENTITY: "SYNTHETIC_MONITOR_ENTITY", TEAM_ENTITY: "TEAM_ENTITY", THIRD_PARTY_SERVICE_ENTITY: "THIRD_PARTY_SERVICE_ENTITY", UNAVAILABLE_ENTITY: "UNAVAILABLE_ENTITY", WORKLOAD_ENTITY: "WORKLOAD_ENTITY", }
var ServiceLevelEventsQuerySelectFunctionTypes = struct { // Use on events and unaggregated data. COUNT ServiceLevelEventsQuerySelectFunction // Use on distribution metric types. GET_CDF_COUNT ServiceLevelEventsQuerySelectFunction // Use in valid events combined with GET_CDF_COUNT. GET_FIELD ServiceLevelEventsQuerySelectFunction // Use on aggregated counts. SUM ServiceLevelEventsQuerySelectFunction }{ COUNT: "COUNT", GET_CDF_COUNT: "GET_CDF_COUNT", GET_FIELD: "GET_FIELD", SUM: "SUM", }
var ServiceLevelObjectiveRollingTimeWindowUnitTypes = struct { // Day. DAY ServiceLevelObjectiveRollingTimeWindowUnit }{ DAY: "DAY", }
var SyntheticMonitorStatusTypes = struct { DELETED SyntheticMonitorStatus DISABLED SyntheticMonitorStatus ENABLED SyntheticMonitorStatus FAULTY SyntheticMonitorStatus MUTED SyntheticMonitorStatus PAUSED SyntheticMonitorStatus }{ DELETED: "DELETED", DISABLED: "DISABLED", ENABLED: "ENABLED", FAULTY: "FAULTY", MUTED: "MUTED", PAUSED: "PAUSED", }
var SyntheticMonitorTypeTypes = struct { BROKEN_LINKS SyntheticMonitorType BROWSER SyntheticMonitorType CERT_CHECK SyntheticMonitorType SCRIPT_API SyntheticMonitorType SCRIPT_BROWSER SyntheticMonitorType SIMPLE SyntheticMonitorType STEP_MONITOR SyntheticMonitorType }{ BROKEN_LINKS: "BROKEN_LINKS", BROWSER: "BROWSER", CERT_CHECK: "CERT_CHECK", SCRIPT_API: "SCRIPT_API", SCRIPT_BROWSER: "SCRIPT_BROWSER", SIMPLE: "SIMPLE", STEP_MONITOR: "STEP_MONITOR", }
var WorkloadStatusSourceTypes = struct { // Refers to the result of an automatic rule defined for a workload. ROLLUP_RULE WorkloadStatusSource // Refers to a static status defined for a workload. STATIC WorkloadStatusSource // Refers to an undetermined status source. UNKNOWN WorkloadStatusSource // Refers to the override policy that is applied to a set of partial results within a workload. Any static status always overrides any other status values calculated automatically. Otherwise, the worst status of the partial results is rolled up. WORKLOAD WorkloadStatusSource }{ ROLLUP_RULE: "ROLLUP_RULE", STATIC: "STATIC", UNKNOWN: "UNKNOWN", WORKLOAD: "WORKLOAD", }
var WorkloadStatusValueTypes = struct { // The status of the workload is degraded. DEGRADED WorkloadStatusValue // The status of the workload is disrupted. DISRUPTED WorkloadStatusValue // The status of the workload is operational. OPERATIONAL WorkloadStatusValue // The status of the workload is unknown. UNKNOWN WorkloadStatusValue }{ DEGRADED: "DEGRADED", DISRUPTED: "DISRUPTED", OPERATIONAL: "OPERATIONAL", UNKNOWN: "UNKNOWN", }
Functions ¶
This section is empty.
Types ¶
type AccountOutline ¶
type AccountOutline struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` // Returns event types that are currently reporting in the account. ReportingEventTypes []string `json:"reportingEventTypes,omitempty"` }
AccountOutline - The `AccountOutline` object provides basic data about an account.
type AccountReference ¶
AccountReference - The `AccountReference` object provides basic identifying information about the account.
type AlertableEntityOutline ¶
type AlertableEntityOutline struct { // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` }
func (*AlertableEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *AlertableEntityOutline) ImplementsAlertableEntityOutline()
type AlertableEntityOutlineInterface ¶
type AlertableEntityOutlineInterface interface {
ImplementsAlertableEntityOutline()
}
func UnmarshalAlertableEntityOutlineInterface ¶
func UnmarshalAlertableEntityOutlineInterface(b []byte) (*AlertableEntityOutlineInterface, error)
UnmarshalAlertableEntityOutlineInterface unmarshals the interface into the correct type based on __typename provided by GraphQL
type ApmApplicationEntityOutline ¶
type ApmApplicationEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // Summary statistics about the Browser App injected by an APM Application. ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"` // Summary statistics about the APM App. ApmSummary ApmApplicationSummaryData `json:"apmSummary,omitempty"` // The ID of the APM Application. ApplicationID int `json:"applicationId,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The programming language of the APM Application. Language string `json:"language,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The running versions of the language agent in the APM Application. RunningAgentVersions ApmApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // Configuration settings for the APM Application Settings ApmApplicationSettings `json:"settings,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
ApmApplicationEntityOutline - An APM Application entity outline.
func (*ApmApplicationEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *ApmApplicationEntityOutline) ImplementsAlertableEntityOutline()
func (*ApmApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline ¶
func (x *ApmApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline()
func (*ApmApplicationEntityOutline) ImplementsEntityOutline ¶
func (x *ApmApplicationEntityOutline) ImplementsEntityOutline()
type ApmApplicationRunningAgentVersions ¶
type ApmApplicationRunningAgentVersions struct { // The maximum (newest) language agent version running in the APM Application. MaxVersion string `json:"maxVersion,omitempty"` // The minimum (oldest) language agent version running in the APM Application. MinVersion string `json:"minVersion,omitempty"` }
ApmApplicationRunningAgentVersions - Represents the currently running agent versions in an APM Application. An application could be running multiple versions of an agent (across different hosts, for example).
type ApmApplicationSettings ¶
type ApmApplicationSettings struct { // The current Apdex target setting ApdexTarget float64 `json:"apdexTarget,omitempty"` // State of server-side configuration setting ServerSideConfig bool `json:"serverSideConfig,omitempty"` }
ApmApplicationSettings - Configuration settings for the APM Application
type ApmApplicationSummaryData ¶
type ApmApplicationSummaryData struct { // 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). ApdexScore float64 `json:"apdexScore,omitempty"` // The percentage of responses to all transactions with an error. ErrorRate float64 `json:"errorRate,omitempty"` // The number of hosts this application is running on. HostCount int `json:"hostCount,omitempty"` // The number of instances of this application running. InstanceCount int `json:"instanceCount,omitempty"` // The average response time for non-web transactions in seconds. NonWebResponseTimeAverage nrtime.Seconds `json:"nonWebResponseTimeAverage,omitempty"` // The number of non-web transactions per minute. NonWebThroughput float64 `json:"nonWebThroughput,omitempty"` // The average response time for all transactions in seconds. ResponseTimeAverage nrtime.Seconds `json:"responseTimeAverage,omitempty"` // The number of all transactions per minute. Throughput float64 `json:"throughput,omitempty"` // The average response time for web transactions in seconds. WebResponseTimeAverage nrtime.Seconds `json:"webResponseTimeAverage,omitempty"` // The number of web transactions per minute. WebThroughput float64 `json:"webThroughput,omitempty"` }
ApmApplicationSummaryData - Summary statistics about the APM App.
type ApmBrowserApplicationEntityOutline ¶
type ApmBrowserApplicationEntityOutline struct {
ApmBrowserSummary ApmBrowserApplicationSummaryData `json:"apmBrowserSummary,omitempty"`
}
ApmBrowserApplicationEntityOutline - The `ApmBrowserApplicationEntityOutline` interface provides detailed information for the Browser App injected by an APM Application.
func (*ApmBrowserApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline ¶
func (x *ApmBrowserApplicationEntityOutline) ImplementsApmBrowserApplicationEntityOutline()
type ApmBrowserApplicationEntityOutlineInterface ¶
type ApmBrowserApplicationEntityOutlineInterface interface {
ImplementsApmBrowserApplicationEntityOutline()
}
ApmBrowserApplicationEntityOutline - The `ApmBrowserApplicationEntityOutline` interface provides detailed information for the Browser App injected by an APM Application.
func UnmarshalApmBrowserApplicationEntityOutlineInterface ¶
func UnmarshalApmBrowserApplicationEntityOutlineInterface(b []byte) (*ApmBrowserApplicationEntityOutlineInterface, error)
UnmarshalApmBrowserApplicationEntityOutlineInterface unmarshals the interface into the correct type based on __typename provided by GraphQL
type ApmBrowserApplicationSummaryData ¶
type ApmBrowserApplicationSummaryData struct { // The number of AJAX requests per minute AjaxRequestThroughput float64 `json:"ajaxRequestThroughput,omitempty"` // The average AJAX response time in seconds. AjaxResponseTimeAverage nrtime.Seconds `json:"ajaxResponseTimeAverage,omitempty"` // The percentage of page views with a JS error. JsErrorRate float64 `json:"jsErrorRate,omitempty"` // The number of page loads per minute PageLoadThroughput float64 `json:"pageLoadThroughput,omitempty"` // The average page view time in seconds. PageLoadTimeAverage float64 `json:"pageLoadTimeAverage,omitempty"` }
ApmBrowserApplicationSummaryData - Summary statistics about the Browser App injected by the APM Application.
type ApmDatabaseInstanceEntityOutline ¶
type ApmDatabaseInstanceEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The host the database instance is running on. Host string `json:"host,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The port or path the database instance is running on. ex: `3306` | `/tmp/mysql.sock` PortOrPath string `json:"portOrPath,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` // The type of database. ex: `Postgres` | `Redis` Vendor string `json:"vendor,omitempty"` }
ApmDatabaseInstanceEntityOutline - A database instance seen by an APM Application
func (*ApmDatabaseInstanceEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *ApmDatabaseInstanceEntityOutline) ImplementsAlertableEntityOutline()
func (*ApmDatabaseInstanceEntityOutline) ImplementsEntityOutline ¶
func (x *ApmDatabaseInstanceEntityOutline) ImplementsEntityOutline()
type ApmExternalServiceEntityOutline ¶
type ApmExternalServiceEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` ExternalSummary ApmExternalServiceSummaryData `json:"externalSummary,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The host of the external service. Host string `json:"host,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
ApmExternalServiceEntityOutline - An external service seen by an APM Application.
func (*ApmExternalServiceEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *ApmExternalServiceEntityOutline) ImplementsAlertableEntityOutline()
func (*ApmExternalServiceEntityOutline) ImplementsEntityOutline ¶
func (x *ApmExternalServiceEntityOutline) ImplementsEntityOutline()
type ApmExternalServiceSummaryData ¶
type ApmExternalServiceSummaryData struct { // The average response time for external service calls in seconds. ResponseTimeAverage nrtime.Seconds `json:"responseTimeAverage,omitempty"` // The number of external service calls per minute. Throughput float64 `json:"throughput,omitempty"` }
ApmExternalServiceSummaryData - Summary statistics about an External Service called by an APM App.
type BrowserAgentInstallType ¶
type BrowserAgentInstallType string
BrowserAgentInstallType - Browser agent install types.
type BrowserApplicationEntityOutline ¶
type BrowserApplicationEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The type of Browser agent installed for this application. AgentInstallType BrowserAgentInstallType `json:"agentInstallType,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The ID of the Browser App. ApplicationID int `json:"applicationId,omitempty"` // Summary statistics about the Browser App. BrowserSummary BrowserApplicationSummaryData `json:"browserSummary,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The running versions of the agent in the Browser App. RunningAgentVersions BrowserApplicationRunningAgentVersions `json:"runningAgentVersions,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The ID of the APM Application that serves this Browser App. ServingApmApplicationID int `json:"servingApmApplicationId,omitempty"` // Configuration settings for the Browser App Settings BrowserApplicationSettings `json:"settings,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
BrowserApplicationEntityOutline - A Browser Application entity outline.
func (*BrowserApplicationEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *BrowserApplicationEntityOutline) ImplementsAlertableEntityOutline()
func (*BrowserApplicationEntityOutline) ImplementsEntityOutline ¶
func (x *BrowserApplicationEntityOutline) ImplementsEntityOutline()
type BrowserApplicationRunningAgentVersions ¶
type BrowserApplicationRunningAgentVersions struct { // The maximum (newest) agent version running in the Browser App, represented as a semantic version string. MaxSemanticVersion SemVer `json:"maxSemanticVersion,omitempty"` // The maximum (newest) agent version running in the Browser App. MaxVersion int `json:"maxVersion,omitempty"` // The minimum (oldest) agent version running in the Browser App, represented as a semantic version string. MinSemanticVersion SemVer `json:"minSemanticVersion,omitempty"` // The minimum (oldest) agent version running in the Browser App. MinVersion int `json:"minVersion,omitempty"` }
BrowserApplicationRunningAgentVersions - Represents the currently running agent versions in a Browser App. An app could be running multiple versions of an agent (across different browsers, for example).
type BrowserApplicationSettings ¶
type BrowserApplicationSettings struct { // The current Apdex target setting ApdexTarget float64 `json:"apdexTarget,omitempty"` }
BrowserApplicationSettings - Configuration settings for the Browser App
type BrowserApplicationSummaryData ¶
type BrowserApplicationSummaryData struct { // The number of AJAX requests per minute AjaxRequestThroughput float64 `json:"ajaxRequestThroughput,omitempty"` // The average AJAX response time in seconds. AjaxResponseTimeAverage nrtime.Seconds `json:"ajaxResponseTimeAverage,omitempty"` // The percentage of page views with a JS error. JsErrorRate float64 `json:"jsErrorRate,omitempty"` // The number of page loads per minute PageLoadThroughput float64 `json:"pageLoadThroughput,omitempty"` // The average page view time in seconds. PageLoadTimeAverage float64 `json:"pageLoadTimeAverage,omitempty"` // The median page view time in seconds. PageLoadTimeMedian float64 `json:"pageLoadTimeMedian,omitempty"` // The average SPA response time in seconds. SpaResponseTimeAverage nrtime.Seconds `json:"spaResponseTimeAverage,omitempty"` // The median SPA response time in seconds. SpaResponseTimeMedian nrtime.Seconds `json:"spaResponseTimeMedian,omitempty"` }
BrowserApplicationSummaryData - Summary statistics about the Browser App.
type DashboardEntityOutline ¶
type DashboardEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The date and time the dashboard was created CreatedAt nrtime.DateTime `json:"createdAt,omitempty"` // The parent entity `guid` of the dashboard. DashboardParentGUID EntityGUID `json:"dashboardParentGuid,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The owner information of the dashboard. Owner DashboardEntityOwnerInfo `json:"owner,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The permissions of the dashboard. Permissions DashboardEntityPermissions `json:"permissions,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` // The date and time the dashboard was updated UpdatedAt nrtime.DateTime `json:"updatedAt,omitempty"` }
DashboardEntityOutline - A Dashboard entity outline.
func (*DashboardEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *DashboardEntityOutline) ImplementsAlertableEntityOutline()
func (*DashboardEntityOutline) ImplementsEntityOutline ¶
func (x *DashboardEntityOutline) ImplementsEntityOutline()
type DashboardEntityOwnerInfo ¶
type DashboardEntityOwnerInfo struct { // The email of the dashboard owner Email string `json:"email,omitempty"` // The user ID of the dashboard owner UserID int `json:"userId,omitempty"` }
DashboardEntityOwnerInfo - Dashboard owner
type DashboardEntityPermissions ¶
type DashboardEntityPermissions string
DashboardEntityPermissions - Permisions that represent visibility & editability
type EntityAlertSeverity ¶
type EntityAlertSeverity string
EntityAlertSeverity - The alert severity of the entity.
type EntityGoldenContext ¶
type EntityGoldenContext struct { // Account context. Account int `json:"account,omitempty"` // Collection guid context. GUID EntityGUID `json:"guid,omitempty"` }
EntityGoldenContext - An object that represent the context.
type EntityGoldenContextInput ¶
type EntityGoldenContextInput struct { // Account context. Account int `json:"account,omitempty"` // Collection guid context. GUID EntityGUID `json:"guid,omitempty"` }
EntityGoldenContextInput - Input type used to define the context for the golden metrics.
type EntityGoldenContextScopedGoldenMetrics ¶
type EntityGoldenContextScopedGoldenMetrics struct { // Context for the golden metric Context EntityGoldenContext `json:"context"` // Metrics for the domain and type Metrics []EntityGoldenMetric `json:"metrics"` }
EntityGoldenContextScopedGoldenMetrics - An object that represents the golden metrics scoped by context
type EntityGoldenContextScopedGoldenTags ¶
type EntityGoldenContextScopedGoldenTags struct { // Context for the golden tags Context EntityGoldenContext `json:"context"` // Tags for the domain and type Tags []EntityGoldenTag `json:"tags"` }
EntityGoldenContextScopedGoldenTags - An object that represents the golden tags scoped by context
type EntityGoldenEventObjectId ¶
type EntityGoldenEventObjectId string
EntityGoldenEventObjectId - Types of references for the default WHERE clause.
type EntityGoldenMetric ¶
type EntityGoldenMetric struct { // The definition of the golden metric. Definition EntityGoldenMetricDefinition `json:"definition"` // The synthesised metric name. i.e: newrelic.goldenmetrics.apm.application.throughput MetricName string `json:"metricName"` // The name of the golden metric. Name string `json:"name"` // The definitions of the golden metric as they are defined in the public repo https://github.com/newrelic/entity-definitions. OriginalDefinitions []EntityGoldenOriginalDefinitionWithSelector `json:"originalDefinitions"` // Original queries as they are defined in the public repo https://github.com/newrelic/entity-definitions. OriginalQueries []EntityGoldenOriginalQueryWithSelector `json:"originalQueries"` // The golden metric NRQL query. Query string `json:"query"` // The title of the golden metric. Title string `json:"title"` // The unit used to represent the golden metric. Unit EntityGoldenMetricUnit `json:"unit"` }
EntityGoldenMetric - An object that represents a golden metric.
type EntityGoldenMetricDefinition ¶
type EntityGoldenMetricDefinition struct { // The field used to filter the entity in the metric. This will be added to the WHERE by default. EventId string `json:"eventId"` // Indicates if the eventId field references a GUID, a domainId or an entity name. EventObjectId EntityGoldenEventObjectId `json:"eventObjectId"` // The field to FACET by. Facet string `json:"facet"` // The FROM clause of the query. From string `json:"from"` // The SELECT clause of the query. Select string `json:"select"` // If a complementary WHERE clause is required to identify the entity type this field will contain it. Where string `json:"where,omitempty"` }
EntityGoldenMetricDefinition - The definition of the metric.
type EntityGoldenMetricUnit ¶
type EntityGoldenMetricUnit string
EntityGoldenMetricUnit - The different units that can be used to express golden metrics.
type EntityGoldenNRQLTimeWindowInput ¶
type EntityGoldenNRQLTimeWindowInput struct { // Start time. Since NRQL `json:"since,omitempty"` // End time. Until NRQL `json:"until,omitempty"` }
EntityGoldenNRQLTimeWindowInput - Time range to apply to the golden metric NRQL query
type EntityGoldenOriginalDefinitionWithSelector ¶
type EntityGoldenOriginalDefinitionWithSelector struct { // The definition of the golden metric. Definition EntityGoldenMetricDefinition `json:"definition"` // The value of the selector. Currently, this is the value of the instrumentation provider. SelectorValue string `json:"selectorValue"` }
EntityGoldenOriginalDefinitionWithSelector - Represents a metric definition for a give metric selector value.
type EntityGoldenOriginalQueryWithSelector ¶
type EntityGoldenOriginalQueryWithSelector struct { // The golden metric NRQL query. Query string `json:"query"` // The value of the selector. Currently, this is the value of the instrumentation provider. SelectorValue string `json:"selectorValue"` }
EntityGoldenOriginalQueryWithSelector - Object that represents a nrql metric with its metric selector
type EntityGoldenTag ¶
type EntityGoldenTag struct { // The golden tag key. Key string `json:"key"` }
EntityGoldenTag - An object that represents a golden tag.
type EntityOutline ¶
type EntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
EntityOutline - The `EntityOutline` interface object allows fetching basic entity data for many entities at a time.
To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities).
func (*EntityOutline) ImplementsAlertableEntityOutline ¶
func (x *EntityOutline) ImplementsAlertableEntityOutline()
func (*EntityOutline) ImplementsEntityOutline ¶
func (x *EntityOutline) ImplementsEntityOutline()
type EntityOutlineInterface ¶
type EntityOutlineInterface interface {
ImplementsEntityOutline()
}
EntityOutline - The `EntityOutline` interface object allows fetching basic entity data for many entities at a time.
To understand more about entities and entity types, look at [our docs](https://docs.newrelic.com/docs/what-are-new-relic-entities).
func UnmarshalEntityOutlineInterface ¶
func UnmarshalEntityOutlineInterface(b []byte) (*EntityOutlineInterface, error)
UnmarshalEntityOutlineInterface unmarshals the interface into the correct type based on __typename provided by GraphQL
type EntityTag ¶
type EntityTag struct { // The tag's key Key string `json:"key,omitempty"` // A list of the tag values Values []string `json:"values,omitempty"` }
EntityTag - A tag that has been applied to an entity.
type ExternalEntityOutline ¶
type ExternalEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
ExternalEntityOutline - An External entity outline.
func (*ExternalEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *ExternalEntityOutline) ImplementsAlertableEntityOutline()
func (*ExternalEntityOutline) ImplementsEntityOutline ¶
func (x *ExternalEntityOutline) ImplementsEntityOutline()
type Float ¶
type Float string
Float - The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754).
type GenericEntityOutline ¶
type GenericEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
GenericEntityOutline - A generic entity outline.
func (*GenericEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *GenericEntityOutline) ImplementsAlertableEntityOutline()
func (*GenericEntityOutline) ImplementsEntityOutline ¶
func (x *GenericEntityOutline) ImplementsEntityOutline()
type GenericInfrastructureEntityOutline ¶
type GenericInfrastructureEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
GenericInfrastructureEntityOutline - An Infrastructure entity outline.
func (*GenericInfrastructureEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *GenericInfrastructureEntityOutline) ImplementsAlertableEntityOutline()
func (*GenericInfrastructureEntityOutline) ImplementsEntityOutline ¶
func (x *GenericInfrastructureEntityOutline) ImplementsEntityOutline()
func (*GenericInfrastructureEntityOutline) ImplementsInfrastructureIntegrationEntityOutline ¶
func (x *GenericInfrastructureEntityOutline) ImplementsInfrastructureIntegrationEntityOutline()
type InfrastructureAwsLambdaFunctionEntityOutline ¶
type InfrastructureAwsLambdaFunctionEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` IntegrationTypeCode string `json:"integrationTypeCode,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` Runtime string `json:"runtime,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
InfrastructureAwsLambdaFunctionEntityOutline - An AWS Lambda Function entity outline.
func (*InfrastructureAwsLambdaFunctionEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsAlertableEntityOutline()
func (*InfrastructureAwsLambdaFunctionEntityOutline) ImplementsEntityOutline ¶
func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsEntityOutline()
func (*InfrastructureAwsLambdaFunctionEntityOutline) ImplementsInfrastructureIntegrationEntityOutline ¶
func (x *InfrastructureAwsLambdaFunctionEntityOutline) ImplementsInfrastructureIntegrationEntityOutline()
type InfrastructureHostEntityOutline ¶
type InfrastructureHostEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` HostSummary InfrastructureHostSummaryData `json:"hostSummary,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
InfrastructureHostEntityOutline - An Infrastructure Host entity outline.
func (*InfrastructureHostEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *InfrastructureHostEntityOutline) ImplementsAlertableEntityOutline()
func (*InfrastructureHostEntityOutline) ImplementsEntityOutline ¶
func (x *InfrastructureHostEntityOutline) ImplementsEntityOutline()
type InfrastructureHostSummaryData ¶
type InfrastructureHostSummaryData struct { // Total CPU utilization as a percentage. CpuUtilizationPercent float64 `json:"cpuUtilizationPercent,omitempty"` // The cumulative disk fullness percentage. DiskUsedPercent float64 `json:"diskUsedPercent,omitempty"` // Total memory utilization as a percentage. MemoryUsedPercent float64 `json:"memoryUsedPercent,omitempty"` // The number of bytes per second received during the sampling period. NetworkReceiveRate float64 `json:"networkReceiveRate,omitempty"` // The number of bytes sent per second during the sampling period. NetworkTransmitRate float64 `json:"networkTransmitRate,omitempty"` // Number of services running on the host. ServicesCount int `json:"servicesCount,omitempty"` }
InfrastructureHostSummaryData - Summary statistics about the Infra Host.
type InfrastructureIntegrationEntityOutline ¶
type InfrastructureIntegrationEntityOutline struct {
IntegrationTypeCode string `json:"integrationTypeCode,omitempty"`
}
func (*InfrastructureIntegrationEntityOutline) ImplementsInfrastructureIntegrationEntityOutline ¶
func (x *InfrastructureIntegrationEntityOutline) ImplementsInfrastructureIntegrationEntityOutline()
type InfrastructureIntegrationEntityOutlineInterface ¶
type InfrastructureIntegrationEntityOutlineInterface interface {
ImplementsInfrastructureIntegrationEntityOutline()
}
func UnmarshalInfrastructureIntegrationEntityOutlineInterface ¶
func UnmarshalInfrastructureIntegrationEntityOutlineInterface(b []byte) (*InfrastructureIntegrationEntityOutlineInterface, error)
UnmarshalInfrastructureIntegrationEntityOutlineInterface unmarshals the interface into the correct type based on __typename provided by GraphQL
type KeyTransactionApplication ¶
type KeyTransactionApplication struct { // The application outline. Entity EntityOutlineInterface `json:"entity,omitempty"` // The guid of the application. GUID EntityGUID `json:"guid"` }
KeyTransactionApplication - The application wrapper.
func (*KeyTransactionApplication) UnmarshalJSON ¶
func (x *KeyTransactionApplication) UnmarshalJSON(b []byte) error
special
type KeyTransactionCreateQueryResponse ¶
type KeyTransactionCreateQueryResponse struct {
KeyTransactionCreateResult KeyTransactionCreateResult `json:"KeyTransactionCreate"`
}
type KeyTransactionCreateResult ¶
type KeyTransactionCreateResult struct { // The acceptable amount of time spent in the backend before customers get frustrated (Apdex target). ApdexTarget float64 `json:"apdexTarget,omitempty"` // The application associated with this key transaction Application KeyTransactionApplication `json:"application"` // The acceptable amount of time for rendering a page in a browser before customers get frustrated (browser Apdex target). BrowserApdexTarget float64 `json:"browserApdexTarget,omitempty"` // The GUID for the new key transaction. GUID EntityGUID `json:"guid,omitempty"` // The name of the metric underlying this key transaction. MetricName string `json:"metricName,omitempty"` // The name of the key transaction. Name string `json:"name,omitempty"` }
KeyTransactionCreateResult - The result of creating a key transaction.
type KeyTransactionDeleteQueryResponse ¶
type KeyTransactionDeleteQueryResponse struct {
KeyTransactionDeleteResult KeyTransactionDeleteResult `json:"KeyTransactionDelete"`
}
type KeyTransactionDeleteResult ¶
type KeyTransactionDeleteResult struct { // If the delete request succeeded. Success bool `json:"success,omitempty"` }
KeyTransactionDeleteResult - The result of deleting a key transaction.
type KeyTransactionEntityOutline ¶
type KeyTransactionEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
KeyTransactionEntityOutline - A Key Transaction entity outline.
func (*KeyTransactionEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *KeyTransactionEntityOutline) ImplementsAlertableEntityOutline()
func (*KeyTransactionEntityOutline) ImplementsEntityOutline ¶
func (x *KeyTransactionEntityOutline) ImplementsEntityOutline()
type KeyTransactionUpdateQueryResponse ¶
type KeyTransactionUpdateQueryResponse struct {
KeyTransactionUpdateResult KeyTransactionUpdateResult `json:"KeyTransactionUpdate"`
}
type KeyTransactionUpdateResult ¶
type KeyTransactionUpdateResult struct { // The acceptable amount of time spent in the backend before customers get frustrated (Apdex target). ApdexTarget float64 `json:"apdexTarget,omitempty"` // The application associated with this key transaction Application KeyTransactionApplication `json:"application"` // The acceptable amount of time for rendering a page in a browser before customers get frustrated (browser Apdex target). BrowserApdexTarget float64 `json:"browserApdexTarget,omitempty"` // The name of the key transaction. Name string `json:"name,omitempty"` }
KeyTransactionUpdateResult - The result of updating a key transaction.
type Keytransaction ¶
type Keytransaction struct {
// contains filtered or unexported fields
}
func New ¶
func New(config config.Config) Keytransaction
func (*Keytransaction) KeyTransactionCreate ¶
func (a *Keytransaction) KeyTransactionCreate( apdexTarget float64, applicationGUID EntityGUID, browserApdexTarget float64, metricName string, name string, ) (*KeyTransactionCreateResult, error)
Creates a key transaction.
func (*Keytransaction) KeyTransactionCreateWithContext ¶
func (a *Keytransaction) KeyTransactionCreateWithContext( ctx context.Context, apdexTarget float64, applicationGUID EntityGUID, browserApdexTarget float64, metricName string, name string, ) (*KeyTransactionCreateResult, error)
Creates a key transaction.
func (*Keytransaction) KeyTransactionDelete ¶
func (a *Keytransaction) KeyTransactionDelete( gUID EntityGUID, ) (*KeyTransactionDeleteResult, error)
Deletes a key transaction (historical data is not removed).
func (*Keytransaction) KeyTransactionDeleteWithContext ¶
func (a *Keytransaction) KeyTransactionDeleteWithContext( ctx context.Context, gUID EntityGUID, ) (*KeyTransactionDeleteResult, error)
Deletes a key transaction (historical data is not removed).
func (*Keytransaction) KeyTransactionUpdate ¶
func (a *Keytransaction) KeyTransactionUpdate( apdexTarget float64, browserApdexTarget float64, gUID EntityGUID, name string, ) (*KeyTransactionUpdateResult, error)
Update a key transaction.
func (*Keytransaction) KeyTransactionUpdateWithContext ¶
func (a *Keytransaction) KeyTransactionUpdateWithContext( ctx context.Context, apdexTarget float64, browserApdexTarget float64, gUID EntityGUID, name string, ) (*KeyTransactionUpdateResult, error)
Update a key transaction.
type MobileAppSummaryData ¶
type MobileAppSummaryData struct { // The number of times the app has been launched. AppLaunchCount int `json:"appLaunchCount,omitempty"` // The number of crashes. CrashCount int `json:"crashCount,omitempty"` // Crash rate is percentage of crashes per sessions. CrashRate float64 `json:"crashRate,omitempty"` // Error rate is the percentage of http errors per successful requests. HttpErrorRate float64 `json:"httpErrorRate,omitempty"` // The number of http requests. HttpRequestCount int `json:"httpRequestCount,omitempty"` // The rate of http requests per minute. HttpRequestRate float64 `json:"httpRequestRate,omitempty"` // The average response time for all http calls. HttpResponseTimeAverage nrtime.Seconds `json:"httpResponseTimeAverage,omitempty"` // The number of mobile sessions. MobileSessionCount int `json:"mobileSessionCount,omitempty"` // Network failure rate is the percentage of network failures per successful requests. NetworkFailureRate float64 `json:"networkFailureRate,omitempty"` // The number of users affected by crashes. UsersAffectedCount int `json:"usersAffectedCount,omitempty"` }
MobileAppSummaryData - Mobile application summary data
type MobileApplicationEntityOutline ¶
type MobileApplicationEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The ID of the Mobile App. ApplicationID int `json:"applicationId,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // Summary statistics about the Mobile App. MobileSummary MobileAppSummaryData `json:"mobileSummary,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
MobileApplicationEntityOutline - A Mobile Application entity outline.
func (*MobileApplicationEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *MobileApplicationEntityOutline) ImplementsAlertableEntityOutline()
func (*MobileApplicationEntityOutline) ImplementsEntityOutline ¶
func (x *MobileApplicationEntityOutline) ImplementsEntityOutline()
type NRQL ¶
type NRQL string
NRQL - This scalar represents a NRQL query string.
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 NRQL syntax.
type SecureCredentialEntityOutline ¶
type SecureCredentialEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The description of the entity. Description string `json:"description,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The domain-specific identifier for the entity. SecureCredentialId string `json:"secureCredentialId,omitempty"` // Summary statistics for the Synthetic Monitor Secure Credential. SecureCredentialSummary SecureCredentialSummaryData `json:"secureCredentialSummary,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` // The time at which the entity was last updated. UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` }
SecureCredentialEntityOutline - A secure credential entity outline.
func (*SecureCredentialEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *SecureCredentialEntityOutline) ImplementsAlertableEntityOutline()
func (*SecureCredentialEntityOutline) ImplementsEntityOutline ¶
func (x *SecureCredentialEntityOutline) ImplementsEntityOutline()
type SecureCredentialSummaryData ¶
type SecureCredentialSummaryData struct { // The number of monitors that contain this secure credential and failed their last check. FailingMonitorCount int `json:"failingMonitorCount,omitempty"` // The number of monitors that contain this secure credential. MonitorCount int `json:"monitorCount,omitempty"` }
SecureCredentialSummaryData - Summary statistics for the Synthetic Monitor Secure Credential.
type SemVer ¶
type SemVer string
SemVer - The `SemVer` scalar represents a version designation conforming to the SemVer specification.
type ServiceLevelDefinition ¶
type ServiceLevelDefinition struct { // The SLIs attached to the entity. Indicators []ServiceLevelIndicator `json:"indicators"` }
ServiceLevelDefinition - The service level defined for a specific entity.
type ServiceLevelEvents ¶
type ServiceLevelEvents struct { // The New Relic account to fetch the events from. Account AccountReference `json:"account,omitempty"` // The definition of bad events. BadEvents ServiceLevelEventsQuery `json:"badEvents,omitempty"` // The definition of good events. GoodEvents ServiceLevelEventsQuery `json:"goodEvents,omitempty"` // The definition of valid events. ValidEvents ServiceLevelEventsQuery `json:"validEvents"` }
ServiceLevelEvents - The events that define the SLI.
type ServiceLevelEventsQuery ¶
type ServiceLevelEventsQuery struct { // The NRDB event to fetch the data from. From NRQL `json:"from"` // The NRQL SELECT clause to aggregate events. Select ServiceLevelEventsQuerySelect `json:"select,omitempty"` // The NRQL condition to filter the events. Where NRQL `json:"where,omitempty"` }
ServiceLevelEventsQuery - The query that represents the events to fetch.
type ServiceLevelEventsQuerySelect ¶
type ServiceLevelEventsQuerySelect struct { // The attribute used in the selected function. Attribute string `json:"attribute,omitempty"` // The function to use in the SELECT clause. Function ServiceLevelEventsQuerySelectFunction `json:"function"` // The threshold used in the selected function. Threshold float64 `json:"threshold,omitempty"` }
ServiceLevelEventsQuerySelect - The resulting NRQL SELECT clause to aggregate events.
type ServiceLevelEventsQuerySelectFunction ¶
type ServiceLevelEventsQuerySelectFunction string
ServiceLevelEventsQuerySelectFunction - The function to use in the SELECT clause.
type ServiceLevelIndicator ¶
type ServiceLevelIndicator struct { // The date when the SLI was created represented in the number of milliseconds since the Unix epoch. CreatedAt *nrtime.EpochMilliseconds `json:"createdAt"` // The user who created the SLI. CreatedBy UserReference `json:"createdBy,omitempty"` // The description of the SLI. Description string `json:"description,omitempty"` // The entity which the SLI is attached to. EntityGUID EntityGUID `json:"entityGuid"` // The events that define the SLI. Events ServiceLevelEvents `json:"events"` // The unique entity identifier of the SLI. GUID EntityGUID `json:"guid"` // The unique identifier of the SLI. ID string `json:"id"` // The name of the SLI. Name string `json:"name"` // A list of objective definitions. Objectives []ServiceLevelObjective `json:"objectives"` // The resulting NRQL queries that help consume the metrics of the SLI. ResultQueries ServiceLevelIndicatorResultQueries `json:"resultQueries,omitempty"` // [DEPRECATED] The slug is deprecated and it will be removed from the schema as soon as possible. Slug string `json:"slug"` // The date when the SLI was last updated represented in the number of milliseconds since the Unix epoch. UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` // The user who last update the SLI. UpdatedBy UserReference `json:"updatedBy,omitempty"` }
ServiceLevelIndicator - The definition of the SLI.
type ServiceLevelIndicatorResultQueries ¶
type ServiceLevelIndicatorResultQueries struct { // The NRQL query that measures the good events. GoodEvents ServiceLevelResultQuery `json:"goodEvents"` // The NRQL query that measures the value of the SLI. Indicator ServiceLevelResultQuery `json:"indicator"` // The NRQL query that measures the valid events. ValidEvents ServiceLevelResultQuery `json:"validEvents"` }
ServiceLevelIndicatorResultQueries - The resulting NRQL queries that help consume the metrics of the SLI.
type ServiceLevelObjective ¶
type ServiceLevelObjective struct { // The description of the SLO. Description string `json:"description,omitempty"` // The name of the SLO. Name string `json:"name,omitempty"` // The resulting NRQL queries that help consume the metrics of the SLO. ResultQueries ServiceLevelObjectiveResultQueries `json:"resultQueries,omitempty"` // The target percentage of the SLO. Target float64 `json:"target"` // The time window configuration of the SLO. TimeWindow ServiceLevelObjectiveTimeWindow `json:"timeWindow"` }
ServiceLevelObjective - An objective definition.
type ServiceLevelObjectiveResultQueries ¶
type ServiceLevelObjectiveResultQueries struct { // The NRQL query that measures the attainment of the SLO target. Attainment ServiceLevelResultQuery `json:"attainment"` }
ServiceLevelObjectiveResultQueries - The resulting NRQL queries that help consume the metrics of the SLO.
type ServiceLevelObjectiveRollingTimeWindow ¶
type ServiceLevelObjectiveRollingTimeWindow struct { // The count of time units. Count int `json:"count"` // The time unit. Unit ServiceLevelObjectiveRollingTimeWindowUnit `json:"unit"` }
ServiceLevelObjectiveRollingTimeWindow - The rolling time window configuration of the SLO.
type ServiceLevelObjectiveRollingTimeWindowUnit ¶
type ServiceLevelObjectiveRollingTimeWindowUnit string
ServiceLevelObjectiveRollingTimeWindowUnit - The rolling time window units.
type ServiceLevelObjectiveTimeWindow ¶
type ServiceLevelObjectiveTimeWindow struct { // The rolling time window configuration of the SLO. Rolling ServiceLevelObjectiveRollingTimeWindow `json:"rolling,omitempty"` }
ServiceLevelObjectiveTimeWindow - The time window configuration of the SLO.
type ServiceLevelResultQuery ¶
type ServiceLevelResultQuery struct { // A NRQL query. NRQL NRQL `json:"nrql"` }
ServiceLevelResultQuery - A resulting query.
type SyntheticMonitorEntityOutline ¶
type SyntheticMonitorEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The Synthetic Monitor ID MonitorId string `json:"monitorId,omitempty"` // Summary statistics for the Synthetic Monitor. MonitorSummary SyntheticMonitorSummaryData `json:"monitorSummary,omitempty"` // The Synthetic Monitor type MonitorType SyntheticMonitorType `json:"monitorType,omitempty"` // The URL being monitored by a `SIMPLE` or `BROWSER` monitor type. MonitoredURL string `json:"monitoredUrl,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The duration in minutes between Synthetic Monitor runs. Period Minutes `json:"period,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
SyntheticMonitorEntityOutline - A Synthetic Monitor entity outline.
func (*SyntheticMonitorEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *SyntheticMonitorEntityOutline) ImplementsAlertableEntityOutline()
func (*SyntheticMonitorEntityOutline) ImplementsEntityOutline ¶
func (x *SyntheticMonitorEntityOutline) ImplementsEntityOutline()
type SyntheticMonitorStatus ¶
type SyntheticMonitorStatus string
type SyntheticMonitorSummaryData ¶
type SyntheticMonitorSummaryData struct { // The number of locations that are currently failing. LocationsFailing int `json:"locationsFailing,omitempty"` // The number of locations that are currently running. LocationsRunning int `json:"locationsRunning,omitempty"` Status SyntheticMonitorStatus `json:"status,omitempty"` // The percentage of successful synthetic monitor checks in the last 24 hours. SuccessRate float64 `json:"successRate,omitempty"` }
SyntheticMonitorSummaryData - Summary statistics for the Synthetic Monitor.
type SyntheticMonitorType ¶
type SyntheticMonitorType string
SyntheticMonitorType - The types of Synthetic Monitors.
type TeamEntityOutline ¶
type TeamEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
TeamEntityOutline - A Team entity outline.
func (*TeamEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *TeamEntityOutline) ImplementsAlertableEntityOutline()
func (*TeamEntityOutline) ImplementsEntityOutline ¶
func (x *TeamEntityOutline) ImplementsEntityOutline()
type ThirdPartyServiceEntityOutline ¶
type ThirdPartyServiceEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` }
ThirdPartyServiceEntityOutline - A third party service entity outline.
func (*ThirdPartyServiceEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *ThirdPartyServiceEntityOutline) ImplementsAlertableEntityOutline()
func (*ThirdPartyServiceEntityOutline) ImplementsEntityOutline ¶
func (x *ThirdPartyServiceEntityOutline) ImplementsEntityOutline()
type TimeWindowInput ¶
type TimeWindowInput struct { // The end time of the time window the number of milliseconds since the Unix epoch. EndTime *nrtime.EpochMilliseconds `json:"endTime"` // The start time of the time window the number of milliseconds since the Unix epoch. StartTime *nrtime.EpochMilliseconds `json:"startTime"` }
TimeWindowInput - Represents a time window input.
type UnavailableEntityOutline ¶
type UnavailableEntityOutline struct { int `json:"accountId,omitempty"` AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` Domain string `json:"domain,omitempty"` EntityType EntityType `json:"entityType,omitempty"` FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` GUID EntityGUID `json:"guid,omitempty"` GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` Name string `json:"name,omitempty"` Permalink string `json:"permalink,omitempty"` Reporting bool `json:"reporting,omitempty"` ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // // 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). Tags []EntityTag `json:"tags,omitempty"` Type string `json:"type,omitempty"` }AccountID
UnavailableEntityOutline - An entity outline that is unavailable.
func (*UnavailableEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *UnavailableEntityOutline) ImplementsAlertableEntityOutline()
func (*UnavailableEntityOutline) ImplementsEntityOutline ¶
func (x *UnavailableEntityOutline) ImplementsEntityOutline()
type UserReference ¶
type UserReference struct { Email string `json:"email,omitempty"` Gravatar string `json:"gravatar,omitempty"` ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` }
UserReference - The `UserReference` object provides basic identifying information about the user.
type WorkloadEntityOutline ¶
type WorkloadEntityOutline struct { Account AccountOutline `json:"account,omitempty"` // The New Relic account ID associated with this entity. AccountID int `json:"accountId,omitempty"` // The current alerting severity of the entity. AlertSeverity EntityAlertSeverity `json:"alertSeverity,omitempty"` // When the workload was created. CreatedAt *nrtime.EpochMilliseconds `json:"createdAt,omitempty"` // The user that created the workload. CreatedByUser UserReference `json:"createdByUser,omitempty"` // The entity's domain Domain string `json:"domain,omitempty"` // A value representing the combination of the entity's domain and type. EntityType EntityType `json:"entityType,omitempty"` // The date of last time the entity has updated any of its fields. FirstIndexedAt *nrtime.EpochMilliseconds `json:"firstIndexedAt,omitempty"` // A unique entity identifier. GUID EntityGUID `json:"guid,omitempty"` // The list of golden metrics for a specific entity GoldenMetrics EntityGoldenContextScopedGoldenMetrics `json:"goldenMetrics,omitempty"` // The list of golden tags for a specific entityType. GoldenTags EntityGoldenContextScopedGoldenTags `json:"goldenTags,omitempty"` // The time the entity was indexed. IndexedAt *nrtime.EpochMilliseconds `json:"indexedAt,omitempty"` // The last time the entity's reporting status changed. LastReportingChangeAt *nrtime.EpochMilliseconds `json:"lastReportingChangeAt,omitempty"` // The name of this entity. Name string `json:"name,omitempty"` // The url to the entity. Permalink string `json:"permalink,omitempty"` // The reporting status of the entity. If New Relic is successfully collecting data from your application, this will be true. Reporting bool `json:"reporting,omitempty"` // The service level defined for the entity. ServiceLevel ServiceLevelDefinition `json:"serviceLevel,omitempty"` // The tags applied to the entity. // // 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). Tags []EntityTag `json:"tags,omitempty"` // The entity's type Type string `json:"type,omitempty"` // When the workload was last updated. UpdatedAt *nrtime.EpochMilliseconds `json:"updatedAt,omitempty"` // Status of the workload. WorkloadStatus WorkloadStatus `json:"workloadStatus,omitempty"` }
WorkloadEntityOutline - A workload entity outline.
func (*WorkloadEntityOutline) ImplementsAlertableEntityOutline ¶
func (x *WorkloadEntityOutline) ImplementsAlertableEntityOutline()
func (*WorkloadEntityOutline) ImplementsEntityOutline ¶
func (x *WorkloadEntityOutline) ImplementsEntityOutline()
type WorkloadStatus ¶
type WorkloadStatus struct { // A description that provides additional details about the status of the workload. Description string `json:"description,omitempty"` // Indicates where the status value derives from. StatusSource WorkloadStatusSource `json:"statusSource,omitempty"` // The status of the workload. StatusValue WorkloadStatusValue `json:"statusValue,omitempty"` // A short description of the status of the workload. Summary string `json:"summary,omitempty"` }
WorkloadStatus - Detailed information about the status of a workload.
type WorkloadStatusSource ¶
type WorkloadStatusSource string
WorkloadStatusSource - Indicates where the status value derives from.
type WorkloadStatusValue ¶
type WorkloadStatusValue string
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.