diff options
author | Bryan Sullivan <bryan.sullivan@att.com> | 2016-10-15 09:54:59 -0700 |
---|---|---|
committer | Bryan Sullivan <bryan.sullivan@att.com> | 2016-10-15 09:54:59 -0700 |
commit | 6a8f06100abf6fcec0ffab5d7c71c4becddb2812 (patch) | |
tree | 0ac14277b7495014397bfc06019d202ca960e0a5 /tests/blueprints/tosca-vnfd-hello-ves/monitor.py | |
parent | a939d3cda9fef3a935dc6176ab88241619eb344c (diff) |
Fix state change detection, add to monitor
JIRA: VES-1
Change-Id: Icd78d6ff941e46850d4635a7d136e8b1a85baa25
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tests/blueprints/tosca-vnfd-hello-ves/monitor.py')
-rw-r--r-- | tests/blueprints/tosca-vnfd-hello-ves/monitor.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/blueprints/tosca-vnfd-hello-ves/monitor.py b/tests/blueprints/tosca-vnfd-hello-ves/monitor.py index 9f3b7ff..24ad557 100644 --- a/tests/blueprints/tosca-vnfd-hello-ves/monitor.py +++ b/tests/blueprints/tosca-vnfd-hello-ves/monitor.py @@ -25,9 +25,13 @@ with open('/home/ubuntu/ves.log') as f: if line: # print line, if "requestRate" in line: -# print line, - rate = line[27:-2] - print 'request rate: {0}'.format(rate) +# print line, + rate = line[27:-2] + print 'request rate: {0}'.format(rate) #....5....1....5....2....5....3....5 # "requestRate": 2264, + if "\"specificProblem\": \"Started\"" in line: + print 'app state change: Started' + if "\"specificProblem\": \"Stopped\"" in line: + print 'app state change: Stopped' |