diff options
Diffstat (limited to 'OPENECOMP-DEMO/controller-template/configuration')
51 files changed, 744 insertions, 0 deletions
diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable1Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable1Hour.json new file mode 100644 index 0000000..1c29c8e --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable1Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"1hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "3600000.0" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable6Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable6Hour.json new file mode 100644 index 0000000..b678471 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotRealtimeTable6Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"6hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV2", + "metricName": "timestampOfNewestPartition", + "upperBound": "2.16E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable12Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable12Hour.json new file mode 100644 index 0000000..4ad25b6 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable12Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"12hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "4.32E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Day.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Day.json new file mode 100644 index 0000000..a38eb54 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Day.json @@ -0,0 +1,7 @@ +{"alerts": {"1DayDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "8.64E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Hour.json new file mode 100644 index 0000000..1c29c8e --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable1Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"1hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "3600000.0" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Day.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Day.json new file mode 100644 index 0000000..f938582 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Day.json @@ -0,0 +1,7 @@ +{"alerts": {"2DayDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "1.728E8" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Hour.json new file mode 100644 index 0000000..54d06bb --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable2Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"2hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "7200000.0" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Day.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Day.json new file mode 100644 index 0000000..9f03b6b --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Day.json @@ -0,0 +1,7 @@ +{"alerts": {"4DayDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "3.456E8" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Hour.json new file mode 100644 index 0000000..a2d92fe --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable4Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"4hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "1.44E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable6Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable6Hour.json new file mode 100644 index 0000000..6d20e24 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable6Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"6hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "2.16E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable7Day.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable7Day.json new file mode 100644 index 0000000..69dd966 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable7Day.json @@ -0,0 +1,7 @@ +{"alerts": {"7DayDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "6.048E8" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable8Hour.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable8Hour.json new file mode 100644 index 0000000..e09b0f4 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/DataDepotTable8Hour.json @@ -0,0 +1,7 @@ +{"alerts": {"8hourDelay": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "timestampOfNewestPartition", + "upperBound": "2.88E7" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/Qfs80Percent.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/Qfs80Percent.json new file mode 100644 index 0000000..9a1fc9b --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/Qfs80Percent.json @@ -0,0 +1,16 @@ +{"alerts": { + "80PercentUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "ddUsage", + "upperBound": "80.0" + }, + "80PercentMetadataUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "mmUsage", + "upperBound": "80.0" + } +}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuota95.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuota95.json new file mode 100644 index 0000000..549b1cb --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuota95.json @@ -0,0 +1,16 @@ +{"alerts": { + "95PercentUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "dUsage", + "upperBound": "95.0" + }, + "95PercentMetadataUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "fUsage", + "upperBound": "95.0" + } +}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuotaStandard.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuotaStandard.json new file mode 100644 index 0000000..bacd3cb --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsQuotaStandard.json @@ -0,0 +1,16 @@ +{"alerts": { + "90PercentUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "dUsage", + "upperBound": "90.0" + }, + "90PercentMetadataUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "fUsage", + "upperBound": "90.0" + } +}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsStandard.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsStandard.json new file mode 100644 index 0000000..fb49e14 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/QfsStandard.json @@ -0,0 +1,16 @@ +{"alerts": { + "95PercentUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "ddUsage", + "upperBound": "95.0" + }, + "95PercentMetadataUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "mmUsage", + "upperBound": "95.0" + } +}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/ZfsStandard.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/ZfsStandard.json new file mode 100644 index 0000000..169d73e --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/ZfsStandard.json @@ -0,0 +1,7 @@ +{"alerts": {"90PercentUsage": { + "$class": "org.openecomp.ncomp.core.alerts.ThresholdAlert", + "operationalState": "OPERATIONAL", + "severity": "SEV1", + "metricName": "usage", + "upperBound": "90.0" +}}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/none.json b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/none.json new file mode 100644 index 0000000..3bef753 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/alertTemplates/none.json @@ -0,0 +1 @@ +{"alerts": {}}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json b/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json new file mode 100644 index 0000000..a414c06 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/functions/QfsQuotaFunction.json @@ -0,0 +1,71 @@ +{ + "$class": "org.openecomp.ncomp.core.function.RuleFunction", + "rules": [ + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "0", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "-1", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "2", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/fQuota", + "match": "4", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/name", + "match": "root", + "negation": "false" + }], + "action": {"value": "none"} + }, + { + "matches": [ + { + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/name", + "match": "mint", + "negation": "false" + }, + { + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "../name", + "match": "mobilityhome", + "negation": "false" + } + ], + "action": {"value": "QfsQuota95"} + }, + { + "matches": [], + "action": {"value": "QfsQuotaStandard"} + } + ] +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyAverage.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyAverage.json new file mode 100644 index 0000000..2958993 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyAverage.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1day", + "aggregationType": "AVERAGE" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyCount.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyCount.json new file mode 100644 index 0000000..87ac360 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyCount.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1day", + "aggregationType": "COUNT" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMax.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMax.json new file mode 100644 index 0000000..e84b097 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMax.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1day", + "aggregationType": "MAX" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMin.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMin.json new file mode 100644 index 0000000..48977cb --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailyMin.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1day", + "aggregationType": "MIN" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailySum.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailySum.json new file mode 100644 index 0000000..5c4c25f --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/dailySum.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1day", + "aggregationType": "SUM" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/default.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/default.json new file mode 100644 index 0000000..939d886 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/default.json @@ -0,0 +1,4 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": {"basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}} +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyAverage.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyAverage.json new file mode 100644 index 0000000..bd97ab0 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyAverage.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1hour", + "aggregationType": "AVERAGE" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyCount.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyCount.json new file mode 100644 index 0000000..f947a96 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyCount.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1hour", + "aggregationType": "COUNT" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMax.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMax.json new file mode 100644 index 0000000..ed72260 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMax.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1hour", + "aggregationType": "MAX" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMin.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMin.json new file mode 100644 index 0000000..76ea00a --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlyMin.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1hour", + "aggregationType": "MIN" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlySum.json b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlySum.json new file mode 100644 index 0000000..dcdfed2 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/metricOptions/hourlySum.json @@ -0,0 +1,11 @@ +{ + "$class": "org.openecomp.ncomp.core.metrics.SequenceMetricValueOption", + "options": { + "basic": {"$class": "org.openecomp.ncomp.core.metrics.BasicMetricValueOption"}, + "aggregation": { + "$class": "org.openecomp.ncomp.core.metrics.AggregationMetricValueOption", + "duration": "1hour", + "aggregationType": "SUM" + } + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/rules/Authorization_Error.json b/OPENECOMP-DEMO/controller-template/configuration/rules/Authorization_Error.json new file mode 100644 index 0000000..7d6eaeb --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/rules/Authorization_Error.json @@ -0,0 +1,8 @@ +{ + "messageFilter": ".*Authorization: bad PW.*", + "level": "UNKNOWN", + "severity": "UNKNOWN", + "newLevel": "UNKNOWN", + "newSeverity": "SEV1", + "disabled": "false" +} diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-apps.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-apps.json new file mode 100644 index 0000000..40a28b4 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-apps.json @@ -0,0 +1,36 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate", + "treePath": "/", + "tablePath": "/reports/dcae/cdap-apps", + "rowPath": "/services/cdap.*/instances/.*/apps/.*", + "columns": { + "service": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../../name" + }, + "instance": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../name" + }, + "name": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/name" + }, + "artifactName": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/artifactName" + }, + "version": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/version" + }, + "jarFile": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/jarFile" + }, + "appConfig": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/appConfigFileContent" + }, + } +} diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-artifacts.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-artifacts.json new file mode 100644 index 0000000..66c01db --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/cdap-artifacts.json @@ -0,0 +1,28 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate", + "treePath": "/", + "tablePath": "/reports/dcae/cdap-artifacts", + "rowPath": "/services/cdap.*/instances/.*/artifacts/.*", + "columns": { + "service": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../../name" + }, + "instance": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../name" + }, + "name": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/name" + }, + "version": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/version" + }, + "jarFile": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/jarFile" + }, + } +} diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-docker.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-docker.json new file mode 100644 index 0000000..4b5a04d --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-docker.json @@ -0,0 +1,28 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate", + "treePath": "/", + "tablePath": "/reports/dcae/docker-containers", + "rowPath": "/services/.*/instances/.*/dockerHost/containers/.*", + "columns": { + "service": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../../../name" + }, + "instance": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../../name" + }, + "name": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/name" + }, + "status": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/status" + }, + "command": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/command" + }, + } +} diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-service-instances.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-service-instances.json new file mode 100644 index 0000000..a0f3cee --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-service-instances.json @@ -0,0 +1,28 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate", + "treePath": "/", + "tablePath": "/reports/dcae/service-instances", + "rowPath": "/services/.*/instances/.*", + "columns": { + "service": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../name" + }, + "instance": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/name" + }, + "status": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/status" + }, + "healthTestStatus": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/healthTestStatus" + }, + "healthTestMessageCode": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/healthTestMessageCode" + }, + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-vms.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-vms.json new file mode 100644 index 0000000..3410572 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/dcae-vms.json @@ -0,0 +1,40 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate", + "treePath": "/", + "tablePath": "/reports/dcae/vms", + "rowPath": "/services/.*/instances/.*/servers/.*", + "columns": { + "service": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../../name" + }, + "instance": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "../name" + }, + "name": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/name" + }, + "dns": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/networks/public/dnsName" + }, + "ip-assignment": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/networks/public/ip" + }, + "state": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/operationalState" + }, + "public-ip": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/publicIp" + }, + "private-ip": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/privateIp" + }, + } +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1day.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1day.json new file mode 100644 index 0000000..d83caec --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1day.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1day/ALL", + "minLevel": "UNKNOWN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-1day", + "aggregationDuration": "1hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1week.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1week.json new file mode 100644 index 0000000..3c0b3c5 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-1week.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1week/ALL", + "minLevel": "UNKNOWN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-7day", + "aggregationDuration": "1day" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-2hour.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-2hour.json new file mode 100644 index 0000000..ba19362 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-ALL-2hour.json @@ -0,0 +1,9 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/2hour/ALL", + "minLevel": "UNKNOWN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-2hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1day.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1day.json new file mode 100644 index 0000000..ffce5ce --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1day.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1day/SEV1", + "minLevel": "UNKNOWN", + "minSeverity": "SEV1", + "prefixResourcePath": "", + "duration": "-1day", + "aggregationDuration": "1hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1week.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1week.json new file mode 100644 index 0000000..be7b501 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-1week.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1week/SEV1", + "minLevel": "UNKNOWN", + "minSeverity": "SEV1", + "prefixResourcePath": "", + "duration": "-7day", + "aggregationDuration": "1day" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-2hour.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-2hour.json new file mode 100644 index 0000000..ad01a65 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV1-2hour.json @@ -0,0 +1,9 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/2hour/SEV1", + "minLevel": "UNKNOWN", + "minSeverity": "SEV1", + "prefixResourcePath": "", + "duration": "-2hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1day.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1day.json new file mode 100644 index 0000000..0df8170 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1day.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1day/SEV2", + "minLevel": "UNKNOWN", + "minSeverity": "SEV2", + "prefixResourcePath": "", + "duration": "-1day", + "aggregationDuration": "1hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1week.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1week.json new file mode 100644 index 0000000..c6cdfaf --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-1week.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1week/SEV2", + "minLevel": "UNKNOWN", + "minSeverity": "SEV2", + "prefixResourcePath": "", + "duration": "-7day", + "aggregationDuration": "1day" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-2hour.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-2hour.json new file mode 100644 index 0000000..d51e4c1 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-SEV2-2hour.json @@ -0,0 +1,9 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/2hour/SEV2", + "minLevel": "UNKNOWN", + "minSeverity": "SEV2", + "prefixResourcePath": "", + "duration": "-2hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1day.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1day.json new file mode 100644 index 0000000..b0f9816 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1day.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1day/WARN", + "minLevel": "WARN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-1day", + "aggregationDuration": "1hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1week.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1week.json new file mode 100644 index 0000000..8d1d59d --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-1week.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/1week/WARN", + "minLevel": "WARN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-7day", + "aggregationDuration": "1day" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-2hour.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-2hour.json new file mode 100644 index 0000000..a6a6d8b --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-WARN-2hour.json @@ -0,0 +1,9 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/2hour/WARN", + "minLevel": "WARN", + "minSeverity": "UNKNOWN", + "prefixResourcePath": "", + "duration": "-2hour" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-mail.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-mail.json new file mode 100644 index 0000000..8b71fd8 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/log-mail.json @@ -0,0 +1,10 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/mail", + "minLevel": "UNKNOWN", + "minSeverity": "SEV1", + "prefixResourcePath": "", + "duration": "-1hour", + "aggregationDuration": "99999day" +}
\ No newline at end of file diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/logging-count.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/logging-count.json new file mode 100644 index 0000000..5e5d3e7 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/logging-count.json @@ -0,0 +1,67 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate", + "treePath": "/", + "tablePath": "/reports/logging/count", + "columns": { + "path": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "$path" + }, + "class": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "$class" + }, + "Logmessage (last hour)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/ALL/count", + "option": {"$ref": "/configuration/metricOptions/hourlyCount"} + }, + "SEV1 Logmessage (last hour)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/SEV1/count", + "option": {"$ref": "/configuration/metricOptions/hourlyCount"} + }, + "SEV2 Logmessage (last hour)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/SEV2/count", + "option": {"$ref": "/configuration/metricOptions/hourlyCount"} + }, + "Logmessage (last day)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/ALL/count", + "option": {"$ref": "/configuration/metricOptions/dailyCount"} + }, + "SEV1 Logmessage (last day)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/SEV1/count", + "option": {"$ref": "/configuration/metricOptions/dailyCount"} + }, + "SEV2 Logmessage (last day)": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn", + "path": "/logMessageStats/SEV2/count", + "option": {"$ref": "/configuration/metricOptions/dailyCount"} + } + }, + "iterator": { + "$class": "org.openecomp.ncomp.core.function.IteratorUsingFunction", + "paths": ["/"], + "recursive": "true", + "filter": { + "$class": "org.openecomp.ncomp.core.function.RuleFunction", + "rules": [ + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchInstanceOf", + "ePackage": "org.openecomp.ncomp.sirius.manager.tableTemplate.ModelPackage", + "eName": "LogMessageContainer" + }], + "action": {"value": "true"} + }, + { + "matches": [], + "action": {"value": "false"} + } + ] + } + } +} diff --git a/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/suspended.json b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/suspended.json new file mode 100644 index 0000000..f3adcc2 --- /dev/null +++ b/OPENECOMP-DEMO/controller-template/configuration/tableTemplates/suspended.json @@ -0,0 +1,42 @@ +{ + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate", + "treePath": "/", + "tablePath": "/reports/suspended", + "columns": { + "path": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "$path" + }, + "class": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "$class" + }, + "Operational State": { + "$class": "org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn", + "path": "/operationalState" + } + }, + "iterator": { + "$class": "org.openecomp.ncomp.core.function.IteratorUsingFunction", + "paths": ["/"], + "recursive": "true", + "filter": { + "$class": "org.openecomp.ncomp.core.function.RuleFunction", + "rules": [ + { + "matches": [{ + "$class": "org.openecomp.ncomp.core.function.FunctionMatchAttribute", + "path": "/operationalState", + "match": "SUSPENDED", + "negation": "false" + }], + "action": {"value": "true"} + }, + { + "matches": [], + "action": {"value": "false"} + } + ] + } + } +} |