AptlyStar

New Relic

Query observability data and record deployments in New Relic

使用方法

Integrate New Relic into workflows. Run NRQL queries, search monitored entities, fetch entity details, and record deployment change events.

ツール

new_relic_nrql_query

Run a NRQL query against a New Relic account using NerdGraph.

入力

パラメータ型必須説明
apiKeystringはいNew Relic user API key for NerdGraph
regionstringいいえNew Relic data center region: us or eu
accountIdnumberはいNew Relic account ID to query
nrqlstringはいNRQL query to execute
timeoutnumberいいえOptional query timeout in seconds

出力

パラメータ型説明
resultsarrayNRQL result rows. Row fields depend on the query projection.
resultCountnumberNumber of NRQL result rows returned

new_relic_search_entities

Search New Relic entities by name, GUID, domain type, tags, or reporting state.

入力

パラメータ型必須説明
apiKeystringはいNew Relic user API key for NerdGraph
regionstringいいえNew Relic data center region: us or eu
querystringはいEntity search query, for example: name like "api" or domainType = "APM-APPLICATION"
cursorstringいいえPagination cursor from a previous entity search

出力

パラメータ型説明
countnumberTotal number of entities matching the query
querystringEntity search query New Relic executed
entitiesarrayMatching New Relic entities
↳ guidstringEntity GUID
↳ namestringEntity name
↳ entityTypestringEntity type
nextCursorstringCursor for the next page of results

new_relic_get_entity

Fetch a New Relic entity by GUID.

入力

パラメータ型必須説明
apiKeystringはいNew Relic user API key for NerdGraph
regionstringいいえNew Relic data center region: us or eu
guidstringはいEntity GUID

出力

パラメータ型説明
entityobjectNew Relic entity details
↳ guidstringEntity GUID
↳ namestringEntity name
↳ entityTypestringEntity type

new_relic_create_deployment_event

Record a deployment change event in New Relic change tracking.

入力

パラメータ型必須説明
apiKeystringはいNew Relic user API key for NerdGraph
regionstringいいえNew Relic data center region: us or eu
entityGuidstringはいGUID of the entity associated with the deployment
versionstringはいDeployment version, release name, or commit SHA
shortDescriptionstringいいえShort description of the deployment
descriptionstringいいえLonger deployment description
changelogstringいいえDeployment changelog text or URL
commitstringいいえCommit SHA or identifier associated with the deployment
deepLinkstringいいえURL to the deployment, build, or release details
userstringいいえUser or automation that performed the deployment
groupIdstringいいえOptional group ID to correlate related changes
customAttributesjsonいいえCustom change event metadata as key-value pairs with string, number, or boolean values
deploymentTypestringいいえDeployment type: basic, blue green, canary, rolling, or shadow
timestampnumberいいえEvent timestamp in milliseconds since Unix epoch

出力

パラメータ型説明
eventobjectCreated New Relic change tracking event
↳ changeTrackingIdstringNew Relic change tracking ID
↳ customAttributesjsonCustom attributes on the change tracking event
↳ categorystringChange category
↳ categoryAndTypestringCombined category and type
↳ typestringChange type
↳ shortDescriptionstringShort change description
↳ descriptionstringChange description
↳ timestampnumberChange timestamp in milliseconds
↳ userstringUser associated with the change
↳ groupIdstringChange group ID
↳ entityobjectEntity associated with the change
↳ guidstringEntity GUID
↳ namestringEntity name
messagesarrayMessages returned by New Relic for the created change event

On this page