Skip to content

Commit

Permalink
feat: add cox_generic entity definition (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
khpeet authored Jul 23, 2024
1 parent ae12c2d commit 376efaf
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
38 changes: 38 additions & 0 deletions entity-types/ext-cox_generic/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "Cox_Generic_Entity_Template",
"description": null,
"pages": [
{
"name": "Cox_Generic_Entity_Template",
"description": null,
"widgets": [
{
"title": "Status",
"layout": {
"column": 1,
"row": 1,
"width": 4,
"height": 3
},
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(state) as 'Current State' FROM Metric WHERE source='coxGenericSysHealthPulse' SINCE 1 day ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
}
]
}
]
}
25 changes: 25 additions & 0 deletions entity-types/ext-cox_generic/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
domain: EXT
type: COX_GENERIC

synthesis:
rules:
- identifier: appName
name: appName
encodeIdentifierInGUID: true
conditions:
- attribute: source
value: coxGenericSysHealthPulse
tags:
stack:
state:
multiValue: false
domain:
application:

dashboardTemplates:
newRelic:
template: dashboard.json

configuration:
entityExpirationTime: EIGHT_DAYS
alertable: true
5 changes: 5 additions & 0 deletions entity-types/ext-cox_generic/summary_metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
state:
tag:
key: state
title: State
unit: STRING
23 changes: 23 additions & 0 deletions entity-types/ext-cox_generic/tests/Metric.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"LeadershipDashboard": "No",
"appName": "OSS - Contour 2 - Video",
"application": "Contour 2",
"csrt.productId": 3,
"csrt.syndicated.gauge": {
"type": "gauge",
"count": 1,
"sum": 0,
"min": 0,
"max": 0,
"latest": 0
},
"csrt.timestamp": 1721640327.472786,
"domain": "Video",
"metricName": "csrt.syndicated.gauge",
"newrelic.source": "metricAPI",
"source": "coxGenericSysHealthPulse",
"stack": "OSS",
"state": "Green"
}
]

0 comments on commit 376efaf

Please sign in to comment.