-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Add_parser_iris_list
- Loading branch information
Showing
5 changed files
with
669 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.. automodule:: insights.parsers.eap_json_reports | ||
:members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
""" | ||
EAP Json Report Files | ||
===================== | ||
EAP runtime will generate JSON report files under /var/tmp/insights-runtimes/uploads/ | ||
This module provides processing for the json report files of EAP runtimes. | ||
""" | ||
|
||
from insights.core import JSONParser | ||
from insights.core.plugins import parser | ||
from insights.specs import Specs | ||
|
||
|
||
@parser(Specs.eap_json_reports) | ||
class EAPJSONReports(JSONParser): | ||
""" | ||
Class to parse the EAP json report files. | ||
Sample input data:: | ||
{ | ||
"version": "1.0.0", | ||
"idHash": "e38277334d0f6b6fdc6f3b831fb102cdd70f04faab5c38b0be36fb1aacb4236e", | ||
"basic": { | ||
"app.user.dir": "/opt/t_eap/jboss-eap-7.4", | ||
"java.specification.version": "1.8", | ||
"java.runtime.version": "1.8.0_362-b09", | ||
"java.class.path": "/opt/t_eap/jboss-eap-7.4/jboss-modules.jar", | ||
"system.os.version": "4.18.0-425.13.1.el8_7.x86_64", | ||
"jvm.args": [ | ||
"-D[Standalone]", | ||
"-verbose:gc", | ||
"-Xloggc:/opt/t_eap/jboss-eap-7.4/standalone/log/gc.log", | ||
"-Djboss.modules.system.pkgs=org.jboss.byteman", | ||
"-Dorg.jboss.boot.log.file=/opt/t_eap/jboss-eap-7.4/standalone/log/server.log", | ||
"-Dlogging.configuration=file:/opt/t_eap/jboss-eap-7.4/standalone/configuration/logging.properties" | ||
] | ||
} | ||
} | ||
Examples: | ||
>>> type(eap_json_report) | ||
<class 'insights.parsers.eap_json_reports.EAPJSONReports'> | ||
>>> str(eap_json_report["version"]) | ||
'1.0.0' | ||
>>> "idHash" in eap_json_report | ||
True | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.