curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-testframework-stats_all/_search?pretty=true"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5db96476206001102427313b-cpu-utilization/_search?pretty=true"
curl -XPOST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search?v&pretty" -d '
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search' -d '
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5db96476206001102427313b-cpu-utilization/_search' -d '
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization/_search' -d '
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":26,"max_score":1.0,"hits":[{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW2198sfGb6oRN1s8ZCF","_score":1.0,"_source":{"application":"test-framework-minion","user_p":27.0,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:58:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21-LhqGb6oRN1s8ZUk","_score":1.0,"_source":{"application":"test-framework-minion","user_p":58.75,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:59:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_GQw_4fAvohBONDB","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.499999999999995,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:02:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_GQw_4fAvohBONDC","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:03:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_U8gGb6oRN1s8bJq","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.458333333333331,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:04:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_ySlGb6oRN1s8b4r","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.409836065573771,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:05:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21-o5swEcMd9IvMuHs","_score":1.0,"_source":{"application":"test-framework-minion","user_p":58.75,"hostname":"10.31.33.232","@timestamp":"2019-10-10T13:59:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW21_jnewEcMd9IvMvmu","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:03:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW22AtArwEcMd9IvMxdp","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.368852459016396,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:10:00+00:00"}},{"_index":"testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization","_type":"system","_id":"AW22A7r4wEcMd9IvMxx_","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.333333333333326,"hostname":"10.31.33.232","@timestamp":"2019-10-10T14:09:00+00:00"}}]}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search?pretty=true"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search?pretty=true"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty=true"
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_search' -d '
:https://corex-dev.awsdsi.ghx.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-10-30T10:24:39.757Z&interval=2m&testResultId=5db96476206001102427313b&toDate=2019-10-30T10:37:04.066Z&viewType=chart
{"JSON":{"data":[{"10.31.36.192-ui-mex":1.9166666269302368,"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.37.146-ui-heimdall":14.916666984558105,"10.31.32.198-ui-heimdall":1.25,"10.31.33.6-jobs":13.389830589294434,"10.31.34.52-test-framework-gru":0.14830508828163147,"10.31.32.27-processing-engine":27.868852615356445,"10.31.36.203-ui-invoicing":1.6666666269302368,"10.31.34.191-ui-heimdall":1.2711864709854126,"10.31.35.26-data-poller":3.852458953857422,"10.31.59.13-io-engine":26.47541046142578,"10.31.33.224-ui-rc":1.5,"time":1572431100000,"10.31.34.100-ui-heimdall":2.7868852615356445},{"10.31.36.192-ui-mex":1.8032786846160889,"10.31.33.225-regapi-ws":1.7796610593795776,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.37.146-ui-heimdall":1.7213114500045776,"10.31.32.198-ui-heimdall":1.6949152946472168,"10.31.33.6-jobs":11.803278923034668,"10.31.34.52-test-framework-gru":0.1041666641831398,"10.31.32.27-processing-engine":20.423728942871094,"10.31.36.203-ui-invoicing":2.5833332538604736,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.26-data-poller":4.237287998199463,"10.31.59.13-io-engine":26,"10.31.33.224-ui-rc":1.8852459192276,"time":1572431160000,"10.31.34.100-ui-heimdall":4.576271057128906},{"10.31.36.192-ui-mex":1.5254237651824951,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.33.225-regapi-ws":1.3333333730697632,"10.31.37.146-ui-heimdall":2.6271185874938965,"10.31.35.221-ui-heimdall":68.75,"10.31.37.26-jobs":60.16666793823242,"10.31.33.189-processing-engine":64.91525268554688,"10.31.32.198-ui-heimdall":1.311475396156311,"10.31.59.74-io-engine":62.91666793823242,"10.31.33.78-ui-mex":45.819671630859375,"10.31.35.238-regapi-ws":66.83333587646484,"10.31.33.6-jobs":9.576271057128906,"10.31.34.52-test-framework-gru":0.1666666716337204,"10.31.32.27-processing-engine":17.66666603088379,"10.31.36.203-ui-invoicing":1.6666666269302368,"10.31.37.20-data-poller":66.3559341430664,"10.31.37.102-ui-invoicing":50.08333206176758,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":43.16666793823242,"10.31.35.26-data-poller":4.166666507720947,"10.31.59.13-io-engine":25.3389835357666,"10.31.33.224-ui-rc":1.610169529914856,"time":1572431220000,"10.31.34.100-ui-heimdall":6.666666507720947},{"10.31.36.192-ui-mex":1.5833333730697632,"10.31.32.96-ui-heimdall":1.6666666269302368,"10.31.33.225-regapi-ws":1.5,"10.31.37.146-ui-heimdall":1.5833333730697632,"10.31.35.221-ui-heimdall":72.25,"10.31.37.26-jobs":89.66666412353516,"10.31.33.189-processing-engine":85,"10.31.32.198-ui-heimdall":1.3559322357177734,"10.31.59.74-io-engine":91.80327606201172,"10.31.33.78-ui-mex":85.4237289428711,"10.31.35.238-regapi-ws":75.66666412353516,"10.31.33.6-jobs":11.5,"10.31.34.52-test-framework-gru":0.125,"10.31.32.27-processing-engine":14.25,"10.31.36.203-ui-invoicing":3.1666667461395264,"10.31.37.20-data-poller":79.58333587646484,"10.31.37.102-ui-invoicing":84.75,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":57.5,"10.31.35.26-data-poller":3.7704918384552,"10.31.59.13-io-engine":26.31147575378418,"10.31.33.224-ui-rc":1.5573770999908447,"time":1572431280000,"10.31.34.100-ui-heimdall":6.967213153839111},{"10.31.36.192-ui-mex":1.5,"10.31.33.225-regapi-ws":2.0833332538604736,"10.31.32.96-ui-heimdall":1.1666666269302368,"10.31.37.146-ui-heimdall":1.9166666269302368,"10.31.35.221-ui-heimdall":87.95082092285156,"10.31.37.26-jobs":68.41666412353516,"10.31.33.189-processing-engine":67.91666412353516,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":86.08333587646484,"10.31.33.78-ui-mex":80.58333587646484,"10.31.35.238-regapi-ws":89.5,"10.31.33.6-jobs":10.833333015441895,"10.31.34.52-test-framework-gru":0.125,"10.31.32.27-processing-engine":17,"10.31.36.203-ui-invoicing":8.333333015441895,"10.31.37.20-data-poller":68.75,"10.31.37.102-ui-invoicing":78.75,"10.31.34.191-ui-heimdall":1.6393442153930664,"10.31.35.107-ui-rc":87.41666412353516,"10.31.35.26-data-poller":3.8135592937469482,"10.31.59.13-io-engine":25,"10.31.33.224-ui-rc":1.7796610593795776,"time":1572431340000,"10.31.34.100-ui-heimdall":5.677966117858887},{"10.31.36.192-ui-mex":1.9166666269302368,"10.31.32.96-ui-heimdall":1.4166666269302368,"10.31.33.225-regapi-ws":1.4166666269302368,"10.31.37.146-ui-heimdall":2.5833332538604736,"10.31.35.221-ui-heimdall":66.44068145751953,"10.31.37.26-jobs":88.83333587646484,"10.31.33.189-processing-engine":91.91666412353516,"10.31.32.198-ui-heimdall":1.4166666269302368,"10.31.59.74-io-engine":89.40677642822266,"10.31.33.78-ui-mex":65.6557388305664,"10.31.35.238-regapi-ws":85.5,"10.31.33.6-jobs":11.967212677001953,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.32.27-processing-engine":30.57377052307129,"10.31.36.203-ui-invoicing":3.25,"10.31.37.20-data-poller":93.75,"10.31.37.102-ui-invoicing":79.08333587646484,"10.31.34.191-ui-heimdall":1.4406780004501343,"10.31.35.107-ui-rc":84.08333587646484,"10.31.35.26-data-poller":3.9166667461395264,"10.31.59.13-io-engine":26.75,"10.31.33.224-ui-rc":1.5833333730697632,"time":1572431400000,"10.31.34.100-ui-heimdall":3.1666667461395264},{"10.31.36.192-ui-mex":1.6393442153930664,"10.31.33.225-regapi-ws":1.9166666269302368,"10.31.32.96-ui-heimdall":1.25,"10.31.37.146-ui-heimdall":1.5,"10.31.35.221-ui-heimdall":82.08333587646484,"10.31.37.26-jobs":84.83333587646484,"10.31.33.189-processing-engine":91,"10.31.32.198-ui-heimdall":1.6666666269302368,"10.31.59.74-io-engine":92.75,"10.31.33.78-ui-mex":67.54237365722656,"10.31.33.6-jobs":9.406779289245605,"10.31.35.238-regapi-ws":6.229508399963379,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.32.27-processing-engine":13.389830589294434,"10.31.36.203-ui-invoicing":2,"10.31.37.20-data-poller":89.33333587646484,"10.31.37.102-ui-invoicing":29.8360652923584,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.107-ui-rc":25.16666603088379,"10.31.35.26-data-poller":3.75,"10.31.59.13-io-engine":24.672130584716797,"10.31.33.224-ui-rc":1.5833333730697632,"time":1572431460000,"10.31.34.100-ui-heimdall":6.166666507720947},{"10.31.36.192-ui-mex":4.06779670715332,"10.31.33.225-regapi-ws":1.5,"10.31.32.96-ui-heimdall":1.3934426307678223,"10.31.37.146-ui-heimdall":1.9166666269302368,"10.31.35.221-ui-heimdall":5.25,"10.31.37.26-jobs":89.25,"10.31.33.189-processing-engine":85.6557388305664,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":47,"10.31.33.78-ui-mex":2.25,"10.31.33.6-jobs":13.833333015441895,"10.31.35.238-regapi-ws":2.3728814125061035,"10.31.34.52-test-framework-gru":0.1666666716337204,"10.31.32.27-processing-engine":12,"10.31.36.203-ui-invoicing":2.5,"10.31.37.20-data-poller":62.08333206176758,"10.31.37.102-ui-invoicing":2.4166667461395264,"10.31.34.191-ui-heimdall":1.25,"10.31.35.26-data-poller":3.9166667461395264,"10.31.35.107-ui-rc":2.5,"10.31.59.13-io-engine":24.6610164642334,"10.31.33.224-ui-rc":2.75,"time":1572431520000,"10.31.34.100-ui-heimdall":5.083333492279053},{"10.31.36.192-ui-mex":2.25,"10.31.32.96-ui-heimdall":1.610169529914856,"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.37.146-ui-heimdall":1.6666666269302368,"10.31.35.221-ui-heimdall":8.68852424621582,"10.31.37.26-jobs":89.83606719970703,"10.31.33.189-processing-engine":67.03389739990234,"10.31.32.198-ui-heimdall":1.2295081615447998,"10.31.59.74-io-engine":35.33333206176758,"10.31.33.78-ui-mex":9.083333015441895,"10.31.33.6-jobs":9.583333015441895,"10.31.35.238-regapi-ws":3.0833332538604736,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":18.66666603088379,"10.31.37.102-ui-invoicing":2.8813560009002686,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.26-data-poller":3.9344263076782227,"10.31.35.107-ui-rc":2.7868852615356445,"10.31.59.13-io-engine":24.25,"10.31.33.224-ui-rc":1.6666666269302368,"time":1572431580000,"10.31.34.100-ui-heimdall":3.524590253829956},{"10.31.33.225-regapi-ws":1.3559322357177734,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":1.6666666269302368,"10.31.35.221-ui-heimdall":2.96610164642334,"10.31.37.26-jobs":60.084747314453125,"10.31.33.189-processing-engine":36.33333206176758,"10.31.32.198-ui-heimdall":1.3559322357177734,"10.31.59.74-io-engine":34.41666793823242,"10.31.33.78-ui-mex":1.8333333730697632,"10.31.35.238-regapi-ws":2.0833332538604736,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.37.20-data-poller":10.083333015441895,"10.31.37.102-ui-invoicing":1.9166666269302368,"10.31.34.191-ui-heimdall":1.5833333730697632,"10.31.35.107-ui-rc":1.610169529914856,"10.31.59.13-io-engine":24.66666603088379,"time":1572431640000},{"10.31.33.225-regapi-ws":1.5,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":2.131147623062134,"10.31.35.221-ui-heimdall":26.66666603088379,"10.31.37.26-jobs":39.5,"10.31.33.189-processing-engine":41.41666793823242,"10.31.32.198-ui-heimdall":1.4166666269302368,"10.31.59.74-io-engine":32.91666793823242,"10.31.33.78-ui-mex":1.6393442153930664,"10.31.35.238-regapi-ws":2.3333332538604736,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":6.833333492279053,"10.31.37.102-ui-invoicing":2.3333332538604736,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":2.1666667461395264,"10.31.59.13-io-engine":26.33333396911621,"time":1572431700000},{"10.31.33.225-regapi-ws":1.5833333730697632,"10.31.32.96-ui-heimdall":1.3333333730697632,"10.31.37.146-ui-heimdall":1.8644068241119385,"10.31.35.221-ui-heimdall":9.916666984558105,"10.31.37.26-jobs":22.83333396911621,"10.31.33.189-processing-engine":21.25,"10.31.32.198-ui-heimdall":1.5833333730697632,"10.31.59.74-io-engine":31.58333396911621,"10.31.33.78-ui-mex":18.983051300048828,"10.31.35.238-regapi-ws":2.6666667461395264,"10.31.34.52-test-framework-gru":0.125,"10.31.37.20-data-poller":5.245901584625244,"10.31.37.102-ui-invoicing":33.25,"10.31.34.191-ui-heimdall":1.4166666269302368,"10.31.35.107-ui-rc":40.33333206176758,"10.31.59.13-io-engine":24.16666603088379,"time":1572431760000},{"10.31.33.225-regapi-ws":1.4754098653793335,"10.31.32.96-ui-heimdall":1.2295081615447998,"10.31.37.146-ui-heimdall":2.25,"10.31.35.221-ui-heimdall":15.916666984558105,"10.31.37.26-jobs":14.583333015441895,"10.31.33.189-processing-engine":28.770492553710938,"10.31.32.198-ui-heimdall":1.3333333730697632,"10.31.59.74-io-engine":28.08333396911621,"10.31.33.78-ui-mex":1.9672131538391113,"10.31.35.238-regapi-ws":2.5409836769104004,"10.31.34.52-test-framework-gru":0.1458333283662796,"10.31.37.20-data-poller":5.338983058929443,"10.31.37.102-ui-invoicing":13.666666984558105,"10.31.34.191-ui-heimdall":1.3333333730697632,"10.31.35.107-ui-rc":3.75,"10.31.59.13-io-engine":23.91666603088379,"time":1572431820000}],"keys":["10.31.32.27-processing-engine","10.31.59.13-io-engine","10.31.37.146-ui-heimdall","10.31.33.6-jobs","10.31.35.26-data-poller","10.31.34.100-ui-heimdall","10.31.36.192-ui-mex","10.31.36.203-ui-invoicing","10.31.33.224-ui-rc","10.31.33.225-regapi-ws","10.31.32.96-ui-heimdall","10.31.34.191-ui-heimdall","10.31.32.198-ui-heimdall","10.31.34.52-test-framework-gru","10.31.35.221-ui-heimdall","10.31.35.238-regapi-ws","10.31.37.20-data-poller","10.31.33.189-processing-engine","10.31.59.74-io-engine","10.31.37.26-jobs","10.31.37.102-ui-invoicing","10.31.33.78-ui-mex","10.31.35.107-ui-rc"],"groupByItems":{"regapi-ws":"regapi-ws","ui-mex":"ui-mex","processing-engine":"processing-engine","jobs":"jobs","ui-invoicing":"ui-invoicing","ui-rc":"ui-rc","data-poller":"data-poller","test-framework-gru":"test-framework-gru","io-engine":"io-engine","ui-heimdall":"ui-heimdall"}},"Response payload":{"EDITOR_CONFIG":{"text":"{\"data\":[{\"10.31.36.192-ui-mex\":1.9166666269302368,\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":14.916666984558105,\"10.31.32.198-ui-heimdall\":1.25,\"10.31.33.6-jobs\":13.389830589294434,\"10.31.34.52-test-framework-gru\":0.14830508828163147,\"10.31.32.27-processing-engine\":27.868852615356445,\"10.31.36.203-ui-invoicing\":1.6666666269302368,\"10.31.34.191-ui-heimdall\":1.2711864709854126,\"10.31.35.26-data-poller\":3.852458953857422,\"10.31.59.13-io-engine\":26.47541046142578,\"10.31.33.224-ui-rc\":1.5,\"time\":1572431100000,\"10.31.34.100-ui-heimdall\":2.7868852615356445},{\"10.31.36.192-ui-mex\":1.8032786846160889,\"10.31.33.225-regapi-ws\":1.7796610593795776,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":1.7213114500045776,\"10.31.32.198-ui-heimdall\":1.6949152946472168,\"10.31.33.6-jobs\":11.803278923034668,\"10.31.34.52-test-framework-gru\":0.1041666641831398,\"10.31.32.27-processing-engine\":20.423728942871094,\"10.31.36.203-ui-invoicing\":2.5833332538604736,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.26-data-poller\":4.237287998199463,\"10.31.59.13-io-engine\":26.0,\"10.31.33.224-ui-rc\":1.8852459192276,\"time\":1572431160000,\"10.31.34.100-ui-heimdall\":4.576271057128906},{\"10.31.36.192-ui-mex\":1.5254237651824951,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.33.225-regapi-ws\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":2.6271185874938965,\"10.31.35.221-ui-heimdall\":68.75,\"10.31.37.26-jobs\":60.16666793823242,\"10.31.33.189-processing-engine\":64.91525268554688,\"10.31.32.198-ui-heimdall\":1.311475396156311,\"10.31.59.74-io-engine\":62.91666793823242,\"10.31.33.78-ui-mex\":45.819671630859375,\"10.31.35.238-regapi-ws\":66.83333587646484,\"10.31.33.6-jobs\":9.576271057128906,\"10.31.34.52-test-framework-gru\":0.1666666716337204,\"10.31.32.27-processing-engine\":17.66666603088379,\"10.31.36.203-ui-invoicing\":1.6666666269302368,\"10.31.37.20-data-poller\":66.3559341430664,\"10.31.37.102-ui-invoicing\":50.08333206176758,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":43.16666793823242,\"10.31.35.26-data-poller\":4.166666507720947,\"10.31.59.13-io-engine\":25.3389835357666,\"10.31.33.224-ui-rc\":1.610169529914856,\"time\":1572431220000,\"10.31.34.100-ui-heimdall\":6.666666507720947},{\"10.31.36.192-ui-mex\":1.5833333730697632,\"10.31.32.96-ui-heimdall\":1.6666666269302368,\"10.31.33.225-regapi-ws\":1.5,\"10.31.37.146-ui-heimdall\":1.5833333730697632,\"10.31.35.221-ui-heimdall\":72.25,\"10.31.37.26-jobs\":89.66666412353516,\"10.31.33.189-processing-engine\":85.0,\"10.31.32.198-ui-heimdall\":1.3559322357177734,\"10.31.59.74-io-engine\":91.80327606201172,\"10.31.33.78-ui-mex\":85.4237289428711,\"10.31.35.238-regapi-ws\":75.66666412353516,\"10.31.33.6-jobs\":11.5,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.32.27-processing-engine\":14.25,\"10.31.36.203-ui-invoicing\":3.1666667461395264,\"10.31.37.20-data-poller\":79.58333587646484,\"10.31.37.102-ui-invoicing\":84.75,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":57.5,\"10.31.35.26-data-poller\":3.7704918384552,\"10.31.59.13-io-engine\":26.31147575378418,\"10.31.33.224-ui-rc\":1.5573770999908447,\"time\":1572431280000,\"10.31.34.100-ui-heimdall\":6.967213153839111},{\"10.31.36.192-ui-mex\":1.5,\"10.31.33.225-regapi-ws\":2.0833332538604736,\"10.31.32.96-ui-heimdall\":1.1666666269302368,\"10.31.37.146-ui-heimdall\":1.9166666269302368,\"10.31.35.221-ui-heimdall\":87.95082092285156,\"10.31.37.26-jobs\":68.41666412353516,\"10.31.33.189-processing-engine\":67.91666412353516,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":86.08333587646484,\"10.31.33.78-ui-mex\":80.58333587646484,\"10.31.35.238-regapi-ws\":89.5,\"10.31.33.6-jobs\":10.833333015441895,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.32.27-processing-engine\":17.0,\"10.31.36.203-ui-invoicing\":8.333333015441895,\"10.31.37.20-data-poller\":68.75,\"10.31.37.102-ui-invoicing\":78.75,\"10.31.34.191-ui-heimdall\":1.6393442153930664,\"10.31.35.107-ui-rc\":87.41666412353516,\"10.31.35.26-data-poller\":3.8135592937469482,\"10.31.59.13-io-engine\":25.0,\"10.31.33.224-ui-rc\":1.7796610593795776,\"time\":1572431340000,\"10.31.34.100-ui-heimdall\":5.677966117858887},{\"10.31.36.192-ui-mex\":1.9166666269302368,\"10.31.32.96-ui-heimdall\":1.4166666269302368,\"10.31.33.225-regapi-ws\":1.4166666269302368,\"10.31.37.146-ui-heimdall\":2.5833332538604736,\"10.31.35.221-ui-heimdall\":66.44068145751953,\"10.31.37.26-jobs\":88.83333587646484,\"10.31.33.189-processing-engine\":91.91666412353516,\"10.31.32.198-ui-heimdall\":1.4166666269302368,\"10.31.59.74-io-engine\":89.40677642822266,\"10.31.33.78-ui-mex\":65.6557388305664,\"10.31.35.238-regapi-ws\":85.5,\"10.31.33.6-jobs\":11.967212677001953,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.32.27-processing-engine\":30.57377052307129,\"10.31.36.203-ui-invoicing\":3.25,\"10.31.37.20-data-poller\":93.75,\"10.31.37.102-ui-invoicing\":79.08333587646484,\"10.31.34.191-ui-heimdall\":1.4406780004501343,\"10.31.35.107-ui-rc\":84.08333587646484,\"10.31.35.26-data-poller\":3.9166667461395264,\"10.31.59.13-io-engine\":26.75,\"10.31.33.224-ui-rc\":1.5833333730697632,\"time\":1572431400000,\"10.31.34.100-ui-heimdall\":3.1666667461395264},{\"10.31.36.192-ui-mex\":1.6393442153930664,\"10.31.33.225-regapi-ws\":1.9166666269302368,\"10.31.32.96-ui-heimdall\":1.25,\"10.31.37.146-ui-heimdall\":1.5,\"10.31.35.221-ui-heimdall\":82.08333587646484,\"10.31.37.26-jobs\":84.83333587646484,\"10.31.33.189-processing-engine\":91.0,\"10.31.32.198-ui-heimdall\":1.6666666269302368,\"10.31.59.74-io-engine\":92.75,\"10.31.33.78-ui-mex\":67.54237365722656,\"10.31.33.6-jobs\":9.406779289245605,\"10.31.35.238-regapi-ws\":6.229508399963379,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.32.27-processing-engine\":13.389830589294434,\"10.31.36.203-ui-invoicing\":2.0,\"10.31.37.20-data-poller\":89.33333587646484,\"10.31.37.102-ui-invoicing\":29.8360652923584,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.107-ui-rc\":25.16666603088379,\"10.31.35.26-data-poller\":3.75,\"10.31.59.13-io-engine\":24.672130584716797,\"10.31.33.224-ui-rc\":1.5833333730697632,\"time\":1572431460000,\"10.31.34.100-ui-heimdall\":6.166666507720947},{\"10.31.36.192-ui-mex\":4.06779670715332,\"10.31.33.225-regapi-ws\":1.5,\"10.31.32.96-ui-heimdall\":1.3934426307678223,\"10.31.37.146-ui-heimdall\":1.9166666269302368,\"10.31.35.221-ui-heimdall\":5.25,\"10.31.37.26-jobs\":89.25,\"10.31.33.189-processing-engine\":85.6557388305664,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":47.0,\"10.31.33.78-ui-mex\":2.25,\"10.31.33.6-jobs\":13.833333015441895,\"10.31.35.238-regapi-ws\":2.3728814125061035,\"10.31.34.52-test-framework-gru\":0.1666666716337204,\"10.31.32.27-processing-engine\":12.0,\"10.31.36.203-ui-invoicing\":2.5,\"10.31.37.20-data-poller\":62.08333206176758,\"10.31.37.102-ui-invoicing\":2.4166667461395264,\"10.31.34.191-ui-heimdall\":1.25,\"10.31.35.26-data-poller\":3.9166667461395264,\"10.31.35.107-ui-rc\":2.5,\"10.31.59.13-io-engine\":24.6610164642334,\"10.31.33.224-ui-rc\":2.75,\"time\":1572431520000,\"10.31.34.100-ui-heimdall\":5.083333492279053},{\"10.31.36.192-ui-mex\":2.25,\"10.31.32.96-ui-heimdall\":1.610169529914856,\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.37.146-ui-heimdall\":1.6666666269302368,\"10.31.35.221-ui-heimdall\":8.68852424621582,\"10.31.37.26-jobs\":89.83606719970703,\"10.31.33.189-processing-engine\":67.03389739990234,\"10.31.32.198-ui-heimdall\":1.2295081615447998,\"10.31.59.74-io-engine\":35.33333206176758,\"10.31.33.78-ui-mex\":9.083333015441895,\"10.31.33.6-jobs\":9.583333015441895,\"10.31.35.238-regapi-ws\":3.0833332538604736,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":18.66666603088379,\"10.31.37.102-ui-invoicing\":2.8813560009002686,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.26-data-poller\":3.9344263076782227,\"10.31.35.107-ui-rc\":2.7868852615356445,\"10.31.59.13-io-engine\":24.25,\"10.31.33.224-ui-rc\":1.6666666269302368,\"time\":1572431580000,\"10.31.34.100-ui-heimdall\":3.524590253829956},{\"10.31.33.225-regapi-ws\":1.3559322357177734,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":1.6666666269302368,\"10.31.35.221-ui-heimdall\":2.96610164642334,\"10.31.37.26-jobs\":60.084747314453125,\"10.31.33.189-processing-engine\":36.33333206176758,\"10.31.32.198-ui-heimdall\":1.3559322357177734,\"10.31.59.74-io-engine\":34.41666793823242,\"10.31.33.78-ui-mex\":1.8333333730697632,\"10.31.35.238-regapi-ws\":2.0833332538604736,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.37.20-data-poller\":10.083333015441895,\"10.31.37.102-ui-invoicing\":1.9166666269302368,\"10.31.34.191-ui-heimdall\":1.5833333730697632,\"10.31.35.107-ui-rc\":1.610169529914856,\"10.31.59.13-io-engine\":24.66666603088379,\"time\":1572431640000},{\"10.31.33.225-regapi-ws\":1.5,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":2.131147623062134,\"10.31.35.221-ui-heimdall\":26.66666603088379,\"10.31.37.26-jobs\":39.5,\"10.31.33.189-processing-engine\":41.41666793823242,\"10.31.32.198-ui-heimdall\":1.4166666269302368,\"10.31.59.74-io-engine\":32.91666793823242,\"10.31.33.78-ui-mex\":1.6393442153930664,\"10.31.35.238-regapi-ws\":2.3333332538604736,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":6.833333492279053,\"10.31.37.102-ui-invoicing\":2.3333332538604736,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":2.1666667461395264,\"10.31.59.13-io-engine\":26.33333396911621,\"time\":1572431700000},{\"10.31.33.225-regapi-ws\":1.5833333730697632,\"10.31.32.96-ui-heimdall\":1.3333333730697632,\"10.31.37.146-ui-heimdall\":1.8644068241119385,\"10.31.35.221-ui-heimdall\":9.916666984558105,\"10.31.37.26-jobs\":22.83333396911621,\"10.31.33.189-processing-engine\":21.25,\"10.31.32.198-ui-heimdall\":1.5833333730697632,\"10.31.59.74-io-engine\":31.58333396911621,\"10.31.33.78-ui-mex\":18.983051300048828,\"10.31.35.238-regapi-ws\":2.6666667461395264,\"10.31.34.52-test-framework-gru\":0.125,\"10.31.37.20-data-poller\":5.245901584625244,\"10.31.37.102-ui-invoicing\":33.25,\"10.31.34.191-ui-heimdall\":1.4166666269302368,\"10.31.35.107-ui-rc\":40.33333206176758,\"10.31.59.13-io-engine\":24.16666603088379,\"time\":1572431760000},{\"10.31.33.225-regapi-ws\":1.4754098653793335,\"10.31.32.96-ui-heimdall\":1.2295081615447998,\"10.31.37.146-ui-heimdall\":2.25,\"10.31.35.221-ui-heimdall\":15.916666984558105,\"10.31.37.26-jobs\":14.583333015441895,\"10.31.33.189-processing-engine\":28.770492553710938,\"10.31.32.198-ui-heimdall\":1.3333333730697632,\"10.31.59.74-io-engine\":28.08333396911621,\"10.31.33.78-ui-mex\":1.9672131538391113,\"10.31.35.238-regapi-ws\":2.5409836769104004,\"10.31.34.52-test-framework-gru\":0.1458333283662796,\"10.31.37.20-data-poller\":5.338983058929443,\"10.31.37.102-ui-invoicing\":13.666666984558105,\"10.31.34.191-ui-heimdall\":1.3333333730697632,\"10.31.35.107-ui-rc\":3.75,\"10.31.59.13-io-engine\":23.91666603088379,\"time\":1572431820000}],\"keys\":[\"10.31.32.27-processing-engine\",\"10.31.59.13-io-engine\",\"10.31.37.146-ui-heimdall\",\"10.31.33.6-jobs\",\"10.31.35.26-data-poller\",\"10.31.34.100-ui-heimdall\",\"10.31.36.192-ui-mex\",\"10.31.36.203-ui-invoicing\",\"10.31.33.224-ui-rc\",\"10.31.33.225-regapi-ws\",\"10.31.32.96-ui-heimdall\",\"10.31.34.191-ui-heimdall\",\"10.31.32.198-ui-heimdall\",\"10.31.34.52-test-framework-gru\",\"10.31.35.221-ui-heimdall\",\"10.31.35.238-regapi-ws\",\"10.31.37.20-data-poller\",\"10.31.33.189-processing-engine\",\"10.31.59.74-io-engine\",\"10.31.37.26-jobs\",\"10.31.37.102-ui-invoicing\",\"10.31.33.78-ui-mex\",\"10.31.35.107-ui-rc\"],\"groupByItems\":{\"regapi-ws\":\"regapi-ws\",\"ui-mex\":\"ui-mex\",\"processing-engine\":\"processing-engine\",\"jobs\":\"jobs\",\"ui-invoicing\":\"ui-invoicing\",\"ui-rc\":\"ui-rc\",\"data-poller\":\"data-poller\",\"test-framework-gru\":\"test-framework-gru\",\"io-engine\":\"io-engine\",\"ui-heimdall\":\"ui-heimdall\"}}","mode":"application/json"}}}
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":161,"max_score":1.0,"hits":[{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCC","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-12T10:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCI","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T04:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCN","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T19:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCP","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T01:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCR","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T07:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCV","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T19:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCW","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-14T22:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCZ","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-15T07:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCn","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-17T01:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCo","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-17T04:27:00+00:00"}}]}}
curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_mapping?pretty"
ys-user@SMI-243:~/Corex/all$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_mapping?pretty"
curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_settings?pretty"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization/_settings?pretty"
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : {"@timestamp" : {"type" : "date","format" : "strict_date_optional_time||epoch_millis"},"application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "long"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}}, "mappings" : {"system" : {"_ttl" : {"enabled" : true,"default" : 259200000},"properties" : {"@timestamp" : {"type" : "date","format" : "strict_date_optional_time||epoch_millis"},"application" : {"type" : "string","analyzer" : "keyword"},"hostname" : {"type" : "string","analyzer" : "keyword"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
"mappings": {"metadata": {"_source": {"enabled": true},"properties": {"id": {"type": "long"},"user_p": {"type": "float"},"hostIp": {"analyzer": "custom_keyword","type": "string"},"hostname": {"analyzer": "custom_keyword","type": "string"},"application": {"analyzer": "custom_keyword","type": "string"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "localhost:9200/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index" : {"creation_date" : "1572585869611","number_of_shards" : "5","number_of_replicas" : "1",
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_settings?pretty"
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_settings?pretty"
ys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_mapping?pretty"l
(base) sys-user@SMI-243:~/Corex/all$ curl -X GET "localhost:9200/dev-newrelic-cpu-utilization/_mapping?pretty"
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
https://internal-testfw-cxtf-1405-ui-heimdall-elb-30459250.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-11-01T07:44:12.039Z&interval=2m&testResultId=5dbbe1e83109af1032a26531&toDate=2019-11-01T07:56:07.429Z&viewType=chart
https://internal-testfw-cxtf-1405-ui-heimdall-elb-30459250.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartGroup=osdao&chartName=Cumulative+CPU+Utilization&filterType=All&fromDate=2019-11-01T07:44:12.039Z&interval=2m&testResultId=5dbbe1e83109af1032a26531&toDate=2019-11-01T07:56:07.429Z&viewType=chart
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"DEV-data-poller","user_p":0.666666666666664,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.466666666666664,"hostname":"10.31.33.232","@timestamp":"2019-10-30T07:45:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}'
{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}
{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCC","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-12T10:27:00+00:00"}},{"_index":"testfw-replay-newelic-dev-5dbac3817e0efc1022fb1529-cpu-utilization","_type":"system","_id":"AW4lbC56wEcMd9IvKLCI","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-10-13T04:27:00+00:00"}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_cat/indices?v&pretty"
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":4,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mlM7c_4fAvohBNuHD","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpGaRwEcMd9IvMimc","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpOP7_4fAvohBN2BX","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}}]}}
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91428,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLKsz_4fAvohBy47t","_score":1.0,"_ttl":5890,"_source":{"application":"test-framework-gru","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLNFqGb6oRN1shJFt","_score":1.0,"_ttl":15673,"_source":{"application":"processing-engine","user_p":13.4166666666666,"hostname":"10.31.32.6","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLMBXGb6oRN1shJDj","_score":1.0,"_ttl":11302,"_source":{"application":"ui-heimdall","user_p":1.41666666666576,"hostname":"10.31.34.191","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLAgZwEcMd9IvxmZy","_score":1.0,"_ttl":-35864,"_source":{"application":"ui-heimdall","user_p":11.4166666666667,"hostname":"10.31.34.111","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLLOr_4fAvohBy4-F","_score":1.0,"_ttl":8058,"_source":{"application":"ui-heimdall","user_p":1.50000000000006,"hostname":"10.31.32.96","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLb_m_4fAvohBy5bU","_score":1.0,"_ttl":76725,"_source":{"application":"regapi-ws","user_p":1.58333333333331,"hostname":"10.31.33.231","@timestamp":"2019-10-29T10:59:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLUdK_4fAvohBy5Ir","_score":1.0,"_ttl":45849,"_source":{"application":"io-engine","user_p":25.4999999999999,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLQn5wEcMd9Ivxmwr","_score":1.0,"_ttl":30152,"_source":{"application":"jobs","user_p":14.0983606557376,"hostname":"10.31.36.86","@timestamp":"2019-10-29T10:57:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLfTzwEcMd9IvxnI_","_score":1.0,"_ttl":90306,"_source":{"application":"jobs","user_p":14.4999999999999,"hostname":"10.31.36.86","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XL2wLGb6oRN1shKH9","_score":1.0,"_ttl":186330,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:01:00+00:00"}}]}}(base)
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}}]}}(
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91428,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLKsz_4fAvohBy47t","_score":1.0,"_ttl":5890,"_source":{"application":"test-framework-gru","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLNFqGb6oRN1shJFt","_score":1.0,"_ttl":15673,"_source":{"application":"processing-engine","user_p":13.4166666666666,"hostname":"10.31.32.6","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLMBXGb6oRN1shJDj","_score":1.0,"_ttl":11302,"_source":{"application":"ui-heimdall","user_p":1.41666666666576,"hostname":"10.31.34.191","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLAgZwEcMd9IvxmZy","_score":1.0,"_ttl":-35864,"_source":{"application":"ui-heimdall","user_p":11.4166666666667,"hostname":"10.31.34.111","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLLOr_4fAvohBy4-F","_score":1.0,"_ttl":8058,"_source":{"application":"ui-heimdall","user_p":1.50000000000006,"hostname":"10.31.32.96","@timestamp":"2019-10-29T10:58:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLb_m_4fAvohBy5bU","_score":1.0,"_ttl":76725,"_source":{"application":"regapi-ws","user_p":1.58333333333331,"hostname":"10.31.33.231","@timestamp":"2019-10-29T10:59:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLUdK_4fAvohBy5Ir","_score":1.0,"_ttl":45849,"_source":{"application":"io-engine","user_p":25.4999999999999,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLQn5wEcMd9Ivxmwr","_score":1.0,"_ttl":30152,"_source":{"application":"jobs","user_p":14.0983606557376,"hostname":"10.31.36.86","@timestamp":"2019-10-29T10:57:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XLfTzwEcMd9IvxnI_","_score":1.0,"_ttl":90306,"_source":{"application":"jobs","user_p":14.4999999999999,"hostname":"10.31.36.86","@timestamp":"2019-10-29T11:00:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XL2wLGb6oRN1shKH9","_score":1.0,"_ttl":186330,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:01:00+00:00"}}]}}(
curl -X PUT "localhost:9200/my_index?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "localhost:9200/twitter?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "localhost:9200/twitter/_mapping/user?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "localhost:9200/twitter/_mapping/tweet?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "localhost:9200/my_index?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_mapping/system?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
{"mappings" :{"system" : {"_ttl": {"default": "3d","enabled": true},{"properties" : {"@timestamp" : {
},"application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "long"}}}}}
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization_all/_search' -d '
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":4,"max_score":1.0,"hits":[{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mjY91Gb6oRN1s7_Y1","_score":1.0,"_source":{"application":"DEV-data-poller","user_p":0,"hostname":"10.31.33.240","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mlM7c_4fAvohBNuHD","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpGaRwEcMd9IvMimc","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:45:12.039Z"}},{"_index":"dev-newrelic-cpu-utilization","_type":"system","_id":"AW4mpOP7_4fAvohBN2BX","_score":1.0,"_source":{"application":"test-framework-minion","user_p":0.187499999999924,"hostname":"10.31.34.52","@timestamp":"2019-11-01T07:50:12.039Z"}}]}}
curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search' -d '
(base) sys-user@SMI-243:~/Corex/all$ curl -XPOST 'search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization_all/_search' -d '
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":91779,"max_score":1.0,"hits":[{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUWAgGb6oRN1shX5C","_score":1.0,"_ttl":6991,"_source":{"application":"test-framework-gru","user_p":0.166666666666705,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUXcr_4fAvohBzIN6","_score":1.0,"_ttl":12890,"_source":{"application":"ui-heimdall","user_p":1.61016949152512,"hostname":"10.31.34.191","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUYO9wEcMd9Ivx1fa","_score":1.0,"_ttl":16108,"_source":{"application":"ui-heimdall","user_p":1.58333333333455,"hostname":"10.31.32.198","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUWqZGb6oRN1shX53","_score":1.0,"_ttl":9672,"_source":{"application":"ui-heimdall","user_p":1.39344262295076,"hostname":"10.31.32.96","@timestamp":"2019-10-29T11:39:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUPGG_4fAvohBzH61","_score":1.0,"_ttl":-21323,"_source":{"application":"data-poller","user_p":3.99999999999996,"hostname":"10.31.33.9","@timestamp":"2019-10-29T11:38:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUktXGb6oRN1shYM7","_score":1.0,"_ttl":67206,"_source":{"application":"test-framework-gru","user_p":0.125000000000076,"hostname":"10.31.34.52","@timestamp":"2019-10-29T11:39:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUpOhGb6oRN1shYSL","_score":1.0,"_ttl":85712,"_source":{"application":"ui-heimdall","user_p":4.23728813559322,"hostname":"10.31.34.111","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUlWEwEcMd9Ivx11q","_score":1.0,"_ttl":69811,"_source":{"application":"ui-heimdall","user_p":1.44067796610173,"hostname":"10.31.32.96","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUgHxwEcMd9Ivx1nW","_score":1.0,"_ttl":48416,"_source":{"application":"io-engine","user_p":24.7457627118643,"hostname":"10.31.60.142","@timestamp":"2019-10-29T11:40:00+00:00"}},{"_index":"dev-cpu-utilization","_type":"system","_id":"AW4XUseFGb6oRN1shYTf","_score":1.0,"_ttl":98996,"_source":{"application":"data-poller","user_p":4.16666666666667,"hostname":"10.31.33.9","@timestamp":"2019-10-29T11:40:00+00:00"}}]}}
{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":" 2019-10-29T06:59:000Z ","lte":"2019-11-01T07:45:12.040Z" }}},{"term":{"application":"All"}},"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,"aggs":{"output":{"date_histogram":{"field":"@timestamp","interval":1,"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-30T07:44:12.039Z","max":"2019-11-01T07:56:07.429Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"user_p"}}}}}}}
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":" 2019-10-29T06:59:000Z ",\"lte\":" + "2019-11-01T07:45:12.040Z" }}}");
\"size\":0,\"aggs\":{\"output\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ ",\"time_zone\":\"+05:30\",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ "}},\"aggs\":{\"items\":{\"terms\":{\"field\":\"hostname\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"user_p\"}}}}}}}";
curl -X DELETE "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty"
curl -X DELETE "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty"
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : "application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
curl -X PUT "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index": {"number_of_shards": 1,"number_of_replicas": 1}},"mappings" : {"system" : {"properties" : "application" : {"type" : "string"},"hostname" : {"type" : "string"},"user_p" : {"type" : "float"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty=true"
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"processing-engine","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-01T07:45:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-01T06:38:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "ui-heimdall","user_p" : 2.08333333333333,"hostname" : "10.31.33.83","@timestamp" : "2019-11-01T06:38:00+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application":"processing-engine","user_p":0.666666666666664,"hostname":"10.31.33.232","@timestamp":"2019-11-06T07:21:07+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:08:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:10:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "data-poller","user_p" : 3.85245901639348,"hostname" : "10.31.37.224","@timestamp" : "2019-11-06T07:12:24+00:00"}'
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "io-engine","user_p" : 3.9245901639348,"hostname" : "10.31.37.52","@timestamp" : "2019-11-06T07:12:24+00:00"}'
curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{"data":{"10.31.33.83-processing-engine":2.0833332538604736,"10.31.37.224-ui-heimdall":3.852458953857422,"10.31.33.232-data-poller":0.6666666865348816},"keys":["10.31.33.232-data-poller","10.31.33.83-processing-engine","10.31.37.224-ui-heimdall"],"groupByItems":{"processing-engine":"processing-engine","data-poller":"data-poller","ui-heimdall":"ui-heimdall"}}
curl -X POST "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/system" -H 'Content-Type: application/json' -d'{"application" : "io-engine","user_p" : 26.0169491525422,"hostname" : "10.31.59.146","@timestamp" : "2019-11-01T06:36:00+00:00"}'
curl -X POST "localhost:9200/sales/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
{ \"match_all\":{} },\"size\":0, \"aggs\":{ \"output\":{ \"terms\":{ \"field\":\""+objectName+"\" } } }
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
"\"size\":0,\"aggs\":{\"output\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ ",\"time_zone\":\"+05:30\",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ "}},\"aggs\":{\"items\":{\"terms\":{\"field\":\"hostname\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"user_p\"}}}}}}}";
curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{
curl -X POST "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"@timestamp" : { "gte" : "2019-11-01T06:36:00+00:00", "lte" : "2019-11-01T07:45:00+00:00" }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"user_p" } } }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"hostname" } } }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"query":{ "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
(base) sys-user@SMI-243:~/backup/elastic/cerebro-0.7.3/bin$ curl -X GET "search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty=true"
(base) sys-user@SMI-243:~/backup/elastic/cerebro-0.7.3/bin$ curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
https://internal-testfw-cxtf-1405-ui-heimdall-elb-2058419470.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-11-11T12:24:22.404Z&interval=2m&testResultId=5dc95292d950101027b1d811&toDate=2019-11-11T12:36:18.797Z&viewType=chart
https://internal-testfw-cxtf-1405-ui-heimdall-elb-2058419470.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-11-11T12:24:22.404Z&interval=2m&testResultId=5dc95292d950101027b1d811&toDate=2019-11-11T12:36:18.797Z&viewType=chart
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-11T12:24:22.404Z","max":"2019-11-11T12:36:18.797Z"}},"aggs":{"items":{"terms":{"field":"proc.name","size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-11T12:24:22.404Z","max":"2019-11-11T12:31:52.672Z"}},"aggs":{"items":{"terms":{"field":"proc.name","size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
"terms":{"field":"beat.hostname","size":100},"aggs":{"inneroutput":{"date_histogram":{"field":"@timestamp","interval":"2m","time_zone":"+05+30","min_doc_count":1,"extended_bounds":{"min":"","max":""}},"aggs":{"items":{"terms":{"field":"proc.name","size":0,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field:"proc.cpu.user_p"}}}}}}}}}
"\"size\": 0,\"aggs\": {\"output\": {\"terms\": {\"field\": \"beat.hostname\",\"size\": 100},\"aggs\": {\"inneroutput\": {\"date_histogram\": {\"field\": \"@timestamp\",\"interval\" :"
+ " ,\"time_zone\": \"+05:30\",\"min_doc_count\": 1,\"extended_bounds\": {\"min\": "
+ "}},\"aggs\": {\"items\": {\"terms\": {\"field\": \"proc.name\",\"size\": 10,\"order\": {\"count\": \"desc\"}},\"aggs\": {\"count\": {\"avg\": {\"field\": \"proc.cpu.user_p\"}}}}}}}}}";
https://corex-stg.awsdsi.ghx.com/rest/testframework/performance/metrics/?chartGroup=osdao&chartName=CPU+Utilization+Process+Wise&filterType=All&fromDate=2019-10-29T15:38:30.292Z&interval=2m&testResultId=5db85c933c4f1a1006cc7339&toDate=2019-10-29T15:56:52.881Z&viewType=chart
After merging latest develop code , i got some db related error. you may get the same.
you need add the below fields in AS2_profile table.
https://internal-testfw-cxtf-1405-ui-heimdall-elb-382767437.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartGroup=jvmdao&chartName=Line+Chart+JVM+Heap+Stats&filterType=All&fromDate=2019-11-06T07:08:24.703Z&interval=2m&testResultId=5dc270f61c33fa102e215853&toDate=2019-11-06T07:21:07.227Z&viewType=chart
{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
"],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]"
"\"aggs\":{\"output\":{\"terms\":{\"field\":\"host\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"items\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ ",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ "}},\"aggs\":{\"max\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"committed\":{\"avg\":{\"field\":\"HeapMemory_committed\"}},\"used\":{\"avg\":{\"field\":\"HeapMemory_used\"}}}}}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
"must":[{"range":{"@timestamp":{"gte":"2019-11-04T06:47:56.633Z","lte":"2019-11-04T06:48:01.937Z"}}},
"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},"items":{"date_histogram":{"field":"@timestamp",
"interval":"2m","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T06:47:56.633Z","max":"2019-11-04T06:48:01.937Z"}},
"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty=true"
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
"Mongo_Aspect_Error_Reason" : "Invoked DAO is not an instance of Morphia's BasicDAO",
"ghxhostcurl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
commonQuery.append("],\"must_not\":[{ \"range\": { \"proc.cpu.user_p\": { \"lte\": 0 } } }]}}}}");
"\"size\": 0,\"aggs\": {\"output\": {\"terms\": {\"field\": \"beat.hostname\",\"size\": 100},\"aggs\": {\"inneroutput\": {\"date_histogram\": {\"field\": \"@timestamp\",\"interval\" :"
+ " ,\"time_zone\": \"+05:30\",\"min_doc_count\": 1,\"extended_bounds\": {\"min\": "
+ "}},\"aggs\": {\"items\": {\"terms\": {\"field\": \"proc.name\",\"size\": 10,\"order\": {\"count\": \"desc\"}},\"aggs\": {\"count\": {\"avg\": {\"field\": \"proc.cpu.user_p\"}}} }}} }}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 10:48:20,161 |INFO [http-bio-8443-exec-108] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 10:48:20,160 |INFO [http-bio-8443-exec-108] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-84960814.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartgroup=osdao&chartname=cpu+utilization+process+wise&filtertype=all&fromdate=2019-11-04t11:14:46.228z&interval=2m&testresultid=5dc007efe37efa100ad35e03&todate=2019-11-04t11:35:26.072z&viewtype=chart
2019-11-07 10:48:20,160 |INFO [http-bio-8443-exec-108] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-07 10:48:20,161 |INFO [http-bio-8443-exec-108] c.g.h.service.GHXHeimdallSecurityAspect - user tfwapi@ghx.com (id=3206631) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStat([CPU Utilization Process Wise, osdao, 2019-11-04T11:14:46.228Z, 2019-11-04T11:35:26.072Z, 2m, chart, All, 5dc007efe37efa100ad35e03, null, null, null, null])
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
devcurl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
"time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-04T11:14:46.228Z",
"max":"2019-11-04T11:35:26.072Z"}},"aggs":{"items":{"terms":{"field":"proc.name",
"size":10,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"proc.cpu.user_p"}}}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-topbeat_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query": {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}}'
2019-11-07 11:24:47,355 |INFO [http-bio-8443-exec-116] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-84960814.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/?chartgroup=osdao&chartname=cpu+utilization+process+wise&filtertype=ui-heimdall&fromdate=2019-11-04t11:14:46.228z&interval=2m&testresultid=5dc007efe37efa100ad35e03&todate=2019-11-04t11:35:26.072z&viewtype=chart
2019-11-07 11:24:47,355 |INFO [http-bio-8443-exec-116] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.h.service.GHXHeimdallSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStat([CPU Utilization Process Wise, osdao, 2019-11-04T11:14:46.228Z, 2019-11-04T11:35:26.072Z, 2m, chart, ui-heimdall, 5dc007efe37efa100ad35e03, null, null, null, null])
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-topbeat
2019-11-07 11:24:47,356 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"beat.hostname","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"beat.name"}}}}}
2019-11-07 11:24:47,375 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=145, SuccessShards=145, TotalRecords=20294, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=9}
searchResult.getResponseMetaData()>>>>{TotalShards=145, SuccessShards=145, TotalRecords=20294, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=9}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@738d5f5c
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]}}
resultList[{key=ip-10-31-34-200.awsdsi.ghx.com, doc_count=1540, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1540}]}}, {key=ip-10-31-34-165.awsdsi.ghx.com, doc_count=1535, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1535}]}}, {key=ip-10-31-37-188.awsdsi.ghx.com, doc_count=1516, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-mex, doc_count=1516}]}}, {key=ip-10-31-35-25.awsdsi.ghx.com, doc_count=1496, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-invoicing, doc_count=1496}]}}, {key=ip-10-31-36-38.awsdsi.ghx.com, doc_count=1484, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=processing-engine, doc_count=1484}]}}, {key=ip-10-31-36-76.awsdsi.ghx.com, doc_count=1477, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-rc, doc_count=1477}]}}, {key=ip-10-31-36-254.awsdsi.ghx.com, doc_count=1466, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=regapi-ws, doc_count=1466}]}}, {key=ip-10-31-32-198.awsdsi.ghx.com, doc_count=1453, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1453}]}}, {key=ip-10-31-36-13.awsdsi.ghx.com, doc_count=1443, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1443}]}}, {key=ip-10-31-35-203.awsdsi.ghx.com, doc_count=1432, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1432}]}}, {key=ip-10-31-60-97.awsdsi.ghx.com, doc_count=1400, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=io-engine, doc_count=1400}]}}, {key=ip-10-31-35-169.awsdsi.ghx.com, doc_count=1365, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=data-poller, doc_count=1365}]}}, {key=ip-10-31-34-133.awsdsi.ghx.com, doc_count=1363, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=jobs, doc_count=1363}]}}, {key=ip-10-31-34-191.awsdsi.ghx.com, doc_count=1324, inneroutput={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=ui-heimdall, doc_count=1324}]}}]
Inside getSearchResultsFromES indexAliasNamedev-topbeat_allindexName>>indexType>>processquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
2019-11-07 11:24:47,375 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-topbeat/process
2019-11-07 11:24:47,376 |INFO [http-bio-8443-exec-116] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-04T11:14:46.228Z","lte":"2019-11-04T11:35:26.072Z"}}},{"term":{"beat.name":"ui-heimdall"}}],"must_not":[{ "range": { "proc.cpu.user_p": { "lte": 0 } } }]}}}},"size": 0,"aggs": {"output": {"terms": {"field": "beat.hostname","size": 100},"aggs": {"inneroutput": {"date_histogram": {"field": "@timestamp","interval" :"1m" ,"time_zone": "+05:30","min_doc_count": 1,"extended_bounds": {"min": "2019-11-04T11:14:46.228Z","max": "2019-11-04T11:35:26.072Z"}},"aggs": {"items": {"terms": {"field": "proc.name","size": 10,"order": {"count": "desc"}},"aggs": {"count": {"avg": {"field": "proc.cpu.user_p"}}}}}}}}}
curl -X POST "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_aliases?pretty" -H 'Content-Type: application/json' -d'
{ "add" : { "index" : "dev-newrelic-cpu-utilization", "alias" : "dev-newrelic-cpu-utilization_all" } }
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-07T07:14:00.226Z","lte" : "2019-11-07T07:19:37.670Z"}}}],"must_not":[{ "range": { "user_p": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-07T07:14:00.226Z","max":"2019-11-07T07:19:37.670Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"user_p"}}}}}}}
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty"
"TPM_ClassName_MethodName" : "AlertPostponedMessageDAO.isPostponedMessageExistsForAlert",
"TPM_ClassName_MethodName" : "AlertPostponedMessageDAO.isPostponedMessageExistsForAlert",
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-07T14:51:36.719Z","lte":"2019-11-08T04:30:04.557Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-07T14:51:36.719Z","max":"2019-11-08T04:30:04.557Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
commonQuery.append("],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]");
"\"aggs\":{\"output\":{\"terms\":{\"field\":\"host\",\"size\":100,\"order\":{\"count\":\"desc\"}},\"aggs\":{\"count\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"items\":{\"date_histogram\":{\"field\":\"@timestamp\",\"interval\":"
+ ",\"min_doc_count\":1,\"extended_bounds\":{\"min\":"
+ "}},\"aggs\":{\"max\":{\"avg\":{\"field\":\"HeapMemory_max\"}},\"committed\":{\"avg\":{\"field\":\"HeapMemory_committed\"}},\"used\":{\"avg\":{\"field\":\"HeapMemory_used\"}}}}}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"1","min_doc_count":1,"extended_bounds":{"min":
"2019-11-05T12:53:10.039Z","max":"2019-11-05T12:54:18.039Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-05T12:53:10.039Z","lte":"2019-11-05T12:54:18.039Z"}}}],
"{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":"
+ "}}}],\"must_not\":[]}}}},\"size\":0,\"sort\": [{\"@timestamp\":{\"order\":\"desc\"}}]");
+ "\",\"size\" : 1000},\"aggs\":{\"inneroutput\":{\"terms\":{\"field\":\""+targetName+"\"}}" + "}}}";
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T13:24:23.095Z","lte"
:"2019-11-08T13:35:07.652Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T13:24:23.095Z","lte":"2019-11-08T13:35:07.652Z"}}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"2m","min_doc_count":1,"extended_bounds":{"min":
"2019-11-08T13:24:23.095Z","max":"2019-11-08T13:35:07.652Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-08T12:20:23.095Z","lte":"2019-11-08T13:35:07.652Z"}}},{"term":{"application":"ui-heimdall"}}],
"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"HeapMemory_max"}},
"items":{"date_histogram":{"field":"@timestamp","interval":"2m","min_doc_count":1,"extended_bounds":{"min":
"2019-11-08T13:24:23.095Z","max":"2019-11-08T13:35:07.652Z"}},"aggs":{"max":{"avg":{"field":"HeapMemory_max"}},"committed":{"avg":{"field":"HeapMemory_committed"}},"used":{"avg":{"field":"HeapMemory_used"}}}}}}}}'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-cpu-utilization*?pretty"
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-newrelic-cpu-utilization*?pretty" -H 'Content-Type: application/json' -d'
{"template": "dev-newrelic-cpu-utilization*","settings": {"number_of_shards": "5","number_of_replicas": "1"},"mappings": {"system": {"_ttl": {"default": "3d","enabled": true},"properties": {"user_p": {"type": "float"},"hostname": {"analyzer": "keyword","type": "string"},"application": {"analyzer": "keyword","type": "string"}}}},"aliases": {"dev-newrelic-cpu-utilization_all": {}}}'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_template/dev-newrelic-cpu-utilization*?pretty"
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization?pretty" -H 'Content-Type: application/json' -d'
curl -X PUT "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization?pretty" -H 'Content-Type: application/json' -d'
{"settings": {"index": {"number_of_shards": 5,"number_of_replicas": 1}},"mappings": {"system": {"_ttl": {"default": "3d","enabled": true},"properties": {"used_bytes_by_host": {"type": "float"},"used_mb_by_host": {"type": "float"},"total_used_mb": {"type": "float"},"hostname": {"analyzer": "keyword","type": "string"},"application": {"analyzer": "keyword","type": "string"}}}},"aliases": {"stg-newrelic-heap-utilization_all": {}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-11T08:12:00.095Z","lte":"2019-11-11T08:18:00.652Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats_all/_search?pretty"
"TPM_ClassName_MethodName" : "ContactSubscriptionDAO.getJobSubscriptions",
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'
https://qbox.io/blog/comprehensive-guide-to-buckets-aggregations-in-elasticsearch
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/stg-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T07:08:00.404Z","lte":"2019-11-12T07:11:00.797Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/stg-cloudmongo-scanandorder/_search?pretty" -H 'Content-Type: application/json' -d'
curl -X POST "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-cloudmongo-scanandorder/_delete_by_query?scroll_size=5000&pretty" -H 'Content-Type: application/json' -d'
}curl -H 'Content-Type: application/json' -XGET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/stg-cloudmongo-scanandorder/_search"? -d'
curl -H 'Content-Type: application/json' -XGET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/stg-cloudmongo-scanandorder/_search"? -d'
client = TransportClient.builder().build().
addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
QueryBuilder qb = QueryBuilders.boolQuery().mustNot(QueryBuilders.termQuery("user_agent", ""));
scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(60000)).execute().actionGet();
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{
"field":"hostname","size":1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-newrelic-heap-utilization/_search?pretty" -H 'Content-Type: application/json' -d'{"query":
{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}}'
#########################2019-11-12 14:54:57,016 |INFO [http-bio-8443-exec-160] com.ghx.web.filter.security.CRLFFilter - Url : https://internal-testfw-cxtf-1405-ui-heimdall-elb-1347314042.us-west-2.elb.amazonaws.com/rest/testframework/performance/metrics/newrelic?chartgroup=jvmdao&chartname=line+chart+jvm+heap+stats&filtertype=all&fromdate=2019-11-12t14:18:12.988z&interval=2m&testresultid=5dcabec2e309741040fa86da&todate=2019-11-12t14:20:07.811z&viewtype=chart
2019-11-12 14:54:57,016 |INFO [http-bio-8443-exec-160] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.h.service.GHXHeimdallSecurityAspect - user tfwapi@ghx.com (id=3206631) attempt to access com.ghx.testframework.api.rest.PerformanceMetricsRESTService.getPerformanceMetricsStatForNewrelic([Line Chart JVM Heap Stats, jvmdao, 2019-11-12T14:18:12.988Z, 2019-11-12T14:20:07.811Z, 2m, chart, All, 5dcabec2e309741040fa86da, null, null, null, null])
>>Inside getObjectStackMappedForNewrelic fromDate2019-11-12T14:18:12.988ZtoDate2019-11-12T14:20:07.811ZosIndexAliasNamedev-newrelic-heap-utilization_allosIndexNamedev-newrelic-heap-utilizationindexTypenullobjectNamehosttargetNameapplication
query>>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>>{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,022 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
>>>>>>>>>>>Our qury{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2019-11-12T14:18:12.988Z","lte":"2019-11-12T14:20:07.811Z"}}}],"must_not":[]}}}},"size":0,"sort": [{"@timestamp":{"order":"desc"}}],"aggs":{"output":{"terms":{"field":"host","size" : 1000},"aggs":{"inneroutput":{"terms":{"field":"application"}}}}}
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=12, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=12, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@27441d14
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[]}}
chartNameLine Chart JVM Heap StatsfromDate2019-11-12T14:18:12.988ZtoDate2019-11-12T14:20:07.811Zinterval2mfilterType(application):All
query{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>systemquery>>{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization/system
2019-11-12 14:54:57,040 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
>>>>>>>>>>>Our qury{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@567f4571
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
results{output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
resultList[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - viewType: chart
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Before Transformation ES resultList size: 2
resultList:[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]
transformedESMap >>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]}
transformedESMap after adding Data and key>>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92]}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>> { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,045 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
>>>>>>>>>>>Our qury { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@17ef9a68
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
resultList[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Transformed Elastic Search Map size: 3
elasticSearchResultsTransformation:::::::::{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92], groupByItems={DEV-io-engine=DEV-io-engine, DEV-jobs=DEV-jobs, DEV-data-poller=DEV-data-poller, connectplus-fleet-DEVINT=connectplus-fleet-DEVINT, connectplus-api-DEV=connectplus-api-DEV, connectplus-fleet-DEV=connectplus-fleet-DEV, connectplus-api-DEVINT=connectplus-api-DEVINT, DEV-processing-engine=DEV-processing-engine}}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>systemquery>>{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization/system
2019-11-12 14:54:57,049 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is {"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
>>>>>>>>>>>Our qury{"bool": {"must":{"match_all":{}},"filter":{"bool":{ "must" : [{"range" : {"@timestamp" : { "gte" : "2019-11-12T14:18:12.988Z","lte" : "2019-11-12T14:20:07.811Z"}}}],"must_not":[{ "range": { "total_used_mb": { "lte": 0 } } }]}}}},"size":0,"aggs" : {"output":{"date_histogram" : {"field" : "@timestamp","interval" :"2m","time_zone":"+05:30","min_doc_count":1,"extended_bounds":{"min":"2019-11-12T14:18:12.988Z","max":"2019-11-12T14:20:07.811Z"}},"aggs":{"items":{"terms":{"field":"hostname","size":100,"order":{"count":"desc"}},"aggs":{"count":{"avg":{"field":"total_used_mb"}}}}}}}
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=11, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@4b4be1b6
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
results{output={buckets=[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]}}
resultList[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - viewType: chart
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Before Transformation ES resultList size: 2
resultList:[{key_as_string=2019-11-12T19:48:00.000+05:30, key=1573568280000, doc_count=1, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}}, {key_as_string=2019-11-12T19:50:00.000+05:30, key=1573568400000, doc_count=10, items={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}}]
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.37.188, doc_count=1, count={value=28400.0}}]}
buketsMap>>>>>{doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=10.31.32.204, doc_count=1, count={value=30200.0}}, {key=10.31.61.133, doc_count=1, count={value=28100.0}}, {key=10.31.37.188, doc_count=1, count={value=25300.0}}, {key=10.31.35.120, doc_count=1, count={value=22000.0}}, {key=10.31.32.112, doc_count=1, count={value=16300.0}}, {key=10.31.34.157, doc_count=1, count={value=6410.0}}, {key=10.32.35.238, doc_count=1, count={value=3630.0}}, {key=10.32.33.18, doc_count=1, count={value=3150.0}}, {key=10.31.37.147, doc_count=1, count={value=2070.0}}, {key=10.31.34.92, doc_count=1, count={value=1560.0}}]}
valuesList >>>>>[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]
transformedESMap >>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}]}
transformedESMap after adding Data and key>>>>>{data=[{10.31.37.188=28400.0, time=1573568280000}, {10.31.35.120=22000.0, 10.31.61.133=28100.0, 10.31.32.204=30200.0, 10.32.33.18=3150.0, 10.31.32.112=16300.0, 10.31.37.147=2070.0, 10.31.37.188=25300.0, time=1573568400000, 10.32.35.238=3630.0, 10.31.34.157=6410.0, 10.31.34.92=1560.0}], keys=[10.31.37.188, 10.31.32.204, 10.31.61.133, 10.31.35.120, 10.31.32.112, 10.31.34.157, 10.32.35.238, 10.32.33.18, 10.31.37.147, 10.31.34.92]}
Inside getSearchResultsFromES indexAliasNamedev-newrelic-heap-utilization_allindexName>>indexType>>nullquery>> { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - indexStr is dev-newrelic-heap-utilization
2019-11-12 14:54:57,053 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - esquery is { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
>>>>>>>>>>>Our qury { "match_all":{} },"size":0, "aggs":{ "output":{ "terms":{ "field":"application" } } }
2019-11-12 14:54:57,056 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - searchResult.getResponseMetaData(): {TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
searchResult.getResponseMetaData()>>>>{TotalShards=5, SuccessShards=5, TotalRecords=285, ES_MAX_SCORE=0.0, FailedShards=0, TookTime=1}
>>>Inside getSearchResultsFromES searchResultcom.ghx.common.search.model.SearchResult@67b37163
>>>Inside getSearchResultsFromES searchResult.getAggregations(){output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
results{output={doc_count_error_upper_bound=0, sum_other_doc_count=0, buckets=[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]}}
resultList[{key=connectplus-api-DEVINT, doc_count=66}, {key=connectplus-api-DEV, doc_count=41}, {key=DEV-data-poller, doc_count=34}, {key=DEV-processing-engine, doc_count=34}, {key=DEV-io-engine, doc_count=33}, {key=DEV-jobs, doc_count=33}, {key=connectplus-fleet-DEV, doc_count=22}, {key=connectplus-fleet-DEVINT, doc_count=22}]
2019-11-12 14:54:57,057 |INFO [http-bio-8443-exec-160] c.g.t.a.s.impl.PerformanceMetricsServiceImpl - Transformed Elastic Search Map size: 3
2019-11-12 14:54:57,057 |INFO [http-bio-8443-exec-160] c.g.h.service.GHXHeimdallSecurityAspect - Access to com.ghx.testframework.api.rest.PerformanceMetricsRESTService granted to getPerformanceMetricsStatForNewrelic.[Line Chart JVM Heap Stats, jvmdao, 2019-11-12T14:18:12.988Z, 2019-11-12T14:20:07.811Z, 2m, chart, All, 5dcabec2e309741040fa86da, null, null, null, null](user tfwapi@ghx.com (id=3206631))
2019-11-12 14:55:04,901 |INFO [http-bio-8443-exec-129] com.ghx.web.filter.security.CRLFFilter - Url :
2019-11-12 14:55:04,901 |INFO [http-bio-8443-exec-129] com.ghx.web.filter.security.CRLFFilter - CRLF enabled true
2019-11-12 14:55:04,902 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.SystemStatusRESTService.stoppedAndThrottled([])
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl.getCacheNameKey([])
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - Access to com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl granted to getCacheNameKey.[](user spkannan (id=3186733))
2019-11-12 14:55:04,903 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.cache.ComponentAndAdapterStatusMonitoringConfigCacheImpl.get([componentAndAdapterStatusCache, com.ghx.tpm.rest.system.monitoring.SystemStatusRESTService$$Lambda$795/1382351673@3dfb6724])
2019-11-12 14:55:04,907 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - user spkannan (id=3186733) attempt to access com.ghx.tpm.rest.system.monitoring.ComponentAdapterReportingServiceImpl.getCurrentComponentAndAdapterStatusReport([com.ghx.system.monitoring.model.dto.StoppedListenersDto@1e341e62])
2019-11-12 14:55:04,908 |INFO [http-bio-8443-exec-129] com.ghx.tpm.GHXTpmSecurityAspect - Acce
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-cloudmongo-opcounter-query/_search?pretty=true" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2021-02-10T15:30:00.00Z","lte":"2021-02-10T15:31:00.00Z"}}}],"must_not":[]}}}},"size":70,"sort":[{"@timestamp":{"order":"desc"}}]}'
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-cloudmongo-opcounter-query/_search?pretty=true" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2021-02-10T12:08:00.404Z","lte":"2021-02-10T12:50:00.797Z"}}}],"must_not":[]}}}},"size":0,"sort":[{"@timestamp":{"order":"desc"}}]}'
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-cloudmongo-opcounter-query/_search?pretty=true" -H 'Content-Type: application/json' -d'{"query":{"bool":{"must":{"match_all":{}},"filter":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2021-02-11T10:37:00Z","lte":"2021-02-11T10:38:00Z"}}}],"must_not":[]}}}},"size":10,"sort":[{"@timestamp":{"order":"desc"}}]}'
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_recovery?pretty"
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_recovery?human&pretty"
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/dev-newrelic-cpu-utilization/_snapshot/my_backup/_current?pretty"
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/_snapshot?pretty"
curl -X GET "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/_snapshot/cs-automated-enc/_all?pretty"
curl -XPOST "https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/_snapshot/cs-automated-enc/2021-06-14t14-29-50.68378751-ab0b-4c01-be11-c4e1c9fc9c53/_restore"
curl -XPOST 'elasticsearch-domain-endpoint/_snapshot/repository-name/snapshot-name/_restore'
curl -XPOST 'https://vpc-test-framework-es7-vpc-b4flsoliewpodkvnqdyc75dtqa.us-west-2.es.amazonaws.com/_snapshot/cs-automated/2021-06-14t14-29-50.68378751-ab0b-4c01-be11-c4e1c9fc9c53/_restore' -d '{"indices": "dev-newrelic-cpu-utilization"}' -H 'Content-Type: application/json'
As2 - bug
10:49:17.901 |ERROR [ 1-43] com.ghx.adapter.outbound.AS2TFSenderAdapter - Error sending file Test_Scenario_26_5c235bd304a3480c58b2bcb3_TC1_mmmhX_850_EDI_STG_Replacepo_850_EDI_STG_Replacepo_4122618_58568_43 to AS2 server
com.ghx.as.exception.ASMessageException: Encryption certificate(s) required
at com.ghx.as.ASMessageBuilder.validateParams(ASMessageBuilder.java:198) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.AS2MessageBuilder.validateParams(AS2MessageBuilder.java:68) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:152) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:144) ~[as-lib-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:353) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.sendDocument(AS2TFSenderAdapter.java:456) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.jmetersampler.CustomSamplerClient.runTest(CustomSamplerClient.java:127) [test-framework-jmetersampler-1.100.0.jar:1.100.0]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) [ApacheJMeter_java-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
10:49:17.902 |ERROR [ 1-43] com.ghx.jmetersampler.CustomSamplerClient - error in custom sampler client while push the data {}
com.ghx.adapter.utils.exception.ExternalRetriableDocumentException: Error sending file
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:430) ~[adapter-as2-sender-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.sendDocument(AS2TFSenderAdapter.java:456) ~[adapter-as2-sender-1.100.0.jar:na]
at com.ghx.jmetersampler.CustomSamplerClient.runTest(CustomSamplerClient.java:127) ~[test-framework-jmetersampler-1.100.0.jar:1.100.0]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) [ApacheJMeter_java-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
Caused by: com.ghx.as.exception.ASMessageException: Encryption certificate(s) required
at com.ghx.as.ASMessageBuilder.validateParams(ASMessageBuilder.java:198) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.AS2MessageBuilder.validateParams(AS2MessageBuilder.java:68) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:152) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:144) ~[as-lib-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:353) ~[adapter-as2-sender-1.100.0.jar:na]
... 7 common frames omitted
10:49:18.058 |ERROR [ 1-44] com.ghx.jmetersampler.CustomSamplerClient - Exception occurred during upload document. Message: Error sending file. Document parameters[ adapterData: {"toURL":"https://corex-stg-io.awsdsi.ghx.com/egx/adapter/inbound/as2/GHXAS2sync","msgType":"SMIME_ENCRYPTED","orgName":"GHX","selfEncryptionCert":492,"digestAlg":"sha1","compress":false,"mdnTransferMode":"SYNC","chunkingEnabled":false,"subject":"Mercury Load Test Stage","asyncMDNTimeout":120,"fromAS2ID":"QaAs2StgPrvSyncAuto","encryptionCert":295,"encryptionAlg":"AES128","mdnType":"UNSIGNED","mdnDigestAlg":"sha1","toAS2ID":"GHXAS2sync","signingCert":-1}, adapterName: com.ghx.adapter.outbound.AS2TFSenderAdapter, filePath: /install/testresults/Test_Scenario_26_5c235bd304a3480c58b2bcb3/2_input/TC1_mmmhX_850_EDI_STG_Replacepo_4, fileName: Test_Scenario_26_5c235bd304a3480c58b2bcb3_TC1_mmmhX_850_EDI_STG_Replacepo_850_EDI_STG_Replacepo_4122618_56913_44, docContext: [{"key":"DocVersion","value":"004010"},{"key":"DocSubType","value":"850"},{"key":"DocType","value":"EDI"}], actionData: [] ]
com.ghx.adapter.utils.exception.ExternalRetriableDocumentException: Error sending file
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:430) ~[adapter-as2-sender-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.sendDocument(AS2TFSenderAdapter.java:456) ~[adapter-as2-sender-1.100.0.jar:na]
at com.ghx.jmetersampler.CustomSamplerClient.runTest(CustomSamplerClient.java:127) ~[test-framework-jmetersampler-1.100.0.jar:1.100.0]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) [ApacheJMeter_java-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
Caused by: com.ghx.as.exception.ASMessageException: Encryption certificate(s) required
at com.ghx.as.ASMessageBuilder.validateParams(ASMessageBuilder.java:198) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.AS2MessageBuilder.validateParams(AS2MessageBuilder.java:68) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:152) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:144) ~[as-lib-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:353) ~[adapter-as2-sender-1.100.0.jar:na]
... 7 common frames omitted
2018-12-26 11:16:37,208 |ERROR [ 1-33] com.ghx.adapter.outbound.AS2TFSenderAdapter - Error sending file Test_Scenario_26_5c23624004a3480c58b2bcb5_TC1_bWgiw_FIND_AND_REPLACE_850_STG_FIND_AND_REPLACE_850_STG_4122618_72582_33 to AS2 server
com.ghx.as.exception.ASMessageException: Encryption certificate(s) required
at com.ghx.as.ASMessageBuilder.validateParams(ASMessageBuilder.java:198) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.AS2MessageBuilder.validateParams(AS2MessageBuilder.java:68) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:152) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:144) ~[as-lib-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:353) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.sendDocument(AS2TFSenderAdapter.java:456) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.jmetersampler.CustomSamplerClient.runTest(CustomSamplerClient.java:127) [test-framework-jmetersampler-1.100.0.jar:1.100.0]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) [ApacheJMeter_java-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
2018-12-26 11:16:37,208 |ERROR [ 1-9] com.ghx.adapter.outbound.AS2TFSenderAdapter - Error sending file Test_Scenario_26_5c23624004a3480c58b2bcb5_TC1_bWgiw_FIND_AND_REPLACE_850_STG_FIND_AND_REPLACE_850_STG_4122618_48829_9 to AS2 server
com.ghx.as.exception.ASMessageException: Encryption certificate(s) required
at com.ghx.as.ASMessageBuilder.validateParams(ASMessageBuilder.java:198) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.AS2MessageBuilder.validateParams(AS2MessageBuilder.java:68) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:152) ~[as-lib-1.100.0.jar:na]
at com.ghx.as.ASMessageBuilder.build(ASMessageBuilder.java:144) ~[as-lib-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.packageAndSend(AS2TFSenderAdapter.java:353) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.adapter.outbound.AS2TFSenderAdapter.sendDocument(AS2TFSenderAdapter.java:456) [adapter-as2-sender-1.100.0.jar:na]
at com.ghx.jmetersampler.CustomSamplerClient.runTest(CustomSamplerClient.java:127) [test-framework-jmetersampler-1.100.0.jar:1.100.0]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) [ApacheJMeter_java-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core-3.2.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
ps -ef | grep logstash |wc -l
CXTF-1262
ProcessUtils <-testStackServiceImpl checkDependencies
TF_TFW_DEPENDENCIES_APPS:logstash
TF_COREX_DEPENDENCIES_APPS:topbeat,logstash,cpumetriccollection
List<String> process = Stream.of(processStr.split(","))
.collect(Collectors.toList());
return ProcessUtils.isProcessRunning(process);
here processStr=topbeat,logstash,cpumetriccollection or processStr=logstash
TestScenarioExecutorREST<-getMinionConfigurationStatus -<-checkDependencies
TestEngine <-validateMinionStatus <-
DependentAppStatus <-checkDependencies
DefaultClusterTaskService <-verifyIOEApp
verifyPEApp, verifyUEApp, verifyDPApp, verifyEJApp, verifyUIApp,
applicationVerificationTask <- verifyUIApp(context);
DefaultReplayScenarioInfrastructureService
private void verifyIOEApp(ReplayScenarioCloudContext context) {
if (StringUtils.isEmpty(context.getIoEngineHost())) {
final String errMsg = "Cluster creation failed due to IO Engine host is empty.";
LOGGER.error(errMsg);
throw new AwsClientException(errMsg);
}
try {
final String statusUrlTemplate = "https://${host}/rest/testframework/checkreplaydependencies/corex";
final String ioeStatusUrl = constructStatusUrl(statusUrlTemplate, context.getIoEngineHost());
ResponseEntity<String> response = RequestTimeoutHelper.performGetForEntity("getIOEProcessStatus", ioeStatusUrl, String.class, REST_REQUEST_LIMIT, 300);
HttpStatus status = response.getStatusCode();
LOGGER.info("IOE ping status {} ",status);
if (status != HttpStatus.OK) {
final String errMsg = "Cluster creation failed due to IO Engine process status: " + status;
LOGGER.error(errMsg);
throw new AwsClientException(errMsg);
}
} catch (TestFWServerException ex) {
final String errMsg = "Cluster creation failed due getIOEProcessStatus error. " + ex.getMessage();
LOGGER.error(errMsg, ex);
throw new AwsClientException(errMsg, ex);
}
}
processing Output >>>>java.lang.UNIXProcess$ProcessPipeOutputStream@6d03e736
processing Input >>>>java.lang.UNIXProcess$ProcessPipeInputStream@568db2f2
processing Output >>>>java.lang.UNIXProcess$ProcessPipeOutputStream@6d03e736
processing Input >>>>java.lang.UNIXProcess$ProcessPipeInputStream@568db2f2
As Discussed with Team, we have planned to add an entry in database inside a new collection specific to this requirement. The Collection will contains minionipaddress as key and value as true or false which implies isprocessRunning(logstash process for TestFramework).
CFTemplate creates logstash and starts using start-ls.sh. there we check logstash status and update in DB.
the below command gives count 2 if logstash up or 1 if logstash down
ps -ef | grep logstash | wc -l
systemctl status logstash
/usr/bin/mongo localhost:27027/admin <<EOF
db.getSiblingDB('testframework');
insert(ip);
EOF
splunk log greylog
troubleshoot:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
https://github.com/taimos/cloudformation
Hi, I guess call is on 8.30 ,
I will be in travel during that time
I would not be able to attend the call!!Is there any possibilty to prepone the call??@siva told that he will update instead of me
mongodb://configsvc-user:configsvc123@localhost:27017/configsvc
mongodb://test-framework-user:testframework123@localhost:27017/test-framework
For DEV and DEVINT
> mongo
> use test-framework
> db.createUser({user:"test-framework-user", pwd: "testframework123", roles: ["readWrite"]})
For STG (since resides on same server as DEV we require a different DB name***)
> mongo
> use test-framework-stg
> db.createUser({user:"test-framework-user", pwd: "testframework123", roles: ["readWrite"]})
NOTE: The development on this project is in progress hence the PRD, Local and vagrant and local support are not fully available at this point. When they do we will update this page. Contact Daniel or Mukund for this if needed.
-Dghx.configsvc.db.url=mongodb://configsvc-user:configsvc123@localhost:27017/configsvc
public static final String PROP_CONFIG_DB_URL = "ghx.configsvc.db.url";
public static final String PROP_CONFIG_DB_PASS = "ghx.configsvc.db.pass";
public static final String PROP_TEST_FRAMEWORK_DB_URL = "ghx.test-framework.db.url";
"value" : "-server -Xms8192m -Xmx12288m -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=2048m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp",
"value" : "-server -Xms8192m -Xmx12288m -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=2048m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp",
mongodb://configsvc-user:configsvc123@configsvc-dev-01.awsdsi.ghx.com:27027,configsvc-dev-02.awsdsi.ghx.com:27027,configsvc-dev-03.awsdsi.ghx.com:27027/configsvc?replicaSet=rs3
mongodb://test-framework-user:{test-framework-password}@dmongo-01.awsdsi.ghx.com:27027/test-framework?replicaSet=rs3
ConfigSvcFactory.singleton().getPassword(key)
ConfigSvcKeysConstants.enc
StandardPBEByteEncryptor encryption
mongodb://audit-api:{audit-password}@{env}mongo-01.awsdsi.ghx.com:27027,{env}mongo-02.awsdsi.ghx.com:27027,{env}mongo-03.awsdsi.ghx.com:27027/audit?readPreference=primary
public static void main(String[] args) {
System.out.println(">>>>>>"+com.ghx.configsvc.util.EncryptionUtils.encrypt("hai"));
System.out.println(">>>>>>Decrypt"+com.ghx.configsvc.util.EncryptionUtils.decrypt("DCqJcYFvx68cnt8B8nMfoh/khK9iKbVX6E7YC29ejpE="));
System.out.println("testframework uri"+ConfigSvcFactory.singleton().getComponentProperty("ds","test-framework-uri"));
System.out.println("testframework uri"+ConfigSvcFactory.singleton().getComponentProperty("ds","test-framework-password"));
String testframeworkURI = ConfigSvcFactory.singleton().getComponentProperty("ds","test-framework-uri");
String testframeworkPass = ConfigSvcFactory.singleton().getComponentProperty("ds","test-framework-password");
testframeworkURI = testframeworkURI.replace("{test-framework-password}",testframeworkPass);
System.out.println(">>>>>>>URI"+testframeworkURI);
}
BasicDAO
package dev.morphia.dao;
import com.mongodb.DBCollection;
import com.mongodb.MongoClient;
import com.mongodb.WriteConcern;
import com.mongodb.WriteResult;
import dev.morphia.Datastore;
import dev.morphia.InsertOptions;
import dev.morphia.Key;
import dev.morphia.Morphia;
import dev.morphia.UpdateOptions;
import dev.morphia.query.FindOptions;
import dev.morphia.query.Query;
import dev.morphia.query.UpdateOperations;
import dev.morphia.query.UpdateResults;
import java.lang.reflect.ParameterizedType;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* @param <T> the type of the entity
* @param <K> the type of the key
* @author Olafur Gauti Gudmundsson
* @author Scott Hernandez
* @deprecated This interface poorly tracks Datastore's API. Use Datastore directly or wrap in an application specific DAO
*/
@Deprecated
@SuppressWarnings({"WeakerAccess", "deprecation", "unused"})
public class BasicDAO<T, K> implements DAO<T, K> {
//CHECKSTYLE:OFF
/**
* @deprecated use {@link #getEntityClass()}
*/
@Deprecated
protected Class<T> entityClazz;
/**
* @deprecated use {@link #getDatastore()}
*/
@Deprecated
protected dev.morphia.DatastoreImpl ds;
//CHECKSTYLE:ON
/**
* Create a new BasicDAO
*
* @param entityClass the class of the POJO you want to persist using this DAO
* @param mongoClient the representations of the connection to a MongoDB instance
* @param morphia a Morphia instance
* @param dbName the name of the database
*/
public BasicDAO(final Class<T> entityClass, final MongoClient mongoClient, final Morphia morphia, final String dbName) {
initDS(mongoClient, morphia, dbName);
initType(entityClass);
}
/**
* Create a new BasicDAO
*
* @param entityClass the class of the POJO you want to persist using this DAO
* @param ds the Datastore which gives access to the MongoDB instance for this DAO
*/
public BasicDAO(final Class<T> entityClass, final Datastore ds) {
this.ds = (dev.morphia.DatastoreImpl) ds;
initType(entityClass);
}
/**
* Only calls this from your derived class when you explicitly declare the generic types with concrete classes
* <p/>
* {@code class MyDao extends DAO<MyEntity, String>}
*
* @param mongoClient the representations of the connection to a MongoDB instance
* @param morphia a Morphia instance
* @param dbName the name of the database
*/
@SuppressWarnings("unchecked")
protected BasicDAO(final MongoClient mongoClient, final Morphia morphia, final String dbName) {
initDS(mongoClient, morphia, dbName);
initType(((Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]));
}
@SuppressWarnings("unchecked")
protected BasicDAO(final Datastore ds) {
this.ds = (dev.morphia.DatastoreImpl) ds;
initType(((Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]));
}
@Override
public long count() {
return ds.getCount(entityClazz);
}
@Override
public long count(final String key, final Object value) {
return count(ds.find(entityClazz).filter(key, value));
}
@Override
public long count(final Query<T> query) {
return ds.getCount(query);
}
@Override
public Query<T> createQuery() {
return ds.find(entityClazz);
}
@Override
public UpdateOperations<T> createUpdateOperations() {
return ds.createUpdateOperations(entityClazz);
}
@Override
public WriteResult delete(final T entity) {
return ds.delete(entity);
}
@Override
public WriteResult delete(final T entity, final WriteConcern wc) {
return ds.delete(entity, wc);
}
@Override
public WriteResult deleteById(final K id) {
return ds.delete(entityClazz, id);
}
@Override
public WriteResult deleteByQuery(final Query<T> query) {
return ds.delete(query);
}
@Override
public void ensureIndexes() {
ds.ensureIndexes(entityClazz);
}
@Override
public boolean exists(final String key, final Object value) {
return exists(ds.find(entityClazz).filter(key, value));
}
@Override
public boolean exists(final Query<T> query) {
return query.get(new FindOptions().limit(1)) != null;
}
@Override
public Query<T> find() {
return createQuery();
}
@Override
public Query<T> find(final Query<T> query) {
return query;
}
@Override
@SuppressWarnings("unchecked")
public List<K> findIds() {
return (List<K>) keysToIds(ds.find(entityClazz).asKeyList());
}
@Override
@SuppressWarnings("unchecked")
public List<K> findIds(final String key, final Object value) {
return (List<K>) keysToIds(ds.find(entityClazz).filter(key, value).asKeyList());
}
@Override
@SuppressWarnings("unchecked")
public List<K> findIds(final Query<T> query) {
return (List<K>) keysToIds(query.asKeyList());
}
@Override
public T findOne(final String key, final Object value) {
return ds.find(entityClazz).filter(key, value).get();
}
/* (non-Javadoc)
* @see dev.morphia.DAO#findOne(dev.morphia.query.Query)
*/
@Override
public T findOne(final Query<T> query) {
return query.get();
}
@Override
public Key<T> findOneId() {
return findOneId(ds.find(entityClazz));
}
@Override
public Key<T> findOneId(final String key, final Object value) {
return findOneId(ds.find(entityClazz).filter(key, value));
}
@Override
public Key<T> findOneId(final Query<T> query) {
Iterator<Key<T>> keys = query.fetchKeys().iterator();
return keys.hasNext() ? keys.next() : null;
}
@Override
public T get(final K id) {
return ds.get(entityClazz, id);
}
@Override
public DBCollection getCollection() {
return ds.getCollection(entityClazz);
}
/* (non-Javadoc)
* @see dev.morphia.DAO#getDatastore()
*/
@Override
public Datastore getDatastore() {
return ds;
}
@Override
public Class<T> getEntityClass() {
return entityClazz;
}
@Override
public Key<T> save(final T entity) {
return ds.save(entity);
}
@Override
public Key<T> save(final T entity, final WriteConcern wc) {
return ds.save(entity, new InsertOptions().writeConcern(wc));
}
@Override
public UpdateResults update(final Query<T> query, final UpdateOperations<T> ops) {
return ds.update(query, ops);
}
@Override
public UpdateResults updateFirst(final Query<T> query, final UpdateOperations<T> ops) {
return ds.update(query, ops, new UpdateOptions());
}
/**
* @return the Datastore used by this DAO
* @deprecated use {@link #getDatastore()}
*/
@Deprecated
public dev.morphia.DatastoreImpl getDs() {
return ds;
}
/**
* @return the entity class
* @deprecated use {@link #getEntityClass()} instead
*/
@Deprecated
public Class<T> getEntityClazz() {
return entityClazz;
}
protected void initDS(final MongoClient mongoClient, final Morphia mor, final String db) {
ds = (dev.morphia.DatastoreImpl) mor.createDatastore(mongoClient, db);
}
protected void initType(final Class<T> type) {
entityClazz = type;
ds.getMapper().addMappedClass(type);
}
/**
* Converts from a List<Key> to their id values
*/
protected List<?> keysToIds(final List<Key<T>> keys) {
final List<Object> ids = new ArrayList<Object>(keys.size() * 2);
for (final Key<T> key : keys) {
ids.add(key.getId());
}
return ids;
}
}
Query.class
package dev.morphia.query;
import com.mongodb.Bytes;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;
import com.mongodb.ReadPreference;
import com.mongodb.client.MongoIterable;
import dev.morphia.Key;
import dev.morphia.query.internal.MorphiaCursor;
import dev.morphia.query.internal.MorphiaKeyCursor;
import org.bson.types.CodeWScope;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* @param <T> The java type to query against
*/
public interface Query<T> extends QueryResults<T>, MongoIterable<T> {
/**
* Creates a container to hold 'and' clauses
*
* @param criteria the clauses to 'and' together
* @return the container
*/
CriteriaContainer and(Criteria... criteria);
/**
* Batch-size of the fetched result (cursor).
*
* @param value must be >= 0. A value of 0 indicates the server default.
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#batchSize(int)
*/
@Deprecated
Query<T> batchSize(int value);
/**
* Creates and returns a copy of this {@link Query}.
*
* @return this
* @morphia.internal
*/
Query<T> cloneQuery();
/**
* This makes it possible to attach a comment to a query. Because these comments propagate to the profile log, adding comments can make
* your profile data much easier to interpret and trace.
*
* @param comment the comment to add
* @return the Query to enable chaining of commands
* @see FindOptions#modifier(String, Object)
* @deprecated use the methods that accept Options directly. This can be replicated with {@code options.modifier("$comment", comment)}
* @mongodb.driver.manual reference/operator/meta/comment $comment
*/
@Deprecated
Query<T> comment(String comment);
/**
* Creates a criteria to apply against a field
*
* @param field the field
* @return the FieldEnd to define the criteria
*/
FieldEnd<? extends CriteriaContainer> criteria(String field);
/**
* Disables cursor timeout on server.
*
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#noCursorTimeout(boolean)
*/
@Deprecated
Query<T> disableCursorTimeout();
/**
* Disable snapshotted mode (default mode). This will be faster but changes made during the cursor may cause duplicates.
*
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$snapshot", false)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> disableSnapshotMode();
/**
* Turns off validation (for all calls made after)
*
* @return this
*/
Query<T> disableValidation();
/**
* Enables cursor timeout on server.
*
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#noCursorTimeout(boolean)
*/
@Deprecated
Query<T> enableCursorTimeout();
/**
* Enables snapshotted mode where duplicate results (which may be updated during the lifetime of the cursor) will not be returned. Not
* compatible with order/sort and hint.
*
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$snapshot", true)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> enableSnapshotMode();
/**
* Turns on validation (for all calls made after); by default validation is on
*
* @return this
*/
Query<T> enableValidation();
/**
* Provides information on the query plan. The query plan is the plan the server uses to find the matches for a query. This information
* may be useful when optimizing a query.
*
* @return Map describing the process used to return the query results.
* @mongodb.driver.manual reference/operator/meta/explain/ explain
*/
Map<String, Object> explain();
/**
* Provides information on the query plan. The query plan is the plan the server uses to find the matches for a query. This information
* may be useful when optimizing a query.
*
* @param options the options to apply to the explain operation
* @return Map describing the process used to return the query results.
* @mongodb.driver.manual reference/operator/meta/explain/ explain
* @since 1.3
*/
Map<String, Object> explain(FindOptions options);
/**
* Fluent query interface: {@code createQuery(Ent.class).field("count").greaterThan(7)...}
*
* @param field the field
* @return the FieldEnd to define the criteria
*/
FieldEnd<? extends Query<T>> field(String field);
/**
* Create a filter based on the specified condition and value. </p> <p><b>Note</b>: Property is in the form of "name op" ("age
* >").
* <p/>
* <p>Valid operators are ["=", "==","!=", "<>", ">", "<", ">=", "<=", "in", "nin", "all", "size", "exists"] </p>
* <p/>
* <p>Examples:</p>
* <p/>
* <ul>
* <li>{@code filter("yearsOfOperation >", 5)}</li>
* <li>{@code filter("rooms.maxBeds >=", 2)}</li>
* <li>{@code filter("rooms.bathrooms exists", 1)}</li>
* <li>{@code filter("stars in", new Long[]{3, 4}) //3 and 4 stars (midrange?)}</li>
* <li>{@code filter("quantity mod", new Long[]{4, 0}) // customers ordered in packs of 4)}</li>
* <li>{@code filter("age >=", age)}</li>
* <li>{@code filter("age =", age)}</li>
* <li>{@code filter("age", age)} (if no operator, = is assumed)</li>
* <li>{@code filter("age !=", age)}</li>
* <li>{@code filter("age in", ageList)}</li>
* <li>{@code filter("customers.loyaltyYears in", yearsList)}</li>
* </ul>
* <p/>
* <p>You can filter on id properties <strong>if</strong> this query is restricted to a Class<T>.
*
* @param condition the condition to apply
* @param value the value to apply against
* @return this
*/
Query<T> filter(String condition, Object value);
/**
* @return the batch size
* @see #batchSize(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#batchSize(int)
*/
@Deprecated
int getBatchSize();
/**
* @return the collection this query targets
*
* @deprecated This is an internal method and subject to change or removal. Do not use.
* @morphia.internal
*/
@Deprecated
DBCollection getCollection();
/**
* @return the entity {@link Class}.
* @deprecated
* @morphia.internal
*/
@Deprecated
Class<T> getEntityClass();
/**
* @return the Mongo fields {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getFieldsObject();
/**
* @return the limit
* @see #limit(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#limit(int)
*/
@Deprecated
int getLimit();
/**
* @return the offset.
* @see #offset(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#getSkip()
*/
@Deprecated
int getOffset();
/**
* @return the Mongo query {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getQueryObject();
/**
* @return the Mongo sort {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getSortObject();
/**
* Hints as to which index should be used.
*
* @param idxName the index name to hint
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated with {@code options.modifier("$hint", idxName)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> hintIndex(String idxName);
/**
* Limit the fetched result set to a certain number of values.
*
* @param value must be >= 0. A value of 0 indicates no limit. For values < 0, use {@link FindOptions#batchSize(int)} which
* is the preferred method
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#limit(int)
*/
@Deprecated
Query<T> limit(int value);
/**
* <p> Specify the inclusive lower bound for a specific index in order to constrain the results of this query. <p/> You can chain
* key/value pairs to build a constraint for a compound index. For instance: </p> <p> {@code query.lowerIndexBound(new
* BasicDBObject("a", 1).append("b", 2)); } </p> <p> to build a constraint on index {@code {"a", "b"}} </p>
*
* @param lowerBound The inclusive lower bound.
* @return this
* @mongodb.driver.manual reference/operator/meta/min/ $min
* @deprecated use the methods that accept Options directly. This can be replicated using
* {@code options.modifier("$min", new Document(...)) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> lowerIndexBound(DBObject lowerBound);
/**
* Constrains the query to only scan the specified number of documents when fulfilling the query.
*
* @param value must be > 0. A value < 0 indicates no limit
* @return this
* @mongodb.driver.manual reference/operator/meta/maxScan/#op._S_maxScan $maxScan
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$maxScan", value) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> maxScan(int value);
/**
* Specifies a time limit for executing the query. Requires server version 2.6 or above.
*
* @param maxTime must be > 0. A value < 0 indicates no limit
* @param maxTimeUnit the unit of time to use
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.maxTime(value, unit) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> maxTime(long maxTime, TimeUnit maxTimeUnit);
/**
* Starts the query results at a particular zero-based offset.
*
* @param value must be >= 0
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#skip(int)
*/
@Deprecated
Query<T> offset(int value);
/**
* Creates a container to hold 'or' clauses
*
* @param criteria the clauses to 'or' together
* @return the container
*/
CriteriaContainer or(Criteria... criteria);
/**
* Sorts based on a property (defines return order). Examples:
* <p/>
* <ul>
* <li>{@code order("age")}</li>
* <li>{@code order("-age")} (descending order)</li>
* <li>{@code order("age, date")}</li>
* <li>{@code order("age,-date")} (age ascending, date descending)</li>
* </ul>
*
* @param sort the sort order to apply
* @return this
* @deprecated use {@link #order(Sort...)}
*/
@Deprecated
Query<T> order(String sort);
/**
* Sorts based on a metadata (defines return order). Example:
* {@code order(Meta.textScore())} ({textScore : { $meta: "textScore" }})
* @param sort the sort order to apply
* @return this
*/
Query<T> order(Meta sort);
/**
* Sorts based on a specified sort keys (defines return order).
*
* @param sorts the sort order to apply
* @return this
*/
Query<T> order(Sort... sorts);
/**
* Adds a field to the projection clause. Passing true for include will include the field in the results. Projected fields must all
* be inclusions or exclusions. You can not include and exclude fields at the same time with the exception of the _id field. The
* _id field is always included unless explicitly suppressed.
*
* @param field the field to project
* @param include true to include the field in the results
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
*/
Query<T> project(String field, boolean include);
/**
* Adds an sliced array field to a projection.
*
* @param field the field to project
* @param slice the options for projecting an array field
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
* @mongodb.driver.manual /reference/operator/projection/slice/ $slice
*/
Query<T> project(String field, ArraySlice slice);
/**
* Adds a metadata field to a projection.
*
* @param meta the metadata option for projecting
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
* @mongodb.driver.manual reference/operator/projection/meta/ $meta
*/
Query<T> project(Meta meta);
/**
* Route query to non-primary node
*
* @return this
* @see ReadPreference#secondary()
* @see ReadPreference#secondaryPreferred()
* @deprecated use the methods that accept Options directly
* @see FindOptions#readPreference(ReadPreference)
* @see ReadPreference#secondary()
* @see ReadPreference#secondaryPreferred()
*/
@Deprecated
Query<T> queryNonPrimary();
/**
* Route query to primary node
*
* @return this
* @see ReadPreference#primary()
* @deprecated use the methods that accept Options directly.
* @see FindOptions#readPreference(ReadPreference)
* @see ReadPreference#primary()
* @see ReadPreference#primaryPreferred()
*/
@Deprecated
Query<T> queryPrimaryOnly();
/**
* Limits the fields retrieved to those of the query type -- dangerous with interfaces and abstract classes
*
* @return this
*/
Query<T> retrieveKnownFields();
/**
* Limits the fields retrieved
*
* @param include true if the fields should be included in the results. false to exclude them.
* @param fields the fields in question
* @return this
* @deprecated use {@link #project(String, boolean)} instead
*/
@Deprecated
Query<T> retrievedFields(boolean include, String... fields);
/**
* Only return the index field or fields for the results of the query. If $returnKey is set to true and the query does not use an index
* to perform the read operation, the returned documents will not contain any fields
*
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/meta/returnKey/#op._S_returnKey $returnKey
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$returnKey", true) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> returnKey();
/**
* Perform a text search on the content of the fields indexed with a text index..
*
* @param text the text to search for
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/query/text/ $text
*/
Query<T> search(String text);
/**
* Perform a text search on the content of the fields indexed with a text index..
*
* @param text the text to search for
* @param language the language to use during the search
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/query/text/ $text
*/
Query<T> search(String text, String language);
/**
* <p> Specify the exclusive upper bound for a specific index in order to constrain the results of this query. <p/> You can chain
* key/value pairs to build a constraint for a compound index. For instance: </p> <p> {@code query.upperIndexBound(new
* BasicDBObject("a", 1).append("b", 2)); } </p> <p> to build a constraint on index {@code {"a", "b"}} </p>
*
* @param upperBound The exclusive upper bound.
* @return this
* @mongodb.driver.manual reference/operator/meta/max/ $max
* @deprecated use the methods that accept Options directly. This can be replicated using
* {@code options.modifier("$max", new Document(...)) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> upperIndexBound(DBObject upperBound);
/**
* Updates the ReadPreference to use
*
* @param readPref the ReadPreference to use
* @return this
* @see ReadPreference
* @deprecated use the methods that accept Options directly
* @see FindOptions#readPreference(ReadPreference)
*/
@Deprecated
Query<T> useReadPreference(ReadPreference readPref);
/**
* Limit the query using this javascript block; only one per query
*
* @param js the javascript block to apply
* @return this
*/
Query<T> where(String js);
/**
* Limit the query using this javascript block; only one per query
*
* @param js the javascript block to apply
* @return this
*/
Query<T> where(CodeWScope js);
/**
* Execute the query and get the results (as a {@code List<Key<T>>}) This method is provided as a convenience;
*
* @return returns a List of the keys of the documents returned by a query
* @deprecated use {@link #keys()}
*/
@Deprecated
List<Key<T>> asKeyList();
/**
* Execute the query and get the results (as a {@code List<Key<T>>}) This method is provided as a convenience;
*
* @param options the options to apply to the find operation
* @return returns a List of the keys of the documents returned by a query
* @since 1.3
* @deprecated use {@link #keys(FindOptions)}
*/
@Deprecated
List<Key<T>> asKeyList(FindOptions options);
/**
* Execute the query and get the results (as a {@code MorphiaCursor<Key<T>>})
*
* @return the keys of the documents returned by this query
*/
MorphiaKeyCursor<T> keys();
/**
* Execute the query and get the results (as a {@code MorphiaCursor<Key<T>>})
*
* @param options the options to apply to the find operation
* @return the keys of the documents returned by this query
* @since 1.4
*/
MorphiaKeyCursor<T> keys(FindOptions options);
/**
* Execute the query and get the results.
*
* @return returns a List of the documents returned by a query
* @deprecated use {@link #find(FindOptions)}
*/
@Deprecated
List<T> asList();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return returns a List of the documents returned by a query
* @since 1.3
* @deprecated use {@link #find(FindOptions)}
*/
@Deprecated
List<T> asList(FindOptions options);
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @return the count
* @deprecated use {@link #count()} instead
*/
@Deprecated
long countAll();
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @return the count
* @since 1.3
*/
long count();
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @param options the options to apply to the count operation
* @return the count
* @since 1.3
*/
long count(CountOptions options);
/**
* Execute the query and get the results.
*
* @return an Iterator of the results
* @deprecated use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetch();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return an Iterator of the results
* @since 1.3
* @deprecated use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetch(FindOptions options);
/**
* Execute the query and get the results.
*
* *note* the return type of this will change in 2.0.
*
* @return a MorphiaCursor
* @since 1.4
* @see #find(FindOptions)
*/
MorphiaCursor<T> find();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return a MorphiaCursor
* @since 1.4
*/
MorphiaCursor<T> find(FindOptions options);
/**
* Execute the query and get only the ids of the results. This is more efficient than fetching the actual results (transfers less
* data).
*
* @return an Iterator of the empty entities
* @deprecated use {@link #keys()} instead
*/
@Deprecated
MorphiaIterator<T, T> fetchEmptyEntities();
/**
* Execute the query and get only the ids of the results. This is more efficient than fetching the actual results (transfers less
* data).
*
* @param options the options to apply to the find operation
* @return an Iterator of the empty entities
* @since 1.3
* @deprecated use {@link #keys(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetchEmptyEntities(FindOptions options);
/**
* Execute the query and get the keys for the objects.
*
* @return the Key Iterator
* @see #fetchEmptyEntities
* @deprecated use {@link #keys()}
*/
@Deprecated
MorphiaKeyIterator<T> fetchKeys();
/**
* Execute the query and get the keys for the objects.
*
* @param options the options to apply to the find operation
* @return the Key Iterator
* @since 1.3
* @deprecated use {@link #keys(FindOptions)}
*/
@Deprecated
MorphiaKeyIterator<T> fetchKeys(FindOptions options);
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the only instance in the result, or null if the result set is empty.
* @since 1.5
*/
T first(FindOptions options);
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @return the only instance in the result, or null if the result set is empty.
* @deprecated use {@link #first()}
*/
@Deprecated
T get();
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the only instance in the result, or null if the result set is empty.
* @since 1.3
* @deprecated use {@link #first(FindOptions)}
*/
@Deprecated
T get(FindOptions options);
/**
* Get the key of the first entity in the result set. Obeys the {@link Query} offset value.
*
* @return the key of the first instance in the result, or null if the result set is empty.
* @deprecated use {@link #first()} instead
*/
@Deprecated
Key<T> getKey();
/**
* Get the key of the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the key of the first instance in the result, or null if the result set is empty.
* @since 1.3
* @deprecated use {@link #first()} instead
*/
@Deprecated
Key<T> getKey(FindOptions options);
/**
* Calls {@code tail(true);}
*
* @return an Iterator.
* @see #tail(boolean)
* @deprecated set the CursorType on {@link FindOptions} and use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> tail();
/**
* Returns an tailing iterator over a set of elements of type T. If awaitData is true, this iterator blocks on hasNext() until new data
* is avail (or some amount of time has passed). Note that if no data is available at all, hasNext() might return immediately. You
* should wrap tail calls in a loop if you want this to be blocking.
*
* @param awaitData passes the awaitData to the cursor
* @return an Iterator.
* @see Bytes#QUERYOPTION_AWAITDATA
* @deprecated set the CursorType on {@link FindOptions} and use {@link #find(FindOptions)} instead. This can be replicated using
* {@code findOptions.cursorType (awaitData ? TailableAwait : Tailable)}
*/
@Deprecated
MorphiaIterator<T, T> tail(boolean awaitData);
}
Query
package dev.morphia.query;
import com.mongodb.Bytes;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;
import com.mongodb.ReadPreference;
import com.mongodb.client.MongoIterable;
import dev.morphia.Key;
import dev.morphia.query.internal.MorphiaCursor;
import dev.morphia.query.internal.MorphiaKeyCursor;
import org.bson.types.CodeWScope;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* @param <T> The java type to query against
*/
public interface Query<T> extends QueryResults<T>, MongoIterable<T> {
/**
* Creates a container to hold 'and' clauses
*
* @param criteria the clauses to 'and' together
* @return the container
*/
CriteriaContainer and(Criteria... criteria);
/**
* Batch-size of the fetched result (cursor).
*
* @param value must be >= 0. A value of 0 indicates the server default.
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#batchSize(int)
*/
@Deprecated
Query<T> batchSize(int value);
/**
* Creates and returns a copy of this {@link Query}.
*
* @return this
* @morphia.internal
*/
Query<T> cloneQuery();
/**
* This makes it possible to attach a comment to a query. Because these comments propagate to the profile log, adding comments can make
* your profile data much easier to interpret and trace.
*
* @param comment the comment to add
* @return the Query to enable chaining of commands
* @see FindOptions#modifier(String, Object)
* @deprecated use the methods that accept Options directly. This can be replicated with {@code options.modifier("$comment", comment)}
* @mongodb.driver.manual reference/operator/meta/comment $comment
*/
@Deprecated
Query<T> comment(String comment);
/**
* Creates a criteria to apply against a field
*
* @param field the field
* @return the FieldEnd to define the criteria
*/
FieldEnd<? extends CriteriaContainer> criteria(String field);
/**
* Disables cursor timeout on server.
*
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#noCursorTimeout(boolean)
*/
@Deprecated
Query<T> disableCursorTimeout();
/**
* Disable snapshotted mode (default mode). This will be faster but changes made during the cursor may cause duplicates.
*
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$snapshot", false)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> disableSnapshotMode();
/**
* Turns off validation (for all calls made after)
*
* @return this
*/
Query<T> disableValidation();
/**
* Enables cursor timeout on server.
*
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#noCursorTimeout(boolean)
*/
@Deprecated
Query<T> enableCursorTimeout();
/**
* Enables snapshotted mode where duplicate results (which may be updated during the lifetime of the cursor) will not be returned. Not
* compatible with order/sort and hint.
*
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$snapshot", true)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> enableSnapshotMode();
/**
* Turns on validation (for all calls made after); by default validation is on
*
* @return this
*/
Query<T> enableValidation();
/**
* Provides information on the query plan. The query plan is the plan the server uses to find the matches for a query. This information
* may be useful when optimizing a query.
*
* @return Map describing the process used to return the query results.
* @mongodb.driver.manual reference/operator/meta/explain/ explain
*/
Map<String, Object> explain();
/**
* Provides information on the query plan. The query plan is the plan the server uses to find the matches for a query. This information
* may be useful when optimizing a query.
*
* @param options the options to apply to the explain operation
* @return Map describing the process used to return the query results.
* @mongodb.driver.manual reference/operator/meta/explain/ explain
* @since 1.3
*/
Map<String, Object> explain(FindOptions options);
/**
* Fluent query interface: {@code createQuery(Ent.class).field("count").greaterThan(7)...}
*
* @param field the field
* @return the FieldEnd to define the criteria
*/
FieldEnd<? extends Query<T>> field(String field);
/**
* Create a filter based on the specified condition and value. </p> <p><b>Note</b>: Property is in the form of "name op" ("age
* >").
* <p/>
* <p>Valid operators are ["=", "==","!=", "<>", ">", "<", ">=", "<=", "in", "nin", "all", "size", "exists"] </p>
* <p/>
* <p>Examples:</p>
* <p/>
* <ul>
* <li>{@code filter("yearsOfOperation >", 5)}</li>
* <li>{@code filter("rooms.maxBeds >=", 2)}</li>
* <li>{@code filter("rooms.bathrooms exists", 1)}</li>
* <li>{@code filter("stars in", new Long[]{3, 4}) //3 and 4 stars (midrange?)}</li>
* <li>{@code filter("quantity mod", new Long[]{4, 0}) // customers ordered in packs of 4)}</li>
* <li>{@code filter("age >=", age)}</li>
* <li>{@code filter("age =", age)}</li>
* <li>{@code filter("age", age)} (if no operator, = is assumed)</li>
* <li>{@code filter("age !=", age)}</li>
* <li>{@code filter("age in", ageList)}</li>
* <li>{@code filter("customers.loyaltyYears in", yearsList)}</li>
* </ul>
* <p/>
* <p>You can filter on id properties <strong>if</strong> this query is restricted to a Class<T>.
*
* @param condition the condition to apply
* @param value the value to apply against
* @return this
*/
Query<T> filter(String condition, Object value);
/**
* @return the batch size
* @see #batchSize(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#batchSize(int)
*/
@Deprecated
int getBatchSize();
/**
* @return the collection this query targets
*
* @deprecated This is an internal method and subject to change or removal. Do not use.
* @morphia.internal
*/
@Deprecated
DBCollection getCollection();
/**
* @return the entity {@link Class}.
* @deprecated
* @morphia.internal
*/
@Deprecated
Class<T> getEntityClass();
/**
* @return the Mongo fields {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getFieldsObject();
/**
* @return the limit
* @see #limit(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#limit(int)
*/
@Deprecated
int getLimit();
/**
* @return the offset.
* @see #offset(int)
* @deprecated use the methods that accept Options directly
* @see FindOptions#getSkip()
*/
@Deprecated
int getOffset();
/**
* @return the Mongo query {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getQueryObject();
/**
* @return the Mongo sort {@link DBObject}.
* @deprecated
* @morphia.internal
*/
@Deprecated
DBObject getSortObject();
/**
* Hints as to which index should be used.
*
* @param idxName the index name to hint
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated with {@code options.modifier("$hint", idxName)}
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> hintIndex(String idxName);
/**
* Limit the fetched result set to a certain number of values.
*
* @param value must be >= 0. A value of 0 indicates no limit. For values < 0, use {@link FindOptions#batchSize(int)} which
* is the preferred method
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#limit(int)
*/
@Deprecated
Query<T> limit(int value);
/**
* <p> Specify the inclusive lower bound for a specific index in order to constrain the results of this query. <p/> You can chain
* key/value pairs to build a constraint for a compound index. For instance: </p> <p> {@code query.lowerIndexBound(new
* BasicDBObject("a", 1).append("b", 2)); } </p> <p> to build a constraint on index {@code {"a", "b"}} </p>
*
* @param lowerBound The inclusive lower bound.
* @return this
* @mongodb.driver.manual reference/operator/meta/min/ $min
* @deprecated use the methods that accept Options directly. This can be replicated using
* {@code options.modifier("$min", new Document(...)) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> lowerIndexBound(DBObject lowerBound);
/**
* Constrains the query to only scan the specified number of documents when fulfilling the query.
*
* @param value must be > 0. A value < 0 indicates no limit
* @return this
* @mongodb.driver.manual reference/operator/meta/maxScan/#op._S_maxScan $maxScan
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$maxScan", value) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> maxScan(int value);
/**
* Specifies a time limit for executing the query. Requires server version 2.6 or above.
*
* @param maxTime must be > 0. A value < 0 indicates no limit
* @param maxTimeUnit the unit of time to use
* @return this
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.maxTime(value, unit) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> maxTime(long maxTime, TimeUnit maxTimeUnit);
/**
* Starts the query results at a particular zero-based offset.
*
* @param value must be >= 0
* @return this
* @deprecated use the methods that accept Options directly
* @see FindOptions#skip(int)
*/
@Deprecated
Query<T> offset(int value);
/**
* Creates a container to hold 'or' clauses
*
* @param criteria the clauses to 'or' together
* @return the container
*/
CriteriaContainer or(Criteria... criteria);
/**
* Sorts based on a property (defines return order). Examples:
* <p/>
* <ul>
* <li>{@code order("age")}</li>
* <li>{@code order("-age")} (descending order)</li>
* <li>{@code order("age, date")}</li>
* <li>{@code order("age,-date")} (age ascending, date descending)</li>
* </ul>
*
* @param sort the sort order to apply
* @return this
* @deprecated use {@link #order(Sort...)}
*/
@Deprecated
Query<T> order(String sort);
/**
* Sorts based on a metadata (defines return order). Example:
* {@code order(Meta.textScore())} ({textScore : { $meta: "textScore" }})
* @param sort the sort order to apply
* @return this
*/
Query<T> order(Meta sort);
/**
* Sorts based on a specified sort keys (defines return order).
*
* @param sorts the sort order to apply
* @return this
*/
Query<T> order(Sort... sorts);
/**
* Adds a field to the projection clause. Passing true for include will include the field in the results. Projected fields must all
* be inclusions or exclusions. You can not include and exclude fields at the same time with the exception of the _id field. The
* _id field is always included unless explicitly suppressed.
*
* @param field the field to project
* @param include true to include the field in the results
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
*/
Query<T> project(String field, boolean include);
/**
* Adds an sliced array field to a projection.
*
* @param field the field to project
* @param slice the options for projecting an array field
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
* @mongodb.driver.manual /reference/operator/projection/slice/ $slice
*/
Query<T> project(String field, ArraySlice slice);
/**
* Adds a metadata field to a projection.
*
* @param meta the metadata option for projecting
* @return this
* @see <a href="https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/">Project Fields to Return from Query</a>
* @mongodb.driver.manual reference/operator/projection/meta/ $meta
*/
Query<T> project(Meta meta);
/**
* Route query to non-primary node
*
* @return this
* @see ReadPreference#secondary()
* @see ReadPreference#secondaryPreferred()
* @deprecated use the methods that accept Options directly
* @see FindOptions#readPreference(ReadPreference)
* @see ReadPreference#secondary()
* @see ReadPreference#secondaryPreferred()
*/
@Deprecated
Query<T> queryNonPrimary();
/**
* Route query to primary node
*
* @return this
* @see ReadPreference#primary()
* @deprecated use the methods that accept Options directly.
* @see FindOptions#readPreference(ReadPreference)
* @see ReadPreference#primary()
* @see ReadPreference#primaryPreferred()
*/
@Deprecated
Query<T> queryPrimaryOnly();
/**
* Limits the fields retrieved to those of the query type -- dangerous with interfaces and abstract classes
*
* @return this
*/
Query<T> retrieveKnownFields();
/**
* Limits the fields retrieved
*
* @param include true if the fields should be included in the results. false to exclude them.
* @param fields the fields in question
* @return this
* @deprecated use {@link #project(String, boolean)} instead
*/
@Deprecated
Query<T> retrievedFields(boolean include, String... fields);
/**
* Only return the index field or fields for the results of the query. If $returnKey is set to true and the query does not use an index
* to perform the read operation, the returned documents will not contain any fields
*
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/meta/returnKey/#op._S_returnKey $returnKey
* @deprecated use the methods that accept Options directly. This can be replicated using {@code options.modifier("$returnKey", true) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> returnKey();
/**
* Perform a text search on the content of the fields indexed with a text index..
*
* @param text the text to search for
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/query/text/ $text
*/
Query<T> search(String text);
/**
* Perform a text search on the content of the fields indexed with a text index..
*
* @param text the text to search for
* @param language the language to use during the search
* @return the Query to enable chaining of commands
* @mongodb.driver.manual reference/operator/query/text/ $text
*/
Query<T> search(String text, String language);
/**
* <p> Specify the exclusive upper bound for a specific index in order to constrain the results of this query. <p/> You can chain
* key/value pairs to build a constraint for a compound index. For instance: </p> <p> {@code query.upperIndexBound(new
* BasicDBObject("a", 1).append("b", 2)); } </p> <p> to build a constraint on index {@code {"a", "b"}} </p>
*
* @param upperBound The exclusive upper bound.
* @return this
* @mongodb.driver.manual reference/operator/meta/max/ $max
* @deprecated use the methods that accept Options directly. This can be replicated using
* {@code options.modifier("$max", new Document(...)) }
* @see FindOptions#modifier(String, Object)
*/
@Deprecated
Query<T> upperIndexBound(DBObject upperBound);
/**
* Updates the ReadPreference to use
*
* @param readPref the ReadPreference to use
* @return this
* @see ReadPreference
* @deprecated use the methods that accept Options directly
* @see FindOptions#readPreference(ReadPreference)
*/
@Deprecated
Query<T> useReadPreference(ReadPreference readPref);
/**
* Limit the query using this javascript block; only one per query
*
* @param js the javascript block to apply
* @return this
*/
Query<T> where(String js);
/**
* Limit the query using this javascript block; only one per query
*
* @param js the javascript block to apply
* @return this
*/
Query<T> where(CodeWScope js);
/**
* Execute the query and get the results (as a {@code List<Key<T>>}) This method is provided as a convenience;
*
* @return returns a List of the keys of the documents returned by a query
* @deprecated use {@link #keys()}
*/
@Deprecated
List<Key<T>> asKeyList();
/**
* Execute the query and get the results (as a {@code List<Key<T>>}) This method is provided as a convenience;
*
* @param options the options to apply to the find operation
* @return returns a List of the keys of the documents returned by a query
* @since 1.3
* @deprecated use {@link #keys(FindOptions)}
*/
@Deprecated
List<Key<T>> asKeyList(FindOptions options);
/**
* Execute the query and get the results (as a {@code MorphiaCursor<Key<T>>})
*
* @return the keys of the documents returned by this query
*/
MorphiaKeyCursor<T> keys();
/**
* Execute the query and get the results (as a {@code MorphiaCursor<Key<T>>})
*
* @param options the options to apply to the find operation
* @return the keys of the documents returned by this query
* @since 1.4
*/
MorphiaKeyCursor<T> keys(FindOptions options);
/**
* Execute the query and get the results.
*
* @return returns a List of the documents returned by a query
* @deprecated use {@link #find(FindOptions)}
*/
@Deprecated
List<T> asList();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return returns a List of the documents returned by a query
* @since 1.3
* @deprecated use {@link #find(FindOptions)}
*/
@Deprecated
List<T> asList(FindOptions options);
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @return the count
* @deprecated use {@link #count()} instead
*/
@Deprecated
long countAll();
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @return the count
* @since 1.3
*/
long count();
/**
* Count the total number of values in the result, ignoring limit and offset
*
* @param options the options to apply to the count operation
* @return the count
* @since 1.3
*/
long count(CountOptions options);
/**
* Execute the query and get the results.
*
* @return an Iterator of the results
* @deprecated use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetch();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return an Iterator of the results
* @since 1.3
* @deprecated use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetch(FindOptions options);
/**
* Execute the query and get the results.
*
* *note* the return type of this will change in 2.0.
*
* @return a MorphiaCursor
* @since 1.4
* @see #find(FindOptions)
*/
MorphiaCursor<T> find();
/**
* Execute the query and get the results.
*
* @param options the options to apply to the find operation
* @return a MorphiaCursor
* @since 1.4
*/
MorphiaCursor<T> find(FindOptions options);
/**
* Execute the query and get only the ids of the results. This is more efficient than fetching the actual results (transfers less
* data).
*
* @return an Iterator of the empty entities
* @deprecated use {@link #keys()} instead
*/
@Deprecated
MorphiaIterator<T, T> fetchEmptyEntities();
/**
* Execute the query and get only the ids of the results. This is more efficient than fetching the actual results (transfers less
* data).
*
* @param options the options to apply to the find operation
* @return an Iterator of the empty entities
* @since 1.3
* @deprecated use {@link #keys(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> fetchEmptyEntities(FindOptions options);
/**
* Execute the query and get the keys for the objects.
*
* @return the Key Iterator
* @see #fetchEmptyEntities
* @deprecated use {@link #keys()}
*/
@Deprecated
MorphiaKeyIterator<T> fetchKeys();
/**
* Execute the query and get the keys for the objects.
*
* @param options the options to apply to the find operation
* @return the Key Iterator
* @since 1.3
* @deprecated use {@link #keys(FindOptions)}
*/
@Deprecated
MorphiaKeyIterator<T> fetchKeys(FindOptions options);
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the only instance in the result, or null if the result set is empty.
* @since 1.5
*/
T first(FindOptions options);
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @return the only instance in the result, or null if the result set is empty.
* @deprecated use {@link #first()}
*/
@Deprecated
T get();
/**
* Gets the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the only instance in the result, or null if the result set is empty.
* @since 1.3
* @deprecated use {@link #first(FindOptions)}
*/
@Deprecated
T get(FindOptions options);
/**
* Get the key of the first entity in the result set. Obeys the {@link Query} offset value.
*
* @return the key of the first instance in the result, or null if the result set is empty.
* @deprecated use {@link #first()} instead
*/
@Deprecated
Key<T> getKey();
/**
* Get the key of the first entity in the result set. Obeys the {@link Query} offset value.
*
* @param options the options to apply to the find operation
* @return the key of the first instance in the result, or null if the result set is empty.
* @since 1.3
* @deprecated use {@link #first()} instead
*/
@Deprecated
Key<T> getKey(FindOptions options);
/**
* Calls {@code tail(true);}
*
* @return an Iterator.
* @see #tail(boolean)
* @deprecated set the CursorType on {@link FindOptions} and use {@link #find(FindOptions)} instead
*/
@Deprecated
MorphiaIterator<T, T> tail();
/**
* Returns an tailing iterator over a set of elements of type T. If awaitData is true, this iterator blocks on hasNext() until new data
* is avail (or some amount of time has passed). Note that if no data is available at all, hasNext() might return immediately. You
* should wrap tail calls in a loop if you want this to be blocking.
*
* @param awaitData passes the awaitData to the cursor
* @return an Iterator.
* @see Bytes#QUERYOPTION_AWAITDATA
* @deprecated set the CursorType on {@link FindOptions} and use {@link #find(FindOptions)} instead. This can be replicated using
* {@code findOptions.cursorType (awaitData ? TailableAwait : Tailable)}
*/
@Deprecated
MorphiaIterator<T, T> tail(boolean awaitData);
}
tomcat 3754 1 5 12:11 ? 00:00:38 /usr/lib/jvm/jre/bin/java -Dlogger.level.egx=DEBUG -Dghx.configsvc.db.url=mongodb://configsvc-user:configsvc123@configsvc-dev-01.awsdsi.ghx.com:27027,configsvc-dev-02.awsdsi.ghx.com:27027,configsvc-dev-03.awsdsi.ghx.com:27027/configsvc?replicaSet=rs3-Dghx.test-framework.db.url=mongodb://test-framework-user:KCayrLqFaxok3iFhcklJkKYitFplyLhEtQopE8a/lRuMZ4RYouliw3Ap9fz5Lnmo@dmongo-01.awsdsi.ghx.com:27027/test-framework?replicaSet=rs3 -Dghx.configsvc.db.pass= -server -Xms8192m -Xmx12288m -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=2048m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
root 4043 3973 0 12:22 pts/1 00:00:00 grep --color=auto java
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'configsvc.db.url=mongodb\K(.*)(?=,)'`
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\),.*/\1/'`
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo $dbconnection/configsvc
fi
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'mongodb\K(.*)(?=,)'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\@\(.*\),.*/\1/'`
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u test-framework-user -p testframework123 $dbconnection/test-framework --eval $CMD
fi
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'configsvc.db.url=mongodb\K(.*)(?=,)'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\@\(.*\),.*/\1/'`
echo "db is" $dbconnection
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u test-framework-user -p testframework123 $dbconnection/test-framework --eval $CMD
fi
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=,)'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\@\(.*\),.*/\1/'`
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo $dbconnection/test-framework
fi
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?= -)'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\),.*/\1/'`
echo "dbconnection is" $dbconnection
dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/4,10d'
echo "dbuserpassword is" $dbuserpassword | sed -e '4,10d'`
dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`
echo "dbuser is" $dbuser
dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`
echo "dbpassword is" $dbpassword
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbconnection/test-framework
fi
logstash=0;
host=$(hostname -I | awk '{print $1}')
echo $host
logstash=$(ps -ef |grep logstash |wc -l)
echo $logstash
if [ $logstash == 2 ]
then
db=`ps -ef | grep tomcat | grep -Po 'test-framework.db.url.*rs3'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\),.*/\1/'`
echo "dbconnection is" $dbconnection
dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/'`
echo "dbuserpassword is" $dbuserpassword
dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`
echo "dbuser is" $dbuser
dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`
echo "dbpassword is" $dbpassword
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbconnection/test-framework
fi
#!/usr/bin/env bash
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=\/test)'`
echo "db is" $db
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\)/\1/'`
echo "dbconnection is" $dbconnection
dbhost=`echo "$dbconnection" | sed -e 's/.*@\(.*\).*/\1/'`
echo "dbhost is" $dbhost
dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/'`
echo "dbuserpassword is" $dbuserpassword
dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`
echo "dbuser is" $dbuser
dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`
echo "dbpassword is" $dbpassword
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD
fi
[root@ip-10-31-33-88 test]# sh test.sh
db is ://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027
dbconnection is test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027
dbhost is dmongo-01.awsdsi.ghx.com:27027
dbuserpassword is test-framework-user:testframework123
dbuser is test-framework-user
dbpassword is testframework123
MongoDB shell version v4.0.10
^test-framework.db.url.*rs3$
$ echo '://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027' | sed 's/\(.*\)\(.*\)\(.*\)/\1/'
"#!/usr/bin/env bash",
"\n",
"logstash=0;\n",
"host=$(hostname -I | awk '{print $1}')",
"\n",
"logstash=$(ps -ef |grep logstash |wc -l)",
"\n",
"if [ $logstash == 2 ]",
"\n",
"then",
"\n",
" db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=\/test)'`",
"\n",
" dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\)/\1/'`",
"\n",
"dbhost=`echo "$dbconnection" | sed -e 's/.*@\(.*\).*/\1/'`"'\n",
" dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/'`"'\n",
" dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`"'\n",
" dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`",
"\n",
" CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"\n",
" /usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD",
"\n",
"fi"
"MonitoringDependentAppStatus":{
"12-get-start-monitoringApps": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/minion-ls-status-update.sh /opt/scripts/minion-ls-status-update.sh",
" ; chmod 744 /opt/scripts/minion-ls-status-update.sh"
]
]
}
},
"/opt/scripts/MonitoringDependentAppStatus.sh": {
"content": {
},
"mode": "000777",
"owner": "root",
"group": "root"
},
"15-start-monitoring": {
"command": "/opt/scripts/minion-ls-status-update.sh"
}
},
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db =`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=/test)'`
dbconnection =`echo $db | sed -e 's/.*\/\(.*\)/\1/'`
dbhost=`echo $dbconnection | sed -e 's/.*@\(.*\).*/\1/'`
dbuserpassword=`echo $dbconnection | sed -e 's/\(.*\)@.*/\1/'`
dbuser=`echo $dbuserpassword | sed -e 's/\(.*\):.*/\1/'`
dbpassword=`echo $dbuserpassword | sed -e 's/.*:\(.*\).*/\1/'`
CMD=printjson(db.minions.insert({"minionIp":"$host","created":{"by":"system","on":ISODate()}}))
/usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD
fi
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=/test)'`
dbconnection=`echo $db | sed -e 's/.*\/\(.*\)/\1/'`
dbhost=`echo $dbconnection | sed -e 's/.*@\(.*\).*/\1/'`
dbuserpassword=`echo $dbconnection | sed -e 's/\(.*\)@.*/\1/'`
dbuser=`echo $dbuserpassword | sed -e 's/\(.*\):.*/\1/'`
dbpassword=`echo $dbuserpassword | sed -e 's/.*:\(.*\).*/\1/'`
CMD=`printjson'(db.minions.insert'({'minionIp':'$host','created':{'by':'system','on':ISODate()}})')'`
/usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD
fi
#!/usr/bin/env bash
topbeat=0;
host=$(hostname -I | awk '{print $1}')
hostName=$(hostname -b)
echo $hostName
topbeat=$(ps -ef |grep topbeat |wc -l)
echo $topbeat
if [ $topbeat == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=/test)'`
echo $db
dbconnection=`echo $db | sed -e 's/.*\/\(.*\)/\1/'`
dbhost=`echo $dbconnection | sed -e 's/.*@\(.*\).*/\1/'`
dbuserpassword=`echo $dbconnection | sed -e 's/\(.*\)@.*/\1/'`
dbuser=`echo $dbuserpassword | sed -e 's/\(.*\):.*/\1/'`
dbpassword=`echo $dbuserpassword | sed -e 's/.*:\(.*\).*/\1/'`
CMD="printjson(db.minions.insert({"hostName":"$hostName","created":{"by":"system","on":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD
fi
hostName=$(hostname -b)
s/.*@\(.*\).*/\1/
ps -ef |grep tomcat | grep -Po 'test-framework.db.url=test-framework.db.url=mongodb\K(.*)(?=replica)'
topbeat=0;
logstash=0;
cpumetriccollection=0;
host=$(hostname -I | awk '{print $1}')
topbeat=$(ps -ef |grep topbeat |wc -l)
logstash=$(ps -ef |grep logstash |wc -l)
cpumetriccollection=$(ps -ef |grep cpumetriccollection |wc -l)
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=/test)'`
dbconnection=`echo "$db" | sed -e 's/.*@\(.*\).*/\1/'`
dbuser=`echo $db | sed -e 's/.*:/\(.*\):.*/\1/'`
dbpassword=`echo $db | sed -e 's/.*://\.*:\(.*\).*/\1/'`
echo "db" $db "userName" $dbuser "password" $dbpassword "connection" $dbconnection
mongoConnection="/usr/bin/mongo -u $dbuser -p $dbpassword dmongo-01.awsdsi.ghx.com:27027/test-framework"
if [ $logstash > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"logstash\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $topbeat > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"topbeat\",\"created\":{\"by\":\"system\",\,\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $cpumetriccollection > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"cpumetriccollection\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
topbeat=0;
logstash=0;
cpumetriccollection=0;
host=$(hostname -I | awk '{print $1}')
topbeat=$(ps -ef |grep topbeat |wc -l)
logstash=$(ps -ef |grep logstash |wc -l)
cpumetriccollection=$(ps -ef |grep cpumetriccollection |wc -l)
dbconnection=$(ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)')
mongoConnection="/usr/bin/mongo $dbconnection"
if [ $logstash > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"logstash\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $topbeat > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"topbeat\",\"created\":{\"by\":\"system\",\,\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $cpumetriccollection > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"cpumetriccollection\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
[root@ip-10-31-33-88 test]# echo ://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027 | sed -e 's/.*:\(.*\):.*/\1/'
testframework123@dmongo-01.awsdsi.ghx.com
[root@ip-10-31-33-88 test]# echo ://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027 | sed -e 's/\(.*\):test.*/\1/'
://test-framework-user
[root@ip-10-31-33-88 bin]# mongo mongodb://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027/test-framework
MongoDB shell version v4.0.10
connecting to: mongodb://dmongo-01.awsdsi.ghx.com:27027/test-framework?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("a246da97-0caf-45f0-b9df-694808e915ab") }
MongoDB server version: 4.0.10
rs3:PRIMARY>
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
dbconnection=$(ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)')
echo $dbconnection
mongoConnection="/usr/bin/mongo $dbconnection"
echo $mongoConnection
CMD="printjson(db.minions.insert({"scenarioType":"CUSTOM","minionIp":"$host","applicationName":"CUSTOM","created":{"by":"system","on":ISODate()}}))"
$mongoConnection --eval $CMD
fi
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
dbconnection=$(ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)')
echo $dbconnection
mongoConnection="/usr/bin/mongo $dbconnection"
CMD=printjson(db.minions.insert({"scenarioType":"CUSTOM","minionIp":"$host","applicationName":"CUSTOM","created":{"by":"system","on":ISODate()}}))
$mongoConnection --eval $CMD
fi
CUSTOM
[root@ip-10-31-33-88 tmp]# ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=/test)'
://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027
[root@ip-10-31-33-88 tmp]# ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=/test)'
mongodb://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027
[root@ip-10-31-33-88 tmp]# ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=/replica)'
[root@ip-10-31-33-88 tmp]# ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=replica)'
mongodb://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027/test-framework?
[root@ip-10-31-33-88 tmp]# ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=replica)'
ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)'
null, fatalErrorStacktrace=com.ghx.testframework.gru.exception.TestEngineException: An error occurred while creating AWS stack for test run.
at com.ghx.testframework.gru.TestEngineProcessor.createAWSStack(TestEngineProcessor.java:241)
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:424)
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178)
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ghx.aws.utils.exception.aws.AwsClientException: Minion stack "TestFW-MINION-DEV-CXTF-1262-5d68f9c8403bdd101940e423" was created with status ROLLBACK_IN_PROGRESS instead of CREATE_COMPLETE
at com.ghx.testframework.utils.implementation.DefaultTFStackManager.createMinionStack(DefaultTFStackManager.java:781)
at com.ghx.testframework.gru.TestEngineProcessor.createAWSStack(TestEngineProcessor.java:233)
... 4 more
2019-08-30 11:03:49,701 |ERROR [5d6901c8403bdd101940e426] com.ghx.testframework.gru.TestEngineProcessor - Error during execution of TestPackageAndTriggerCallable job
com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:824) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
2019-08-30 11:03:49,703 |ERROR [5d6901c8403bdd101940e426] com.ghx.testframework.gru.TestEngineProcessor - An error occurred while processing TestRun: "test_1262_1_5d6901c8403bdd101940e426" configuration
com.ghx.testframework.gru.exception.TestEngineException: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor.validateMinionStatusAndStartExecution(TestEngineProcessor.java:602) ~[TestEngineProcessor.class:na]
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:428) ~[TestEngineProcessor.class:na]
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178) [TestEngine.class:na]
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259) [TestEngine.class:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
Caused by: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:824) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_191]
... 1 common frames omitted
com.ghx.testframework.gru.exception.TestEngineException: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor.validateMinionStatusAndStartExecution(TestEngineProcessor.java:602)
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:428)
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178)
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:824)
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
"/opt/scripts/MonitoringDependentAppStatus.sh": {
"content": {
"Fn::Join": [
"", [
"#!/usr/bin/env bash",
"\n",
"logstash=0;\n",
"host=$(hostname -I | awk '{print $1}')",
"\n",
"logstash=$(ps -ef |grep logstash |wc -l)",
"\n",
"if [ $logstash == 2 ]",
"\n",
"then",
"\n",
"db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\\K(.*)(?=\/test)'`",
"\n",
" dbconnection=`echo $db | sed -e 's/.*\\/\\(.*\\)/\\1/'`",
"\n",
"dbhost=`echo $dbconnection | sed -e 's/.*@\\(.*\\).*/\\1/'`",
"\n",
" dbuserpassword=`echo $dbconnection | sed -e 's/\\(.*\\)@.*/\\1/'`",
"\n",
" dbuser=`echo $dbuserpassword | sed -e 's/\\(.*\\):.*/\\1/'`",
"\n",
" dbpassword=`echo $dbuserpassword | sed -e 's/.*:\\(.*\\).*/\\1/'`",
"\n",
"CMD=\"printjson(db.minions.insert({'minionIp':'$host','created':{'by':'system','on':ISODate()}}))\"",
"\n",
" /usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD",
"\n",
"fi",
"\n"
]
]
},
"mode": "000777",
"owner": "root",
"group": "root"
},
working
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
dbconnection=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)'`
mongoConnection="/usr/bin/mongo $dbconnection"
CMD="printjson(db.minions.insert({\"scenarioType\":\"CUSTOM\",\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
#!/usr/bin/env bash
topbeat=0;
logstash=0;
cpumetriccollection=0;
host=$(hostname -I | awk '{print $1}')
topbeat=$(ps -ef |grep topbeat |wc -l)
logstash=$(ps -ef |grep logstash |wc -l)
cpumetriccollection=$(ps -ef |grep cpumetriccollection |wc -l)
dbconnection=$(ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)')
mongoConnection="/usr/bin/mongo $dbconnection"
if [ $logstash > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"logstash\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $topbeat > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"topbeat\",\"created\":{\"by\":\"system\",\,\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $cpumetriccollection > 1 ];
then
CMD="printjson(db.minions.insert({\"scenarioType\":\"Mirror\",\"minionIp\":\"$host\",\"applicationName\":\"cpumetriccollection\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
$mongoConnection --eval $CMD
fi
#!/usr/bin/env bash
logstash=0;
topbeat=0;
cpumetriccollection=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
topbeat=$(ps -ef |grep topbeat |wc -l)
cpumetriccollection=$(ps -ef |grep cpumetriccollection |wc -l)
dbconnection=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=\K(.*)(?=\?replica)'`
mongoConnection='/usr/bin/mongo $dbconnection'
if [ $logstash == 2 ]
then
CMD="printjson(db.MonitoringDependentAppStatus.insert({'scenarioType':'Mirror','minionIP':'$host','applicationName':'logstash','created':{'by':'system','on':ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $topbeat > 1 ];
then
CMD="printjson(db.MonitoringDependentAppStatus.insert({'scenarioType':'Mirror','minionIP':'$host','applicationName':'topbeat','created':{'by':'system','on':ISODate()}}))"
$mongoConnection --eval $CMD
fi
if [ $cpumetriccollection > 1 ];
then
CMD="printjson(db.MonitoringDependentAppStatus.insert({'scenarioType':'Mirror','minionIP':'$host','applicationName':'cpumetriccollection','created':{'by':'system','on':ISODate()}}))"
$mongoConnection --eval $CMD
fi
@Override
public ReplayScenarioCloudContext createCluster(final String testResultId) throws TestEngineException {
LOGGER.info("Start creating cluster for Scenario with testResultId: [{}]", testResultId);
ReplayScenarioCloudContext replayScenarioCloudContext = new ReplayScenarioCloudContext();
// replayScenarioCloudContext.setHeimdallHost("internal-TestFW-CXTF1227--UI-Heimdall-ELB-558993200.us-west-2.elb.amazonaws.com");
replayScenarioCloudContext.setHeimdallHost("internal-testfw-cxtf-1262-ui-heimdall-elb-1576285382.us-west-2.elb.amazonaws.com");
new DefaultClusterTaskService().applicationVerificationTask(replayScenarioCloudContext);
return null;
/* // Persist the fact that we started 'cluster creation' process:
resultService.setClusterStatusInProgress(testResultId);
// Read configuration settings:
final TestResult testResult = resultService.getTestResultById(testResultId);
final ReplayScenario replayScenario = testResult.getReplayRunConfig();
//final boolean useCorexV2Templates = replayScenario.getReleaseInfo().corexV2DeploymentProcessEnabled();
final MirrorScenario mirrorScenario = testResult.getMirrorRunConfig();
boolean useCorexV2Templates = false;
if(replayScenario == null) {
useCorexV2Templates = mirrorScenario.getReleaseInfo().corexV2DeploymentProcessEnabled();
}else {
useCorexV2Templates = replayScenario.getReleaseInfo().corexV2DeploymentProcessEnabled();
}
LOGGER.warn("Cluster will be created using {} deployment process",
useCorexV2Templates ? "New CoreX V2" : "Old-fashioned");
final String executorNameFormat = "CreateCluster-" + testResultId;
final ExecutorService executorService = Executors.newFixedThreadPool(10, new ThreadFactoryBuilder()
.setNameFormat(executorNameFormat + "-%d")
.build());
try {
ReplayScenarioCloudContext replayScenarioCloudContext = null;
if(testResult.getReplayRunConfig()==null) {
replayScenarioCloudContext = initMirrorCloudContext(testResult);
}else {
replayScenarioCloudContext = initCloudContext(testResult);
}
final CompletableFuture<String> clusterTask = CompletableFuture.completedFuture(replayScenarioCloudContext)
.thenCompose(this::firstStep) // VPC
.thenCompose(i -> secondStep(i, executorService)) // Bastion, Infra, Elastic, DTS, Mongo, TPM
.thenCompose(this::thirdStep) // Heimdall
.thenCompose(i -> fourthStep(i, executorService)) // UE, DP
.handle((context, error) -> {
if (error == null) {
resultService.setClusterStatusReady(testResultId);
LOGGER.info("Cluster has been successfully created");
} else {
removeFailedCluster(testResultId, error);
}
return null;
});
clusterTask.thenRun(() -> {
LOGGER.info("ThreadPoolExecutor with name format: \"{}\" will be shutdown", executorNameFormat);
executorService.shutdown();
});
return replayScenarioCloudContext;
} catch (Throwable ex) {
resultService.setClusterStatusFailed(testResultId, ex);
throw new TestEngineException(ex);
}*/
}
TestEngineRest
@Autowired
private DefaultReplayScenarioInfrastructureService defaultReplayScenarioInfrastructureService;
@RequestMapping(value = "/checkingDependency", method = RequestMethod.POST )
public void checkingDependency(){
try {
defaultReplayScenarioInfrastructureService.createCluster("1234");
} catch (TestEngineException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
ProcessUtils
package com.ghx.testframework.api.util;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.owasp.esapi.codecs.Codec;
import org.owasp.esapi.codecs.UnixCodec;
import com.ghx.common.log.GHXLogger;
import com.ghx.common.log.GHXLoggerFactory;
import com.ghx.data.common.DataApiException;
import com.ghx.testframework.api.dao.MonitoringDependentAppStatusDAO;
import com.ghx.testframework.api.entity.MonitoringDependentAppStatus;
import com.google.common.collect.Lists;
public class ProcessUtils {
private static final GHXLogger LOG = GHXLoggerFactory.getLogger(ProcessUtils.class);
private static Codec codec = new UnixCodec();
public static boolean isProcessRunning(String process, String instanceIp, String scenarioType) {
LOG.info("Inside is single process running process,{}, instanceIp{}, scenarioType{}", process, instanceIp, scenarioType);
List<String> applicationNamesFromDB = Lists.newArrayList();
try {
List<MonitoringDependentAppStatus> monitoringDependentAppStatus = new MonitoringDependentAppStatusDAO()
.findByMinionIPAndScenarioType(instanceIp, scenarioType);
System.out.println("monitoringDependentAppStatus" + monitoringDependentAppStatus);
LOG.info("monitoringDependentAppStatus{}", monitoringDependentAppStatus);
applicationNamesFromDB = monitoringDependentAppStatus.parallelStream().filter(Objects::nonNull).map(e -> e.getApplicationName())
.collect(Collectors.toList());
System.out.println("applicationNamesFromDB" + applicationNamesFromDB);
LOG.info("applicationNamesFromDB{}", applicationNamesFromDB);
} catch (DataApiException e1) {
System.out.println("DataApiException" + e1);
LOG.error(e1.getMessage());
}
System.out.println(">>>" + applicationNamesFromDB.contains(process));
if (applicationNamesFromDB.contains(process)) {
LOG.info("applicationNamesFromDB.contains(process)??{}", applicationNamesFromDB.contains(process));
return true;
}
return false;
}
/*
* private static boolean checkLogstash(String minionIp, String scenario) {
* System.out.println("minion Ip" + minionIp);
* LOG.info("minion Ip{}", minionIp);
* MonitoringDependentAppStatus monitoringDependentAppStatus;
* try {
* monitoringDependentAppStatus = new ScenarioDAO().checkDependencies(minionIp);
* } catch (DataApiException e) {
* System.out.println("Exception Occured while getting monitoringDependentAppStatus using minionIp:" + e);
* LOG.info("Exception Occured while getting monitoringDependentAppStatus using minionIp:{}", e);
* return false;
* }
* String applicationName = monitoringDependentAppStatus.getApplicationName();
* String scenarioName = monitoringDependentAppStatus.getScenarioName();
* if (StringUtils.isNotBlank(applicationName) && StringUtils.equalsIgnoreCase(applicationName, TFConstants.LOGSTASH.getValue())
* && StringUtils.isNotBlank(scenarioName) && StringUtils.equalsIgnoreCase(scenarioName, scenario)) {
* return true;
* }
* return false;
* }
* private static boolean checkTopbeat(String minionIp, String scenario) {
* System.out.println("minion Ip" + minionIp);
* LOG.info("minion Ip{}", minionIp);
* MonitoringDependentAppStatus monitoringDependentAppStatus;
* try {
* monitoringDependentAppStatus = new ScenarioDAO().checkDependencies(minionIp);
* } catch (DataApiException e) {
* System.out.println("Exception Occured while getting monitoringDependentAppStatus:" + e);
* LOG.info("Exception Occured while getting monitoringDependentAppStatus:{}", e);
* return false;
* }
* String applicationName = monitoringDependentAppStatus.getApplicationName();
* String scenarioName = monitoringDependentAppStatus.getScenarioName();
* if (StringUtils.isNotBlank(applicationName) && StringUtils.equalsIgnoreCase(applicationName, TFConstants.TOPBEAT.getValue())
* && StringUtils.isNotBlank(scenarioName) && StringUtils.equalsIgnoreCase(scenarioName, scenario)) {
* return true;
* }
* return false;
* }
* private static boolean checkCpuMetricCollection(String minionIp, String scenario) {
* System.out.println("minion Ip" + minionIp);
* LOG.info("minion Ip{}", minionIp);
* MonitoringDependentAppStatus monitoringDependentAppStatus;
* try {
* monitoringDependentAppStatus = new ScenarioDAO().checkDependencies(minionIp);
* } catch (DataApiException e) {
* System.out.println("Exception Occured while getting monitoringDependentAppStatus:" + e);
* LOG.info("Exception Occured while getting monitoringDependentAppStatus:{}", e);
* return false;
* }
* String applicationName = monitoringDependentAppStatus.getApplicationName();
* String scenarioName = monitoringDependentAppStatus.getScenarioName();
* if (StringUtils.isNotBlank(applicationName) && StringUtils.equalsIgnoreCase(applicationName, TFConstants.CPUMETRICCOLLECTION.getValue())
* && StringUtils.isNotBlank(scenarioName) && StringUtils.equalsIgnoreCase(scenarioName, scenario)) {
* return true;
* }
* return false;
* }
*/
public static boolean isProcessRunning(List<String> processes, String instanceIp, String scenarioType) {
LOG.info("Inside isProcessRunning processes{},instanceIp{},scenarioType{}", processes, instanceIp, scenarioType);
List<String> applicationNamesFromDB = Lists.newArrayList();
try {
System.out.println("instanceIp" + instanceIp + "scenarioType" + scenarioType);
LOG.info("instanceIp{},scenarioType{}", instanceIp, scenarioType);
List<MonitoringDependentAppStatus> monitoringDependentAppStatus = new MonitoringDependentAppStatusDAO()
.findByMinionIPAndScenarioType(instanceIp, scenarioType);
System.out.println("monitoringDependentAppStatus" + monitoringDependentAppStatus);
LOG.info("monitoringDependentAppStatus{}", monitoringDependentAppStatus);
applicationNamesFromDB = monitoringDependentAppStatus.parallelStream().filter(Objects::nonNull).map(e -> e.getApplicationName())
.collect(Collectors.toList());
System.out.println("applicationNamesFromDB" + applicationNamesFromDB);
LOG.info("applicationNamesFromDB{}", applicationNamesFromDB);
} catch (DataApiException e1) {
System.out.println("DataApiException" + e1);
LOG.error(e1.getMessage());
}
System.out.println(">>>" + applicationNamesFromDB.size());
System.out.println(">>>" + processes.size());
System.out.println(">>>refering equals" + (applicationNamesFromDB.size() == processes.size()));
if (applicationNamesFromDB.size() == processes.size()) {
LOG.info("applicationNamesFromDB.size() == processes.size()??{}", applicationNamesFromDB.size() == processes.size());
return true;
}
return false;
}
}
System.out.println("hostIp" + hostIp);
// hostIp = InetAddress.getByName(new URL(hostName).getHost());
// System.out.println(">>"+hostIp.toString());
to include metadata on an Amazon EC2 instance for the cfn-init helper script
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-init.html
aws ec2 describe-instances --filters 'Name=tag:Name,Values=CoreX-DEV-ui-heimdall-*' --region us-west-2
"Value": "CoreX-DEV-ui-heimdall-CXTF-1352",
"Key": "Name"
},
{
"Value": "6",
"Key": "buildnumber"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "TestFW-CoreX-CXTF-1352-UI-Heimdall-b6-CorexUIAutoScaling-UOVRAA7TSVZ2",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "1.107.0",
"Key": "version"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "CXTF-1352",
"Key": "branch"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1352-UI-Heimdall-b6/41441e90-c02f-11e9-8d83-0aa3372404a6",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "TestFW-CoreX-CXTF-1352-UI-Heimdall-b6",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "false",
"Key": "newrelic"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-04b790a63774fbf90",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-08-19T14:33:17.000Z",
"PrivateIpAddress": "10.31.35.142",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0e4b648de37bbf473",
"EnaSupport": true,
"ImageId": "ami-0651054f3e651bbe4",
"PrivateDnsName": "ip-10-31-35-142.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF-1343-UI-Heimdall-b1-InstanceSecurityGroup-9O6GE9RQSVW5",
"GroupId": "sg-08175a0438921d17e"
}
],
"ClientToken": "a235b2a9-2f93-7352-2018-57155144261b_subnet-821aefe7_1",
"SubnetId": "subnet-821aefe7",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "02:d4:ae:7e:91:48",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-04482e9909b7b27e9",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-35-142.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.35.142"
}
],
"PrivateDnsName": "ip-10-31-35-142.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-052299b2b08b08ac1",
"AttachTime": "2019-08-19T14:33:17.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF-1343-UI-Heimdall-b1-InstanceSecurityGroup-9O6GE9RQSVW5",
"GroupId": "sg-08175a0438921d17e"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-821aefe7",
"PrivateIpAddress": "10.31.35.142"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-09a2ecaba9f27cb44",
"AttachTime": "2019-08-19T14:33:18.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "1",
"Key": "buildnumber"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1343-UI-Heimdall-b1/32ebf5a0-c28e-11e9-9ec7-0ad236afdc80",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "1.107.0",
"Key": "version"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CXTF-1343",
"Key": "branch"
},
{
"Value": "TestFW-CoreX-CXTF-1343-UI-Heimdall-b1-CorexUIAutoScaling-58DQKP4A1HO",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF-1343",
"Key": "Name"
},
{
"Value": "TestFW-CoreX-CXTF-1343-UI-Heimdall-b1",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "false",
"Key": "newrelic"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0eb7592382cd4f7e8",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-08-28T07:29:04.000Z",
"PrivateIpAddress": "10.31.34.198",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-00b528a51d7dafe14",
"EnaSupport": true,
"ImageId": "ami-04b24bf6ee2efd5b2",
"PrivateDnsName": "ip-10-31-34-198.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF-1317-UI-Heimdall-b5-InstanceSecurityGroup-1AGL4RHLOKEM6",
"GroupId": "sg-0e220fabce99d5cb2"
}
],
"ClientToken": "4455b35c-8300-6035-887a-3020a7f0906c_subnet-821aefe7_1",
"SubnetId": "subnet-821aefe7",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "02:73:45:be:08:ee",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-02d2c22c489991a18",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-34-198.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.34.198"
}
],
"PrivateDnsName": "ip-10-31-34-198.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-09cda86f937d48984",
"AttachTime": "2019-08-28T07:29:04.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF-1317-UI-Heimdall-b5-InstanceSecurityGroup-1AGL4RHLOKEM6",
"GroupId": "sg-0e220fabce99d5cb2"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-821aefe7",
"PrivateIpAddress": "10.31.34.198"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-0dfac7ffc821bd5a5",
"AttachTime": "2019-08-28T07:29:05.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "TestFW-CoreX-CXTF-1317-UI-Heimdall-b5",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "TestFW-CoreX-CXTF-1317-UI-Heimdall-b5-CorexUIAutoScaling-I7XQNPCBC83D",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "5",
"Key": "buildnumber"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CXTF-1317",
"Key": "branch"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF-1317",
"Key": "Name"
},
{
"Value": "1.107.0",
"Key": "version"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1317-UI-Heimdall-b5/6eaef370-c965-11e9-b54d-0a977a718284",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "24",
"Key": "uptimehours"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-046a3262d281743e7",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T06:37:50.000Z",
"PrivateIpAddress": "10.31.34.180",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-021019aa9f351545b",
"EnaSupport": true,
"ImageId": "ami-0b8d6a0b27666a9c0",
"PrivateDnsName": "ip-10-31-34-180.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF-1328-UI-Heimdall-b1-InstanceSecurityGroup-XH0TTY7U1WAI",
"GroupId": "sg-069c1cb97f66845bf"
}
],
"ClientToken": "1c45b415-2c50-cb94-e741-97222b15aec1_subnet-821aefe7_1",
"SubnetId": "subnet-821aefe7",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "02:bd:cc:6b:93:54",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-06a70bc0d386713e3",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-34-180.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.34.180"
}
],
"PrivateDnsName": "ip-10-31-34-180.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-0dec73adfebc6b38f",
"AttachTime": "2019-09-06T06:37:50.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF-1328-UI-Heimdall-b1-InstanceSecurityGroup-XH0TTY7U1WAI",
"GroupId": "sg-069c1cb97f66845bf"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-821aefe7",
"PrivateIpAddress": "10.31.34.180"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-064d807b35b91af0d",
"AttachTime": "2019-09-06T06:37:51.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1328-UI-Heimdall-b1/c6fbb510-d070-11e9-83b7-06737af08cb6",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "1",
"Key": "buildnumber"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "TestFW-CoreX-CXTF-1328-UI-Heimdall-b1-CorexUIAutoScaling-Y7X0AMJU01ME",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF-1328",
"Key": "Name"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "TestFW-CoreX-CXTF-1328-UI-Heimdall-b1",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "CXTF-1328",
"Key": "branch"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-095185aa33828510a",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"StateReason": {
"Message": "Client.UserInitiatedShutdown: User initiated shutdown",
"Code": "Client.UserInitiatedShutdown"
},
"State": {
"Code": 48,
"Name": "terminated"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:13:42.000Z",
"ProductCodes": [],
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "User initiated (2019-09-06 10:17:52 GMT)",
"InstanceId": "i-04d8f66a803911777",
"EnaSupport": true,
"ImageId": "ami-0ee038f0b03d8c509",
"PrivateDnsName": "",
"KeyName": "enhance-shared",
"SecurityGroups": [],
"ClientToken": "eea5b417-6715-85ce-8f67-569124828e02_subnet-821aefe7_1",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [],
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5970/68b019f0-d085-11e9-9118-02f46dd00950",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "5970",
"Key": "buildnumber"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970-CorexUIAutoScaling-1DXQFH3H8MT6Y",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0b2b315bfd0670903",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:54:17.000Z",
"PrivateIpAddress": "10.31.34.125",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-07e1b56dc4ac416a1",
"EnaSupport": true,
"ImageId": "ami-05866eb87fcd199fe",
"PrivateDnsName": "ip-10-31-34-125.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"ClientToken": "a1b5b417-fbba-1ddf-41a9-4d0d20d04ea0_subnet-821aefe7_1",
"SubnetId": "subnet-821aefe7",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "02:2b:e7:b7:3d:3c",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-0a88b4ddc68f5fbd5",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-34-125.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.34.125"
}
],
"PrivateDnsName": "ip-10-31-34-125.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-0e6704a11c1ba7290",
"AttachTime": "2019-09-06T09:54:17.000Z"
},
"Groups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-821aefe7",
"PrivateIpAddress": "10.31.34.125"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2b"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-066998de7d76e9a54",
"AttachTime": "2019-09-06T09:54:18.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5971/12e28f20-d08b-11e9-b96f-0ae846f1e916",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "5971",
"Key": "buildnumber"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971-CorexUIAutoScaling-17NIFV0CMTVPJ",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0ce7a7bdddeaea704",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-08-29T04:38:41.000Z",
"PrivateIpAddress": "10.31.32.189",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0338f296ffc3f2371",
"EnaSupport": true,
"ImageId": "ami-0c2031135dbe3d54d",
"PrivateDnsName": "ip-10-31-32-189.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF1227-UI-Heimdall-b3-InstanceSecurityGroup-15GZJV1AWGGRH",
"GroupId": "sg-0776f7f82bbaeb27b"
}
],
"ClientToken": "f9b5b36e-ac6f-d37c-acef-33b203251d5f_subnet-72c7d206_1",
"SubnetId": "subnet-72c7d206",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "06:c5:00:aa:08:be",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-03810eb57fb936ef3",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-32-189.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.32.189"
}
],
"PrivateDnsName": "ip-10-31-32-189.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-030184e007535d6e7",
"AttachTime": "2019-08-29T04:38:41.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF1227-UI-Heimdall-b3-InstanceSecurityGroup-15GZJV1AWGGRH",
"GroupId": "sg-0776f7f82bbaeb27b"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-72c7d206",
"PrivateIpAddress": "10.31.32.189"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-09bbe908be8320699",
"AttachTime": "2019-08-29T04:38:41.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "CXTF1227-",
"Key": "branch"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "TestFW-CoreX-CXTF1227-UI-Heimdall-b3-CorexUIAutoScaling-HZ15LXWJB1I1",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF1227--UI-Heimdall-b3/c87c9590-ca16-11e9-959d-02c5b84a8036",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF1227-",
"Key": "Name"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "TestFW-CoreX-CXTF1227--UI-Heimdall-b3",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "3",
"Key": "buildnumber"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "corex-test-framework",
"Key": "service"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-09f0ea4ae0821d195",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-04T12:34:38.000Z",
"PrivateIpAddress": "10.31.32.185",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0b1f23dee55a5582f",
"EnaSupport": true,
"ImageId": "ami-098ad7fab1465aec9",
"PrivateDnsName": "ip-10-31-32-185.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF-1336-UI-Heimdall-b5-InstanceSecurityGroup-71JA0D7EOZ4I",
"GroupId": "sg-0585543fadf3012aa"
}
],
"ClientToken": "e6a5b3f1-1415-1a8e-02bb-b924c1d8e670_subnet-72c7d206_1",
"SubnetId": "subnet-72c7d206",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "06:ac:2b:64:25:3e",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-006e96ba5fb478fed",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-32-185.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.32.185"
}
],
"PrivateDnsName": "ip-10-31-32-185.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-04085989c072a7003",
"AttachTime": "2019-09-04T12:34:38.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF-1336-UI-Heimdall-b5-InstanceSecurityGroup-71JA0D7EOZ4I",
"GroupId": "sg-0585543fadf3012aa"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-72c7d206",
"PrivateIpAddress": "10.31.32.185"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-03f858530c80c2243",
"AttachTime": "2019-09-04T12:34:39.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1336-UI-Heimdall-b5/48d02e20-cf10-11e9-ac78-06bc2c4a7b48",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF-1336",
"Key": "Name"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "TestFW-CoreX-CXTF-1336-UI-Heimdall-b5",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "CXTF-1336",
"Key": "branch"
},
{
"Value": "5",
"Key": "buildnumber"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "TestFW-CoreX-CXTF-1336-UI-Heimdall-b5-CorexUIAutoScaling-VATIJTS5KZCE",
"Key": "aws:autoscaling:groupName"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-003f4740aad98bc2c",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"StateReason": {
"Message": "Client.UserInitiatedShutdown: User initiated shutdown",
"Code": "Client.UserInitiatedShutdown"
},
"State": {
"Code": 48,
"Name": "terminated"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:13:42.000Z",
"ProductCodes": [],
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "User initiated (2019-09-06 10:18:00 GMT)",
"InstanceId": "i-0db4a0fc95eaef564",
"EnaSupport": true,
"ImageId": "ami-0ee038f0b03d8c509",
"PrivateDnsName": "",
"KeyName": "enhance-shared",
"SecurityGroups": [],
"ClientToken": "eea5b417-6715-85ce-8f67-569124828e02_subnet-72c7d206_2",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [],
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "5970",
"Key": "buildnumber"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970-CorexUIAutoScaling-1DXQFH3H8MT6Y",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5970/68b019f0-d085-11e9-9118-02f46dd00950",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "true",
"Key": "bakedami"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
},
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"StateReason": {
"Message": "Client.UserInitiatedShutdown: User initiated shutdown",
"Code": "Client.UserInitiatedShutdown"
},
"State": {
"Code": 48,
"Name": "terminated"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:13:42.000Z",
"ProductCodes": [],
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "User initiated (2019-09-06 10:17:50 GMT)",
"InstanceId": "i-026cc71ea30650311",
"EnaSupport": true,
"ImageId": "ami-0ee038f0b03d8c509",
"PrivateDnsName": "",
"KeyName": "enhance-shared",
"SecurityGroups": [],
"ClientToken": "eea5b417-6715-85ce-8f67-569124828e02_subnet-72c7d206_2",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [],
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5970/68b019f0-d085-11e9-9118-02f46dd00950",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970-CorexUIAutoScaling-1DXQFH3H8MT6Y",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "5970",
"Key": "buildnumber"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 1
}
],
"ReservationId": "r-0f39edd7b41149823",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:54:18.000Z",
"PrivateIpAddress": "10.31.32.169",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0b52fb1d15b54d900",
"EnaSupport": true,
"ImageId": "ami-05866eb87fcd199fe",
"PrivateDnsName": "ip-10-31-32-169.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"ClientToken": "a1b5b417-fbba-1ddf-41a9-4d0d20d04ea0_subnet-72c7d206_2",
"SubnetId": "subnet-72c7d206",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "06:a1:25:7f:9c:0e",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-09ecd7424fb30b266",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-32-169.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.32.169"
}
],
"PrivateDnsName": "ip-10-31-32-169.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-08838c9ce91c22637",
"AttachTime": "2019-09-06T09:54:18.000Z"
},
"Groups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-72c7d206",
"PrivateIpAddress": "10.31.32.169"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-0c701829dad4bafae",
"AttachTime": "2019-09-06T09:54:19.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "CoreX-DEV-UI-Heimdall-b5971",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971-CorexUIAutoScaling-17NIFV0CMTVPJ",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "5971",
"Key": "buildnumber"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5971/12e28f20-d08b-11e9-b96f-0ae846f1e916",
"Key": "aws:cloudformation:stack-id"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 1
},
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:54:18.000Z",
"PrivateIpAddress": "10.31.32.6",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-083862cfd98b5552f",
"EnaSupport": true,
"ImageId": "ami-05866eb87fcd199fe",
"PrivateDnsName": "ip-10-31-32-6.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"ClientToken": "a1b5b417-fbba-1ddf-41a9-4d0d20d04ea0_subnet-72c7d206_2",
"SubnetId": "subnet-72c7d206",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "06:90:9b:ca:8f:38",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-030581e5b68a3ae63",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-32-6.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.32.6"
}
],
"PrivateDnsName": "ip-10-31-32-6.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-00558eec9dd939d37",
"AttachTime": "2019-09-06T09:54:18.000Z"
},
"Groups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-72c7d206",
"PrivateIpAddress": "10.31.32.6"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2a"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-08f8511bc453d0f66",
"AttachTime": "2019-09-06T09:54:18.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "CoreX-DEV-UI-Heimdall-b5971-CorexUIAutoScaling-17NIFV0CMTVPJ",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5971/12e28f20-d08b-11e9-b96f-0ae846f1e916",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "5971",
"Key": "buildnumber"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "DEV",
"Key": "environment"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0c86caab3893f0847",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-03T12:57:50.000Z",
"PrivateIpAddress": "10.31.36.184",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0663814ec3753447e",
"EnaSupport": true,
"ImageId": "ami-0596a37210974323c",
"PrivateDnsName": "ip-10-31-36-184.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "TestFW-CoreX-CXTF-1359-UI-Heimdall-b1-InstanceSecurityGroup-1RU492ZQ3QZZM",
"GroupId": "sg-0e1878324aab6baeb"
}
],
"ClientToken": "b7f5b3dc-cf8f-8d16-8970-bc998779cf85_subnet-3b192d7d_1",
"SubnetId": "subnet-3b192d7d",
"InstanceType": "m4.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "0a:4a:9e:2a:0d:f6",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-09896e0608078c23a",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-36-184.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.36.184"
}
],
"PrivateDnsName": "ip-10-31-36-184.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-035d72dd718084032",
"AttachTime": "2019-09-03T12:57:50.000Z"
},
"Groups": [
{
"GroupName": "TestFW-CoreX-CXTF-1359-UI-Heimdall-b1-InstanceSecurityGroup-1RU492ZQ3QZZM",
"GroupId": "sg-0e1878324aab6baeb"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-3b192d7d",
"PrivateIpAddress": "10.31.36.184"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2c"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-024c27548b86b25dc",
"AttachTime": "2019-09-03T12:57:50.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CXTF-1359",
"Key": "branch"
},
{
"Value": "1",
"Key": "buildnumber"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "TestFW-CoreX-CXTF-1359-UI-Heimdall-b1-CorexUIAutoScaling-1PKS5F99HOEO7",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "TestFW-CoreX-CXTF-1359-UI-Heimdall-b1",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-CoreX-CXTF-1359-UI-Heimdall-b1/5ccb9b60-ce4a-11e9-b017-0a3886949eaa",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "corex-test-framework",
"Key": "service"
},
{
"Value": "CoreX-DEV-ui-heimdall-CXTF-1359",
"Key": "Name"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-08ab95503a1402315",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"StateReason": {
"Message": "Client.UserInitiatedShutdown: User initiated shutdown",
"Code": "Client.UserInitiatedShutdown"
},
"State": {
"Code": 48,
"Name": "terminated"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:13:42.000Z",
"ProductCodes": [],
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "User initiated (2019-09-06 10:17:53 GMT)",
"InstanceId": "i-0405d4f61fc2dac18",
"EnaSupport": true,
"ImageId": "ami-0ee038f0b03d8c509",
"PrivateDnsName": "",
"KeyName": "enhance-shared",
"SecurityGroups": [],
"ClientToken": "eea5b417-6715-85ce-8f67-569124828e02_subnet-3b192d7d_1",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [],
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2c"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "CoreX-DEV-UI-Heimdall-b5970",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5970-CorexUIAutoScaling-1DXQFH3H8MT6Y",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "5970",
"Key": "buildnumber"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5970/68b019f0-d085-11e9-9118-02f46dd00950",
"Key": "aws:cloudformation:stack-id"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0d74f8f96e05c88fd",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
},
{
"Instances": [
{
"Monitoring": {
"State": "enabled"
},
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"EbsOptimized": false,
"LaunchTime": "2019-09-06T09:54:18.000Z",
"PrivateIpAddress": "10.31.36.180",
"ProductCodes": [],
"VpcId": "vpc-4434572f",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"StateTransitionReason": "",
"InstanceId": "i-0882225ae3a96c642",
"EnaSupport": true,
"ImageId": "ami-05866eb87fcd199fe",
"PrivateDnsName": "ip-10-31-36-180.us-west-2.compute.internal",
"KeyName": "enhance-shared",
"SecurityGroups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"ClientToken": "a1b5b417-fbba-1ddf-41a9-4d0d20d04ea0_subnet-3b192d7d_1",
"SubnetId": "subnet-3b192d7d",
"InstanceType": "m5a.large",
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"NetworkInterfaces": [
{
"Status": "in-use",
"MacAddress": "0a:91:da:73:23:4a",
"SourceDestCheck": true,
"VpcId": "vpc-4434572f",
"Description": "",
"NetworkInterfaceId": "eni-093fb2dfd3754b9b8",
"PrivateIpAddresses": [
{
"PrivateDnsName": "ip-10-31-36-180.us-west-2.compute.internal",
"Primary": true,
"PrivateIpAddress": "10.31.36.180"
}
],
"PrivateDnsName": "ip-10-31-36-180.us-west-2.compute.internal",
"Attachment": {
"Status": "attached",
"DeviceIndex": 0,
"DeleteOnTermination": true,
"AttachmentId": "eni-attach-0daafb54157d5adce",
"AttachTime": "2019-09-06T09:54:18.000Z"
},
"Groups": [
{
"GroupName": "CoreX-DEV-UI-Heimdall-b5971-InstanceSecurityGroup-BCCR83EX5VB6",
"GroupId": "sg-0e72fc7b0b0e6b81b"
}
],
"Ipv6Addresses": [],
"OwnerId": "050190852521",
"SubnetId": "subnet-3b192d7d",
"PrivateIpAddress": "10.31.36.180"
}
],
"SourceDestCheck": true,
"Placement": {
"Tenancy": "default",
"GroupName": "",
"AvailabilityZone": "us-west-2c"
},
"Hypervisor": "xen",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"Status": "attached",
"DeleteOnTermination": true,
"VolumeId": "vol-0fdea800c69d0d2ca",
"AttachTime": "2019-09-06T09:54:19.000Z"
}
}
],
"Architecture": "x86_64",
"RootDeviceType": "ebs",
"IamInstanceProfile": {
"Id": "AIPAICVDWQEM2LJ3H727O",
"Arn": "arn:aws:iam::050190852521:instance-profile/corex-ec2"
},
"RootDeviceName": "/dev/xvda",
"VirtualizationType": "hvm",
"Tags": [
{
"Value": "develop",
"Key": "branch"
},
{
"Value": "arn:aws:cloudformation:us-west-2:050190852521:stack/CoreX-DEV-UI-Heimdall-b5971/12e28f20-d08b-11e9-b96f-0ae846f1e916",
"Key": "aws:cloudformation:stack-id"
},
{
"Value": "DEV",
"Key": "environment"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "gss-changemanagement@ghx.com",
"Key": "owner"
},
{
"Value": "true",
"Key": "bakedami"
},
{
"Value": "1.108.0",
"Key": "version"
},
{
"Value": "corex-ui",
"Key": "service"
},
{
"Value": "DEV",
"Key": "GHXEnvironment"
},
{
"Value": "false",
"Key": "newrelic"
},
{
"Value": "5971",
"Key": "buildnumber"
},
{
"Value": "24",
"Key": "uptimehours"
},
{
"Value": "CoreX-DEV-UI-Heimdall-b5971-CorexUIAutoScaling-17NIFV0CMTVPJ",
"Key": "aws:autoscaling:groupName"
},
{
"Value": "CorexUIAutoScaling",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "CoreX-DEV-ui-heimdall-develop",
"Key": "Name"
}
],
"HibernationOptions": {
"Configured": false
},
"AmiLaunchIndex": 0
}
],
"ReservationId": "r-0f769e1778ce53e72",
"RequesterId": "903220451833",
"Groups": [],
"OwnerId": "050190852521"
}
]
}
ec2-describe-instances | grep TAG Name
aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,InstanceType,PublicIpAddress,Tags[?Key==`Name`]| [0].Value]' --output table --region us-west-2
aws ec2 describe-instances --filters 'Name=tag:Name,Values=CoreX-DEV-ui-heimdall-*' --region us-west-2
ec2-describe-instances aws:cloudformation:stack-name
aws ec2 describe-tags --filters "Name=resource-id,Values=${instance_id}"
aws ec2 describe-tags --region us-west-2 --filter "resource-type=instance" --filter
aws ec2 describe-tags --region us-west-2 --filter "resource-type=instance" --filter "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)
aws ec2 describe-tags --region us-west-2 --filter "Name=tag:Name,Values=CoreX-DEV-ui-heimdall-CXTF-1317" --filter "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)"
aws ec2 describe-tags --region us-west-2 --filter "Name=tag:Name,Values=CoreX-DEV-ui-heimdall-*" --filters "Name=resource-id,Values=$(ec2-metadata -i)"
ec2-metadata -i
aws ec2 describe-tags --region us-west-2 --filters "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)" "Name=key,Values=Name" --output text | cut -f5
aws ec2 describe-tags --region us-west-2 --filters "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)" "Name=key,Values=Name" --output text | cut -f5 | grep CoreX | wc -l
#!/usr/bin/env bash
mirrorStack=0;
empty=0;
mirrorStack=$(aws ec2 describe-tags --region us-west-2 --filters "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)" "Name=key,Values=Name" --output text | cut -f5 | grep TestFW-Replay-ui-heimdall | wc -l)
echo $mirrorStack
if[$mirrorStack != $empty];
then
"sh /opt/scripts/MonitoringDependentAppStatus.sh"
fi
aws ec2 describe-tags --region us-west-2 --filters "Name=resource-id,Values=$(ec2-metadata -i | cut -d ' ' -f2)" "Name=key,Values=Name" --output text | cut -f5 | grep TestFW-Replay-ui-heimdall | wc -l
aws ec2 describe-instances --filters "Name=launch-time,Values=2015-03\*"
In minion
Sep 04, 2019 5:29:47 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 50581 ms
2019-09-04 05:29:47,604 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of Ec2Service
2019-09-04 05:29:47,655 |INFO [http-bio-8080-exec-1] c.g.a.u.e.RegionDeterminationOperationHolder - Initializing AWS Region...
2019-09-04 05:29:47,798 |INFO [http-bio-8080-exec-1] c.g.a.u.e.RegionDeterminationOperationHolder - Initialized AWS Region = us-west-2
2019-09-04 05:29:47,799 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of CloudFormationService
2019-09-04 05:29:47,816 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of RdsService
2019-09-04 05:29:47,829 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of RdsService
2019-09-04 05:29:47,859 |INFO [http-bio-8080-exec-1] c.g.t.u.implementation.DefaultTFStackManager - Found entitled IAM role: arn:aws:iam::050190852521:role/LambdaCrossStackOutput
2019-09-04 05:29:47,861 |WARN [http-bio-8080-exec-1] c.g.t.u.implementation.DefaultTFStackManager - The AccountID from "arn:aws:iam::050190852521:role/LambdaCrossStackOutput" role will be used: 050190852521
2019-09-04 05:29:47,870 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of Ec2Service
2019-09-04 05:29:47,871 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of CloudFormationService
2019-09-04 05:29:47,881 |INFO [http-bio-8080-exec-1] c.g.a.u.factories.AmazonServicesConfiguration - Created real instance of AutoScalingService
2019-09-04 05:29:48,001 |INFO [http-bio-8080-exec-1] c.g.t.minion.rest.TestScenarioExecutorREST - before checkDependencies in TestScenarioExecutorRest
2019-09-04 05:29:48,005 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Initializing instance IP address...
2019-09-04 05:29:48,005 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determining EC2 Instance IP address...
2019-09-04 05:29:48,006 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determined EC2 Instance IP address = 10.31.34.229
2019-09-04 05:29:48,006 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determining System Instance hostname...
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determined System Instance hostname = 10.31.34.229
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.a.u.e.IpAddressDeterminationOperationHolder - Initialized instance IP address = 10.31.34.229
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.t.minion.rest.TestScenarioExecutorREST - before checkDependencies in TestScenarioExecutorRest
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.t.minion.rest.TestScenarioExecutorREST - currentInstanceMinionIp10.31.34.229
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.t.minion.rest.TestScenarioExecutorREST - currentInstanceMinionIp10.31.34.229
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.t.minion.rest.TestScenarioExecutorREST - TFConstants.CUSTOM.getValue()CUSTOM
2019-09-04 05:29:48,007 |INFO [http-bio-8080-exec-1] c.g.t.api.service.impl.TestStackServiceImpl - Inside checkDependencies appNametest-framework,currentInstanceMinionIp10.31.34.229, scenarioTypeCUSTOM
2019-09-04 05:29:48,008 |INFO [http-bio-8080-exec-1] c.g.t.api.service.impl.TestStackServiceImpl - IF appName in TEST_FRAMEWORK
2019-09-04 05:29:48,008 |INFO [http-bio-8080-exec-1] c.g.t.api.service.impl.TestStackServiceImpl - processStr containing Dependencieslogstash
2019-09-04 05:29:48,008 |INFO [http-bio-8080-exec-1] c.g.t.api.service.impl.TestStackServiceImpl - process after spliting with comma[logstash]
2019-09-04 05:29:48,010 |INFO [http-bio-8080-exec-1] com.ghx.testframework.api.util.ProcessUtils - Inside isProcessRunning processes[logstash],instanceIp10.31.34.229,scenarioTypeCUSTOM
Connection to 10.31.34.229 closed by remote host.
Connection to 10.31.34.229 closed.
In Gru
2019-09-04 05:28:47,870 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - Stack created for test run test_1262_1_5d6f4b2cbd724110343cb595 with details = StackDetails(stackId=arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c, stackName=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595, description=Test Framework Minion stack, resourceInformation=[ResourceInformation(resourceType=AWS::AutoScaling::AutoScalingGroup, logicalResourceIdId=MercuryMinionAutoScaling, physicalResourceIdId=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionAutoScaling-M9HQSW4LOM9Z), ResourceInformation(resourceType=AWS::EC2::SecurityGroup, logicalResourceIdId=MercuryMinionInstanceSecurityGroup, physicalResourceIdId=sg-099062e7464b7f078), ResourceInformation(resourceType=AWS::AutoScaling::LaunchConfiguration, logicalResourceIdId=MercuryMinionLaunchConfig, physicalResourceIdId=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionLaunchConfig-TRJ31ZQ7K1UV), ResourceInformation(resourceType=Custom::NetworkInfo, logicalResourceIdId=NetworkInfo, physicalResourceIdId=2019/09/04/[$LATEST]abb52a44b3ab48bdab309acf08ff7f6b)], instances=[EC2InstanceDetails(instanceId=i-0eb7db48a872a36de, instanceType=m4.xlarge, privateIpAddress=10.31.34.229, imageId=ami-0c877761697013c11, tags=[{Key: aws:cloudformation:logical-id,Value: MercuryMinionAutoScaling}, {Key: aws:autoscaling:groupName,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionAutoScaling-M9HQSW4LOM9Z}, {Key: Name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}, {Key: aws:cloudformation:stack-name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}, {Key: owner,Value: enhancedeliveryteam@ghx.com}, {Key: aws:cloudformation:stack-id,Value: arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c}, {Key: service,Value: corex-test-framework}, {Key: uptimehours,Value: 24}], keyName=enhance-shared, instancePort=)], stackStatus=CREATE_COMPLETE, parameters={configSVCpass=, testFrameWorkURL=mongodb://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027/test-framework?replicaSet=rs3, VPCStackName=LegacyVpcCfOutputs, ApplicationVersion=1.108.0, TagName=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595, GHXEnvironment=DEV, MongoConfigDB=NA, War=test-framework-minion, Service=test-framework-minion, AdditionalJavaOpts=-server -Xms8192m -Xmx12288m -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=2048m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp, ScalingMin=1, KeyName=enhance-shared, TestResultId=5d6f4b2cbd724110343cb595, BuildNumber=10, DeploymentBucket=ghx-deployment, ScalingMax=1, BranchName=CXTF-1262, configSVCurl=mongodb://configsvc-user:configsvc123@configsvc-dev-01.awsdsi.ghx.com:27027,configsvc-dev-02.awsdsi.ghx.com:27027,configsvc-dev-03.awsdsi.ghx.com:27027/configsvc?replicaSet=rs3, InstanceType=m4.xlarge, Application=test-framework-minion, MongosEnabled=false}, outputs={}, tags=[{Key: owner,Value: enhancedeliveryteam@ghx.com}, {Key: uptimehours,Value: 24}, {Key: service,Value: corex-test-framework}, {Key: Name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}])
2019-09-04 05:28:47,929 |INFO [5d6f4b2cbd724110343cb595] c.g.t.u.implementation.DefaultTFStackManager - CloudFormation stack "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c" has status: CREATE_COMPLETE ( OK )
2019-09-04 05:28:47,940 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Initializing instance IP address...
2019-09-04 05:28:47,940 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determining EC2 Instance IP address...
2019-09-04 05:28:47,941 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determined EC2 Instance IP address = 10.31.32.190
2019-09-04 05:28:47,942 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determining System Instance hostname...
2019-09-04 05:28:47,942 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Determined System Instance hostname = 10.31.32.190
2019-09-04 05:28:47,942 |INFO [5d6f4b2cbd724110343cb595] c.g.a.u.e.IpAddressDeterminationOperationHolder - Initialized instance IP address = 10.31.32.190
2019-09-04 05:28:47,948 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - Generated minion property: com.ghx.testframework.api.common.MinionProperties@351a4198[id=<null>,testResultName=test_1262_1_5d6f4b2cbd724110343cb595,testResultInstanceId=5d6f4b2cbd724110343cb595,sslConfigLocation=/config,minionIp=10.31.34.229,stackDeleteId=arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c,csvOutputFile=<null>,jMeterLogFile=<null>,jMeterJtlFile=<null>,scenarioType=CUSTOM,testInstanceCount=1,stackDeleteEnabled=true]
2019-09-04 05:28:47,955 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - validateMinionStatusAndStartExecution started
2019-09-04 05:28:47,958 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - Minion IP 10.31.34.229
2019-09-04 05:28:47,960 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - Executing all 1 TestPackageAndTriggerCallable tasks...
2019-09-04 05:28:47,960 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngineProcessor - Inside call Of custom run minionPort10.31.34.229,instanceIP8080
2019-09-04 05:28:47,961 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Inside validateMinionStatus minionIp10.31.34.229, minionPort8080
2019-09-04 05:28:47,961 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Minion status URL http://10.31.34.229:8080/minion/configuration/status
2019-09-04 05:28:47,961 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - minionReadyfalse
2019-09-04 05:28:47,961 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - tfHostnameVerifiercom.ghx.testframework.utils.helpers.TFHostnameVerifier@69164a90
2019-09-04 05:28:47,963 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - clientorg.apache.http.impl.client.InternalHttpClient@573549a
2019-09-04 05:28:47,964 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - statusCallGET http://10.31.34.229:8080/minion/configuration/status HTTP/1.1
2019-09-04 05:28:47,971 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Minion status call error, retrying {}
org.apache.http.conn.HttpHostConnectException: Connect to 10.31.34.229:8080 [/10.31.34.229] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.5.jar:4.5.5]
at com.ghx.testframework.gru.TestEngine.validateMinionStatus(TestEngine.java:400) ~[TestEngine.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:812) [TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792) [TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_191]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_191]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_191]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_191]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_191]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_191]
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75) ~[httpclient-4.5.5.jar:4.5.5]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.5.jar:4.5.5]
... 16 common frames omitted
2019-09-04 05:28:47,971 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Minion Ready status is set false
2019-09-04 05:28:47,974 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Gonna to sleep 10m
2019-09-04 05:28:57,974 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - tfHostnameVerifiercom.ghx.testframework.utils.helpers.TFHostnameVerifier@1a1a0078
2019-09-04 05:28:57,975 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - clientorg.apache.http.impl.client.InternalHttpClient@d8b917c
2019-09-04 05:28:57,976 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - statusCallGET http://10.31.34.229:8080/minion/configuration/status HTTP/1.1
2019-09-04 05:29:48,032 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - responseHttpResponseProxy{HTTP/1.1 500 Internal Server Error [Server: Apache-Coyote/1.1, Content-Type: text/html;charset=utf-8, Content-Language: en, Content-Length: 4862, Date: Wed, 04 Sep 2019 05:29:48 GMT, Connection: close] ResponseEntityProxy{[Content-Type: text/html;charset=utf-8,Content-Length: 4862,Chunked: false]}}
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - status500
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - HttpStatus.INTERNAL_SERVER_ERROR.value() ... status500
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - Minion Ready status is set true
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - minionError status is set true
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - validateMinionStatus OK : false for minion with IP : 10.31.34.229
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngine - minionErrortrue
2019-09-04 05:29:48,033 |INFO [MinionExecution-TestRunName-test_1262_1_5d6f4b2cbd724110343cb595-thr-0] com.ghx.testframework.gru.TestEngineProcessor - After validateMinionStatus minionValidationError???true
2019-09-04 05:29:48,038 |INFO [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - future
2019-09-04 05:29:48,039 |ERROR [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - Error during execution of TestPackageAndTriggerCallable job
com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:825) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
2019-09-04 05:29:48,041 |ERROR [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - An error occurred while processing TestRun: "test_1262_1_5d6f4b2cbd724110343cb595" configuration
com.ghx.testframework.gru.exception.TestEngineException: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor.validateMinionStatusAndStartExecution(TestEngineProcessor.java:602) ~[TestEngineProcessor.class:na]
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:428) ~[TestEngineProcessor.class:na]
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178) [TestEngine.class:na]
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259) [TestEngine.class:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
Caused by: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:825) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792) ~[TestEngineProcessor$TestPackageAndTriggerCallable.class:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_191]
... 1 common frames omitted
2019-09-04 05:29:48,048 |ERROR [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - stackDetails for the deleted test StackDetails(stackId=arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c, stackName=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595, description=Test Framework Minion stack, resourceInformation=[ResourceInformation(resourceType=AWS::AutoScaling::AutoScalingGroup, logicalResourceIdId=MercuryMinionAutoScaling, physicalResourceIdId=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionAutoScaling-M9HQSW4LOM9Z), ResourceInformation(resourceType=AWS::EC2::SecurityGroup, logicalResourceIdId=MercuryMinionInstanceSecurityGroup, physicalResourceIdId=sg-099062e7464b7f078), ResourceInformation(resourceType=AWS::AutoScaling::LaunchConfiguration, logicalResourceIdId=MercuryMinionLaunchConfig, physicalResourceIdId=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionLaunchConfig-TRJ31ZQ7K1UV), ResourceInformation(resourceType=Custom::NetworkInfo, logicalResourceIdId=NetworkInfo, physicalResourceIdId=2019/09/04/[$LATEST]abb52a44b3ab48bdab309acf08ff7f6b)], instances=[EC2InstanceDetails(instanceId=i-0eb7db48a872a36de, instanceType=m4.xlarge, privateIpAddress=10.31.34.229, imageId=ami-0c877761697013c11, tags=[{Key: aws:cloudformation:logical-id,Value: MercuryMinionAutoScaling}, {Key: aws:autoscaling:groupName,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595-MercuryMinionAutoScaling-M9HQSW4LOM9Z}, {Key: Name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}, {Key: aws:cloudformation:stack-name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}, {Key: owner,Value: enhancedeliveryteam@ghx.com}, {Key: aws:cloudformation:stack-id,Value: arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c}, {Key: service,Value: corex-test-framework}, {Key: uptimehours,Value: 24}], keyName=enhance-shared, instancePort=)], stackStatus=CREATE_COMPLETE, parameters={configSVCpass=, testFrameWorkURL=mongodb://test-framework-user:testframework123@dmongo-01.awsdsi.ghx.com:27027/test-framework?replicaSet=rs3, VPCStackName=LegacyVpcCfOutputs, ApplicationVersion=1.108.0, TagName=TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595, GHXEnvironment=DEV, MongoConfigDB=NA, War=test-framework-minion, Service=test-framework-minion, AdditionalJavaOpts=-server -Xms8192m -Xmx12288m -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=2048m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp, ScalingMin=1, KeyName=enhance-shared, TestResultId=5d6f4b2cbd724110343cb595, BuildNumber=10, DeploymentBucket=ghx-deployment, ScalingMax=1, BranchName=CXTF-1262, configSVCurl=mongodb://configsvc-user:configsvc123@configsvc-dev-01.awsdsi.ghx.com:27027,configsvc-dev-02.awsdsi.ghx.com:27027,configsvc-dev-03.awsdsi.ghx.com:27027/configsvc?replicaSet=rs3, InstanceType=m4.xlarge, Application=test-framework-minion, MongosEnabled=false}, outputs={}, tags=[{Key: owner,Value: enhancedeliveryteam@ghx.com}, {Key: uptimehours,Value: 24}, {Key: service,Value: corex-test-framework}, {Key: Name,Value: TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595}])
2019-09-04 05:29:48,049 |ERROR [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - TestEngineException - DeletingStack - Stack ID for deletion is arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c.
2019-09-04 05:29:48,049 |INFO [5d6f4b2cbd724110343cb595] c.g.t.u.implementation.DefaultTFStackManager - Deleting the CF stack arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c
2019-09-04 05:29:48,154 |INFO [5d6f4b2cbd724110343cb595] c.g.t.u.implementation.DefaultTFStackManager - Start polling for "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c" CF stack status...
2019-09-04 05:31:33,594 |INFO [5d6f4b2cbd724110343cb595] c.g.t.u.implementation.DefaultTFStackManager - Stack "arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c" status polling completed, with DELETE_COMPLETE (OK)
2019-09-04 05:31:33,594 |ERROR [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngineProcessor - DeleteStack() Response for deleting Stack ID arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c is arn:aws:cloudformation:us-west-2:050190852521:stack/TestFW-MINION-DEV-CXTF-1262-5d6f4b2cbd724110343cb595/a3fb6120-ced4-11e9-b87c-0648984e3d2c
2019-09-04 05:31:33,594 |WARN [5d6f4b2cbd724110343cb595] com.ghx.testframework.gru.TestEngine - Threaded HTTP mode finished for Test Scenario : 5d6761a421a7180e7e2ff6c0
In Heimdall
ull, fatalErrorStacktrace=com.ghx.testframework.gru.exception.TestEngineException: An error occurred while creating AWS stack for test run.
at com.ghx.testframework.gru.TestEngineProcessor.createAWSStack(TestEngineProcessor.java:241)
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:424)
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178)
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ghx.aws.utils.exception.aws.AwsClientException: Minion stack "TestFW-MINION-DEV-CXTF-1262-5d68f9c8403bdd101940e423" was created with status ROLLBACK_IN_PROGRESS instead of CREATE_COMPLETE
at com.ghx.testframework.utils.implementation.DefaultTFStackManager.createMinionStack(DefaultTFStackManager.java:781)
at com.ghx.testframework.gru.TestEngineProcessor.createAWSStack(TestEngineProcessor.java:233)
... 4 more
terProcessedEndDate=0, totalTimeTakenForJmeterProcess=0, clusterInfo=null, discrepancyInfo=null, fatalErrorStacktrace=com.ghx.testframework.gru.exception.TestEngineException: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor.validateMinionStatusAndStartExecution(TestEngineProcessor.java:602)
at com.ghx.testframework.gru.TestEngineProcessor.processTestConfiguration(TestEngineProcessor.java:428)
at com.ghx.testframework.gru.TestEngine.threadedHTTPMode(TestEngine.java:178)
at com.ghx.testframework.gru.TestEngine.lambda$validateAndProcessTestScenario$0(TestEngine.java:259)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ghx.testframework.gru.exception.TestEngineException: All minion instances validation failed
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:824)
at com.ghx.testframework.gru.TestEngineProcessor$TestPackageAndTriggerCallable.call(TestEngineProcessor.java:792)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
http://10.31.32.167:8080/minion/status
Instance Id: i-0cfbffc4d3f950b73
IP: 10.31.32.167
Hostname: ip-10-31-32-167.awsdsi.ghx.com
Environment: DEV
Running Version: 1.108.0-SNAPSHOT
Bamboo Version: 10
Branch: CXTF-1262
Git Hash: 27b796da833818a243011a69e8781b3a4dfbff94
Build Date: 2019-09-04 04:12:23 AM
GRU args
-Dcatalina.base="/home/sys-user/selvaWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1" -Dcatalina.home="/home/sys-user/apache-tomcat-7.0.85" -Dwtp.deploy="/home/sys-user/selvaWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps" -Djava.endorsed.dirs="/home/sys-user/apache-tomcat-7.0.85/endorsed"
-Dghx.configsvc.db.url=mongodb://configsvc-user:configsvc123@localhost:27017/configsvc
-Djavax.net.debug=all
-Djavax.net.ssl.trustStoreType=JKS
-Djavax.net.ssl.trustStorePassword=changeit
-Djavax.net.ssl.keyStore=certificates/GHXCerts/DEV_keystore.jks
-Djavax.net.ssl.keyStoreType=JKS
-Djavax.net.ssl.keyStorePassword=thepass
-Daws.accessKeyId=AKIAQXL43UGUYIZK4JFY
-Daws.secretKey=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
/* 1 */
{
"_id" : ObjectId("5d78ce063da613cf93292361"),
"scenarioType" : "Mirror",
"minionIP" : "10.31.35.75",
"applicationName" : "logstash",
"created" : {
"by" : "system",
"on" : ISODate("2019-09-11T10:35:50.177Z")
}
}
/* 2 */
{
"_id" : ObjectId("5d78ce063da613cf93292362"),
"scenarioType" : "Mirror",
"minionIP" : "10.31.35.75",
"applicationName" : "topbeat",
"created" : {
"by" : "system",
"on" : ISODate("2019-09-11T10:35:50.177Z")
}
}
/* 3 */
{
"_id" : ObjectId("5d78ce063da613cf93292363"),
"scenarioType" : "Mirror",
"minionIP" : "10.31.35.75",
"applicationName" : "cpumetriccollection",
"created" : {
"by" : "system",
"on" : ISODate("2019-09-11T10:35:50.177Z")
}
}
http://localhost:8081/gru/gru/checkingDependency
https://internal-testfw-cxtf-1262-ui-heimdall-elb-1576285382.us-west-2.elb.amazonaws.com/rest/testframework/checkreplaydependencies/corex
import boto3
import boto.ec2
import datetime
from dateutil import parser
conn = boto.ec2.connect_to_region('us-west-2')
reservations = conn.get_all_instances()
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
for instance in ec2.instances.all():
print (instance.id , instance.state)
for r in reservations:
for i in r.instances:
launchtime = parser.parse(i.launch_time)
launchtime_naive = launchtime.replace(tzinfo=None)
then = datetime.datetime.utcnow() + datetime.timedelta(days = -30)
if launchtime_naive < then:
print i.id
import boto3
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
for instance in ec2.instances.all():
print (instance.id , instance.state)
#import boto3
#ec2 = boto3.resource('ec2')
#storingVariable = boto3.client('ec2', region_name='us-west-2')
#reservations = storingVariable.get_all_instances()
#def lambda_handler(event, context):
# print(storingVariable)
# print(reservations)
instances = [i for r in reservations for i in r.instances]
for instance in instances:
print instance.id, instance.state
reservations = ec2_connection.get_all_reservations(filters={'instance-state-name': 'running'})
for reservation in reservations:
for instance in reservation.instances:
print(instance.instance_id, instance.instance_type)
import boto3
from datetime import date
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
print(ec2)
instances = ec2.instances.filter(Filters=[{'Name': 'tag:service', 'Values': ['corex-test-framework']}])
for instance in instances:
print(instance.id, instance.instance_type, date.isoformat(instance.launch_time))
time_between_insertion = datetime.datetime.now().isoformat() - date.isoformat(instance.launch_time)
print(time_between_insertion)
d0 = date(2008, 8, 18)
d1 = date(2008, 9, 26)
delta = d1 - d0
print(delta.days)
dateNow = date.isoformat(date.today())
launchTime = date.isoformat(instance.launch_time)
print(dateNow, launchTime)
launch_time = datetime.datetime.strptime(instance.launch_time,'%Y-%m-%d %H:%M:%S.%f')
current_time = datetime.datetime.strptime(date.today(),'%Y-%m-%d %H:%M:%S.%f')
import boto3
import datetime
from datetime import date
from dateutil import parser
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
print(ec2)
instances = ec2.instances.filter(Filters=[{'Name': 'tag:service', 'Values': ['corex-test-framework']}])
for instance in instances:
print(instance.id, instance.instance_type, date.isoformat(instance.launch_time))
def convert_date(x,y,z):
orig_date = datetime.datetime(x,y,z)
orig_date = str(orig_date)
d = datetime.datetime.strptime(orig_date, '%Y-%m-%d %H:%M:%S')
d = d.strftime('%m/%d/%y')
return d
import boto3
import datetime
from datetime import date
from dateutil.parser import parse
#from dateutil import parser
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
print(ec2)
instances = ec2.instances.filter(Filters=[{'Name': 'tag:service', 'Values': ['corex-test-framework']}])
for instance in instances:
print(instance.id, instance.instance_type, instance.launch_time)
print(date.isoformat(instance.launch_time))
print(date.today())
a = date.isoformat(instance.launch_time)
b = date.isoformat(date.today())
print(a.split('-'))
d1 = a.split('-')
print(b.split('-'))
d2 = b.split('-')
print("d1 is greater than d2 : ", d1 > d2)
print("d1 is less than d2 : ", d1 < d2)
print("d1 is not equal to d2 : ", d1 != d2)
date1 = parse(b)
date2 = parse(a)
print date1 - date2
print date2 > date2
#CurrentDate = str(datetime.datetime.now())
#CurrentDate = datetime.datetime.strptime(CurrentDate, "%d/%m/%Y %H:%M")
#print(CurrentDate)
#CurrentDate = datetime.datetime.now()
#print(CurrentDate)
2019-09-16 12:11:18,793 |WARN [main] o.s.c.support.ClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testFrameworkDeleteInstanceJob' defined in class path resource [config/spring/test-framework-gru-quartz-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'jobClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.ghx.testframework.gru.scheduler.testFrameworkDeleteInstanceJob]
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testFrameworkDeleteInstanceJob' defined in class path resource [config/spring/test-framework-gru-quartz-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'jobClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.ghx.testframework.gru.scheduler.testFrameworkDeleteInstanceJob]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.ghx.testframework.gru.scheduler.App.main(App.java:10)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'jobClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.ghx.testframework.gru.scheduler.testFrameworkDeleteInstanceJob]
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:610)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:617)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1577)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1536)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
... 11 more
Caused by: java.lang.IllegalArgumentException: Cannot find class [com.ghx.testframework.gru.scheduler.testFrameworkDeleteInstanceJob]
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:287)
at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63)
at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:468)
at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:441)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:199)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:590)
... 17 more
Caused by: java.lang.ClassNotFoundException: com.ghx.testframework.gru.scheduler.testFrameworkDeleteInstanceJob
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:284)
... 22 more
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cronTriggerForDeleteInstance' defined in class path resource [config/spring/test-framework-gru-quartz-context.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Unexpected end of expression.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.ghx.testframework.gru.scheduler.App.main(App.java:10)
Caused by: java.text.ParseException: Unexpected end of expression.
at org.quartz.CronExpression.buildExpression(CronExpression.java:494)
at org.quartz.CronExpression.<init>(CronExpression.java:276)
at org.quartz.impl.triggers.CronTriggerImpl.setCronExpression(CronTriggerImpl.java:347)
at org.springframework.scheduling.quartz.CronTriggerFactoryBean.afterPropertiesSet(CronTriggerFactoryBean.java:245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
... 12 more
import boto3
import os
import datetime
import calendar
from datetime import date
from dateutil.parser import parse
#from dateutil import parser
ec2 = boto3.resource('ec2')
def lambda_handler(event, context):
INSTANCE_TAG_FILTER_SERVICE = os.environ.get("INSTANCE_TAG_FILTER_SERVICE")
INSTANCE_TAG_NAME_FILTER_FOR_MAX_DAYS_TO_HOLD = os.environ.get("INSTANCE_TAG_NAME_FILTER_FOR_MAX_DAYS_TO_HOLD")
INSTANCE_TAG_NAME_FILTER_FOR_WEEK_DELETION = os.environ.get("INSTANCE_TAG_NAME_FILTER_FOR_WEEK_DELETION")
MAX_DAYS_TO_HOLD_INSTANCE = os.environ.get("MAX_DAYS_TO_HOLD_INSTANCE")
DELETION_PER_WEEK_ON = os.environ.get("DELETION_PER_WEEK_ON")
print(INSTANCE_TAG_NAME_FILTER_FOR_MAX_DAYS_TO_HOLD,INSTANCE_TAG_NAME_FILTER_FOR_WEEK_DELETION,MAX_DAYS_TO_HOLD_INSTANCE,DELETION_PER_WEEK_ON)
FILTER_FOR_MAX_DAYS = INSTANCE_TAG_NAME_FILTER_FOR_MAX_DAYS_TO_HOLD.split(",")
FILTER_FOR_WEEKLY_DELETION = INSTANCE_TAG_NAME_FILTER_FOR_WEEK_DELETION.split(",")
i = 0
while i < len(FILTER_FOR_MAX_DAYS):
print(FILTER_FOR_MAX_DAYS)
FILTER_FOR_MAX_DAYS[i] = "*"+FILTER_FOR_MAX_DAYS[i]+"*"
i += 1
print FILTER_FOR_MAX_DAYS
i = 0
while i < len(FILTER_FOR_WEEKLY_DELETION):
print(FILTER_FOR_WEEKLY_DELETION)
FILTER_FOR_WEEKLY_DELETION[i] = "*"+FILTER_FOR_WEEKLY_DELETION[i]+"*"
i += 1
print FILTER_FOR_WEEKLY_DELETION
#print(ec2)
#instances = ec2.instances.filter(Filters=[{'Name': 'tag:service', 'Values': ['corex-test-framework']}])
#for instance in instances:
#print(instance.id, instance.instance_type, instance.launch_time)
#print(date.isoformat(instance.launch_time))
#print(date.today())
#a = date.isoformat(instance.launch_time)
#b = date.isoformat(date.today())
#date1 = parse(b)
#date2 = parse(a)
#print date1 - date2
#c = date1 - date2
#print(c.days)
#maxday = 3
#if c.days > maxday:
#print("c is greater than 3 days")
#instances = ec2.instances.filter(Filters=[{'Name': 'tag:service', 'Values': ['corex-test-framework']}])
instanceForMaxDays = ec2.instances.filter(Filters=[{'Name': 'tag:Name', 'Values': FILTER_FOR_MAX_DAYS},
{'Name': 'tag:service', 'Values': [INSTANCE_TAG_FILTER_SERVICE]}])
print('*************************************************************')
for instance in instanceForMaxDays:
print(instance.id, instance.instance_type, instance.launch_time)
a = (parse(date.isoformat(date.today()))) -(parse(date.isoformat(instance.launch_time)))
print a
instanceForWeeklyDeletion = ec2.instances.filter(Filters=[{'Name': 'tag:Name', 'Values': FILTER_FOR_WEEKLY_DELETION},
{'Name': 'tag:service', 'Values': [INSTANCE_TAG_FILTER_SERVICE]}])
print('*************************************************************')
for instance in instanceForWeeklyDeletion:
print(instance.id, instance.instance_type, instance.launch_time)
print calendar.day_name[datetime.datetime.today().weekday()]
#CurrentDate = str(datetime.datetime.now())
#CurrentDate = datetime.datetime.strptime(CurrentDate, "%d/%m/%Y %H:%M")
#print(CurrentDate)
#CurrentDate = datetime.datetime.now()
#print(CurrentDate)
git clean -fd
git clean -f
git clean -n
rm -rf file
git reset --hard
test.json
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Test Framework Minion stack",
"Parameters": {
"VPCStackName": {
"Description": "Name of the VPC CloudFormaiton Stack",
"Type": "String",
"Default": "LegacyVpcCfOutputs"
},
"InstanceType": {
"Description": "WebServer EC2 instance type",
"Type": "String",
"Default": "m4.large",
"ConstraintDescription": "must be a valid EC2 instance type."
},
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type": "AWS::EC2::KeyPair::KeyName",
"ConstraintDescription": "must be the name of an existing EC2 KeyPair."
},
"configSVCurl": {
"Description": "The URL of the configsvc to use",
"Type": "String",
"ConstraintDescription": "must be the name of an existing configsvc mongo database."
},
"testFrameWorkURL": {
"Description": "The URL of the testframework to use",
"Type": "String",
"ConstraintDescription": "must be the name of an existing testframework mongo database."
},
"configSVCpass": {
"Description": "The encrypted password of the configsvc to use",
"Type": "String",
"ConstraintDescription": "must be the password of an existing configsvc mongo database."
},
"AdditionalJavaOpts": {
"Description": "Additional JAVA_OPTS as system properties, -Dname=value",
"Type": "String",
"Default": "",
"ConstraintDescription": "Set as system property, -D"
},
"ScalingMax": {
"Description": "Max Number to scale EC2 instances to",
"Type": "Number",
"Default": "1",
"MinValue": "1",
"MaxValue": "350"
},
"ScalingMin": {
"Description": "Min Number to scale EC2 instances to",
"Type": "Number",
"Default": "1",
"MinValue": "1",
"MaxValue": "200"
},
"MongoConfigDB":{
"Description":"Connection String to the Mongo Shard Config database. Only used if MongosEnabled=true",
"Type":"String",
"Default":"UNKNOWN",
"ConstraintDescription":"must be a valid mongodb url"
},
"MongosEnabled":{
"Description":"Select true to enable Mongos to allow AppServer to connect to a shard",
"Type":"String",
"Default":"false",
"AllowedValues":[
"true",
"false"
],
"ConstraintDescription":"must be true or false"
},
"Service" : {
"Description" : "Value to apply to the service tag for instances",
"Type": "String",
"Default": "test-framework-minion"
},
"Application":{
"Description":"Application To Map To Application ",
"Type":"String",
"ConstraintDescription":"Must Be Valid Application Label"
},
"War": {
"Description": "The War Name",
"Type": "String",
"ConstraintDescription": "Name of the war to deployed"
},
"DeploymentBucket" : {
"Description" : "Set to true to create SNS notifications for instance_terminations of ASGs",
"Type" : "String",
"Default" : "ghx-deployment"
},
"GHXEnvironment": {
"Description": "GHX environment",
"Type": "String",
"AllowedValues": [
"CUSTOM",
"DEV",
"STG",
"DEVINT",
"CoreXBINT",
"PRD",
"LOAD"
]
},
"TagName": {
"Description": "Name of EC2 instances launched from AutoScalingGroup",
"Type": "String"
},
"ApplicationVersion": {
"Description": "Application Version Number To Map To Application Key In S3",
"Type": "String",
"ConstraintDescription": "Must Be Valid Application Version Label"
},
"BranchName": {
"Description": "Bamboo Branch Name",
"Type": "String",
"ConstraintDescription": "Must be valid branch name"
},
"BuildNumber": {
"Description": "Bamboo build number",
"Type": "String",
"ConstraintDescription": "must be a valid bamboo build number"
},
"TestResultId":{
"Description":"The Id of scenario in case if stack creates by testframework",
"Type":"String",
"Default":"NA"
}
},
"Conditions" : {
"IsNotATestStack" : {"Fn::Equals" : [{"Ref":"TestResultId"}, "NA"]}
},
"Mappings": {
"AWSRegionArch2AMI": {
"us-east-1": {
"AMIID": "ami-02e040fd64ea65819"
},
"us-west-2": {
"AMIID": "ami-09301118ffaecde61"
}
},
"Ec2Role": {
"CUSTOM": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
},
"DEV": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
},
"STG": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
},
"DEVINT": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
},
"CoreXBINT": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
},
"PRD": {
"Role": "arn:aws:iam::326626545197:instance-profile/test-framework"
},
"LOAD": {
"Role": "arn:aws:iam::050190852521:instance-profile/test-framework"
}
}
},
"Resources": {
"NetworkInfo": {
"Type": "Custom::NetworkInfo",
"Properties": {
"ServiceToken": {
"Fn::Join": ["", [
"arn:aws:lambda:", {
"Ref": "AWS::Region"
}, ":", {
"Ref": "AWS::AccountId"
},
":function:DescribeCFStackOutputs"
]]
},
"StackName": {
"Ref": "VPCStackName"
}
}
},
"MercuryMinionInstanceSecurityGroup": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "Security Group for Minion Stack EC2 Instances",
"SecurityGroupEgress": [{
"CidrIp": "0.0.0.0/0",
"FromPort": "0",
"IpProtocol": "tcp",
"ToPort": "65535"
}, {
"CidrIp": "0.0.0.0/0",
"FromPort": "0",
"IpProtocol": "udp",
"ToPort": "65535"
}, {
"CidrIp": "0.0.0.0/0",
"FromPort": "0",
"IpProtocol": "-1",
"ToPort": "65535"
}
],
"SecurityGroupIngress": [{
"CidrIp": "0.0.0.0/0",
"FromPort": "0",
"IpProtocol": "-1",
"ToPort": "65535"
}
],
"VpcId": {
"Fn::GetAtt": [
"NetworkInfo",
"VpcId"
]
}
}
},
"MercuryMinionLaunchConfig": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Metadata": {
"AWS::CloudFormation::Init": {
"configSets": {
"setupall": [
"paramfile",
"logstash",
"cpumetriccollection",
"mongos",
"deploy"
]
},
"paramfile": {
"files": {
"/opt/conf/cf-params.txt": {
"content": {
"Fn::Join": ["", [
"accountid:", {
"Ref": "AWS::AccountId"
}, "\n",
"AdditionalJavaOpts:", {
"Ref": "AdditionalJavaOpts"
}, "\n",
"ApplicationVersion:", {
"Ref": "ApplicationVersion"
}, "\n",
"BranchName:", {
"Ref": "BranchName"
}, "\n",
"BuildNumber:", {
"Ref": "BuildNumber"
}, "\n",
"CFStackName:", {
"Ref": "AWS::StackName"
}, "\n",
"service:",{
"Ref" : "Service"
},"\n",
"MongoConfigDB:",{
"Ref": "MongoConfigDB"
}, "\n",
"MongosEnabled:",{
"Ref": "MongosEnabled"
}, "\n",
"Application:",{
"Ref" : "Application"
},"\n",
"GHXEnvironment:", {
"Ref": "GHXEnvironment"
}, "\n",
"InstanceType:", {
"Ref": "InstanceType"
}, "\n",
"KeyName:", {
"Ref": "KeyName"
}, "\n",
"region:", {
"Ref": "AWS::Region"
}, "\n",
"ScalingMax:", {
"Ref": "ScalingMax"
}, "\n",
"ScalingMin:", {
"Ref": "ScalingMin"
}, "\n",
"War:", {
"Ref": "War"
}, "\n",
"DeploymentBucket:", {
"Ref": "DeploymentBucket"
}, "\n",
"TestResultId:", {
"Ref": "TestResultId"
}, "\n"
]]
},
"mode": "000644",
"owner": "root",
"group": "root"
}
},
"commands": {
"01-createdirs": {
"command": "/bin/mkdir /opt/scripts; /bin/mkdir -p /opt/conf/; /bin/mkdir -p /var/log/cpumetric/;"
}
}
},
"logstash": {
"commands": {
"01-get-logstash-script": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/cf-config-logstash-jmx.py /opt/scripts/cf-config-logstash-jmx.py",
" ; chmod 744 /opt/scripts/cf-config-logstash-jmx.py"
]
]
}
},
"05-config-logstash": {
"command": "/opt/scripts/cf-config-logstash-jmx.py"
},
"11-get-start-ls": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/start-ls.sh /opt/scripts/start-ls.sh",
" ; chmod 744 /opt/scripts/start-ls.sh"
]
]
}
},
"15-start-logstash": {
"command": "/opt/scripts/start-ls.sh"
}
}
},
"cpumetriccollection": {
"commands": {
"01-get-testfwmetrics-cpu-script": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/cf-start-cpumetriccollection.py /opt/scripts/cf-start-cpumetriccollection.py",
" ; chmod 744 /opt/scripts/cf-start-cpumetriccollection.py"
]
]
}
},
"11-get-start-cpu": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/start-cpu.sh /opt/scripts/start-cpu.sh",
" ; chmod 744 /opt/scripts/start-cpu.sh"
]
]
}
},
"12-get-crontab": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://ghx-deployment/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/crontab /tmp/crontab",
" ; cat /tmp/crontab >> /etc/crontab"
]
]
}
},
"15-start-cpu": {
"command": "/opt/scripts/start-cpu.sh"
}
}
},
"mongos": {
"commands": {
"01-get-mongos-script": {
"command": {
"Fn::Join": [
"",
[
"aws s3 cp s3://",
{ "Ref": "DeploymentBucket" },
"/corex/",
{ "Ref": "ApplicationVersion" },"/",
{ "Ref": "BranchName" },"/",
{ "Ref": "BuildNumber" },
"/cf-deploy/scripts/cf-config-mongos.py /opt/scripts/cf-config-mongos.py",
" ; chmod 744 /opt/scripts/cf-config-mongos.py"
]
]
}
},
"05-config-mongos": {
"command": "/opt/scripts/cf-config-mongos.py"
}
}
},
"deploy": {
"files": {
"/etc/cfn/cfn-hup.conf": {
"content": {
"Fn::Join": [
"", [
"[main]\n",
"stack=", {
"Ref": "AWS::StackId"
},
"\n",
"region=", {
"Ref": "AWS::Region"
},
"\n",
"interval=1\n"
]
]
}
},
"/var/tmp/deployScript/prep.sh": {
"content": {
"Fn::Join": [
"", [
"#!/bin/bash",
"\n",
"date > /home/ec2-user/starttime\n",
"ipaddress=`curl http://169.254.169.254/latest/meta-data/local-ipv4`",
"\n",
"hostname=`/bin/hostname`",
"\n",
"echo \"$ipaddress $hostname\" >> /etc/hosts",
"\n",
"sed -E 's/connectionTimeout=\"[[:digit:]]+\"/connectionTimeout=\"285000\"/g' /etc/tomcat/server.xml > /etc/tomcat/server.xml.improved",
"\n",
"mv -f /etc/tomcat/server.xml.improved /etc/tomcat/server.xml",
"\n",
"cat /etc/tomcat/server.xml",
"\n",
"export environment='", {
"Ref": "GHXEnvironment"
},
"'\n",
"export region='", {
"Ref": "AWS::Region"
},
"'\n",
"export ADDOPTS='", {
"Ref": "AdditionalJavaOpts"
},
"'\n",
"if [ -e /etc/tomcat/tomcat.blank ]; then",
"\n",
" mv /etc/tomcat/tomcat.blank /etc/tomcat/tomcat.conf",
"\n",
"fi",
"\n",
"echo \"JAVA_OPTS='-Dlogger.level.egx=DEBUG -Dghx.configsvc.db.url=", {
"Ref": "configSVCurl"
},
"-Dghx.test-framework.db.url=", {
"Ref": "testFrameWorkURL"
},
" -Dghx.configsvc.db.pass=", {
"Ref": "configSVCpass"
},
" $ADDOPTS ",
"' \" >> /etc/tomcat/tomcat.conf\n",
"echo \"JMETER_HOME=/install/apache-jmeter-3.2 \" >> /etc/tomcat/tomcat.conf\n",
"\n",
"echo 'export SHUTDOWN_WAIT=300' >> /etc/tomcat/tomcat.conf",
"\n",
"sudo service tomcat start",
"\n"
]
]
},
"mode": "000777",
"owner": "root",
"group": "root"
}
},
"commands": {
"1-deploy-application": {
"command": "/var/tmp/deployScript/prep.sh"
}
}
}
}
},
"Properties": {
"IamInstanceProfile": {
"Fn::FindInMap": [
"Ec2Role", {
"Ref": "GHXEnvironment"
},
"Role"
]
},
"ImageId": {
"Fn::FindInMap": [ "AWSRegionArch2AMI", { "Ref": "AWS::Region" }, "AMIID" ]
},
"SecurityGroups": [{
"Ref": "MercuryMinionInstanceSecurityGroup"
}
],
"InstanceType": {
"Ref": "InstanceType"
},
"KeyName": {
"Ref": "KeyName"
},
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"", [
"#!/bin/bash",
"\n",
"yum update -y aws-cfn-bootstrap",
"\n",
"stackID='", {
"Ref": "AWS::StackId"
},
"'\n",
"echo 'RUN CFN-INIT NEXT'",
"\n",
"/opt/aws/bin/cfn-init -v -c setupall -s $stackID -r MercuryMinionLaunchConfig --region ", {
"Ref": "AWS::Region"
},
"\n",
"echo 'CFN-INIT SHOULD HAVE JUST RUN'",
"\n"
]
]
}
}
}
},
"MercuryMinionAutoScaling": {
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"AvailabilityZones": [{
"Fn::GetAtt": [
"NetworkInfo",
"AZ1"
]
}, {
"Fn::GetAtt": [
"NetworkInfo",
"AZ2"
]
}],
"MinSize": {
"Ref": "ScalingMin"
},
"MaxSize": {
"Ref": "ScalingMax"
},
"LaunchConfigurationName": {
"Ref": "MercuryMinionLaunchConfig"
},
"VPCZoneIdentifier": [{
"Fn::GetAtt": [
"NetworkInfo",
"PrivateSubnet1"
]
}, {
"Fn::GetAtt": [
"NetworkInfo",
"PrivateSubnet2"
]
}],
"Tags": [{
"Key": "uptimehours",
"Value": "24",
"PropagateAtLaunch": "true"
}, {
"Key": "service",
"Value": "corex-test-framework",
"PropagateAtLaunch": "true"
}, {
"Key": "owner",
"Value": "enhancedeliveryteam@ghx.com",
"PropagateAtLaunch": "true"
}, {
"Key": "Name",
"Value": {
"Ref": "TagName"
},
"PropagateAtLaunch": "true"
}
]
}
}
}
}
minion ls status update
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=,)'`
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\),.*/\1/'`
dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/'`
dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`
dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbconnection/test-framework
fi
#!/usr/bin/env bash
logstash=0;
host=$(hostname -I | awk '{print $1}')
logstash=$(ps -ef |grep logstash |wc -l)
if [ $logstash == 2 ]
then
db=`ps -ef |grep tomcat | grep -Po 'test-framework.db.url=mongodb\K(.*)(?=\/test)'`
dbconnection=`echo "$db" | sed -e 's/.*\/\(.*\)/\1/'`
dbhost=`echo "$dbconnection" | sed -e 's/.*@\(.*\).*/\1/'`
dbuserpassword=`echo "$dbconnection" | sed -e 's/\(.*\)@.*/\1/'`
dbuser=`echo "$dbuserpassword" | sed -e 's/\(.*\):.*/\1/'`
dbpassword=`echo "$dbuserpassword" | sed -e 's/.*:\(.*\).*/\1/'`
CMD="printjson(db.minions.insert({\"minionIp\":\"$host\",\"created\":{\"by\":\"system\",\"on\":ISODate()}}))"
/usr/bin/mongo -u $dbuser -p $dbpassword $dbhost/test-framework --eval $CMD
fi
package com.ghx.testframework.utils.helpers;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import com.ghx.common.log.GHXLogger;
import com.ghx.common.log.GHXLoggerFactory;
import com.ghx.testframework.utils.exception.TestFWServerException;
import lombok.NonNull;
/**
* Helps make GET calls to URL with retries.
*
* @author Andrei Basharkevich
* @since 8/31/2016.
*/
public class RequestTimeoutHelper {
private static final GHXLogger LOG = GHXLoggerFactory.getLogger(RequestTimeoutHelper.class);
private static RestTemplate restTemplate = new RestTemplate(new TFClientHttpRequestFactory(new TFHostnameVerifier()));
public static <T> ResponseEntity<T> performGetForEntity(String callName, String resultUrl, @NonNull Class<T> responseType, int failedRetriesNum,
int delayRetriesInSeconds) throws TestFWServerException {
final String responseTypeSimpleName = responseType.getSimpleName();
for (int retries = 1;; retries++) {
try {
TFHostnameVerifier tfHostnameVerifier = new TFHostnameVerifier();
CloseableHttpClient client = HttpClients.custom().setSSLHostnameVerifier(tfHostnameVerifier)
.setSSLContext(new TFClientHttpRequestFactory(tfHostnameVerifier).trustSelfSignedSSL()).build();
HttpComponentsClientHttpRequestFactory useApacheHttpClient = new HttpComponentsClientHttpRequestFactory();
useApacheHttpClient.setHttpClient(client);
RestTemplate restTemplate = new RestTemplate(useApacheHttpClient);
restTemplate.getForEntity(resultUrl, responseType);
ResponseEntity<T> result = Optional.ofNullable(restTemplate.getForEntity(resultUrl, responseType))
.orElseThrow(() -> new RestClientException(
String.format("fetched %s data from \"%s\" using URL=%s is NULL", responseTypeSimpleName, callName, resultUrl)));
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
System.out.println("restTemplate" + result);
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
return result;
} catch (RestClientException ex) {
LOG.warn("Failed {} time to retrieve {} from URL={}", retries, responseTypeSimpleName, resultUrl);
if (retries >= failedRetriesNum) {
String exMsg = String.format("failed with all %d attempts to fetch %s data from \"%s\" using URL: \"%s\"", failedRetriesNum,
responseTypeSimpleName, callName, resultUrl);
LOG.error(exMsg, ex);
throw new TestFWServerException(exMsg, ex);
}
try {
TimeUnit.SECONDS.sleep(delayRetriesInSeconds);
} catch (InterruptedException ignored) {
LOG.warn("Thread asked for interruption...");
throw new TestFWServerException(ignored);
}
}
}
}
}
long startTime1 = dateToEpochMilliConvertor(testResult.getCreated().on);
long endTime = dateToEpochMilliConvertor(testResult.getUpdated().on);
private static long toEpochMilli(Month month, int year) {
return toEpochMilli(month, 1, year);
}
private static long toEpochMilli(Month month, int day, int year) {
return LocalDate.of(year, month, day).atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli();
}
public static long dateToEpochMilliConvertor(Date date) {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Europe/Paris"));
cal.setTime(date);
long dateTimeInEpoch =toEpochMilli( Month.of(date.getMonth()), cal.get(Calendar.YEAR) );
LOGGER.info("dateTimeInEpoch {}",dateTimeInEpoch);
return dateTimeInEpoch;
}
public static void main(String[] args) {
long startTime = DateUtil.toEpochMilli(new Date().toInstant().atZone(ZoneId.systemDefault()));
System.out.println(">>>"+startTime);
}
1569868200000
1574050970497
$scope.$watch('actions', function (newActions, oldActions) {
newActions.forEach(function (action) {
action.Data.copyAction = setCopyActionValues();
action.Data.fromDocNamesList = angular.copy(fromDocNamesList);
});
}, true);
$scope.$watch('documentFormData.testcaseDefinition', function () {
if (angular.isDefined($scope.documentFormData)) {
if ($scope.documentInfo.length === 0 && angular.isDefined($scope.documentFormData.multipleDocumentInfoPageList)) {
$scope.documentInfo = $scope.documentFormData.multipleDocumentInfoPageList;
}
if ($scope.documentFormData.testcaseDefinition === 'Single Document') {
$scope.documentFormData.multipleDocumentInfoPageList = [$scope.documentInfo[0]];
} else {
$scope.documentFormData.multipleDocumentInfoPageList = $scope.documentInfo;
}
if ($scope.updateDocuments) {
$scope.documents = [];
angular.forEach($scope.documentForm.Data.multipleDocumentInfoPageList, function (document) {
rulesService.getActionDataModel('com.ghx.testframework.api.uiconfig.pages.MultipleDocumentInfoPage').then(function (response) {
$scope.documents.push({
DataModel: response,
Data: document,
});
});
});
}
}
});
$scope.$watch('documentForm.Data.testcaseDefinition', function () {
if (angular.isDefined($scope.documentForm.Data)) {
if ($scope.documentForm.Data.testcaseDefinition === 'Single Document') {
if ($scope.documents.length > 1) {
$scope.documents.splice(1, $scope.documents.length);
}
}
}
});
$scope.$watch('testCaseList', function () {
var numberOfFiles = [];
$scope.testCaseList.forEach(function (testCase) {
numberOfFiles.push(testCase.numberOfFiles);
});
$scope.numberOfFilesValid = !numberOfFiles.some(checkValid);
}, true);
@UIBehaviors({
@UIBehavior(type = BehaviorType.disable, conditions = @UICondition(field = "documentName", values = "")),
@UIBehavior(type = BehaviorType.readonly, conditions = @UICondition(field = "action", values = "", operation = ConditionOperation.NOT_IN))
})
var watchGroupArray = ['actions', 'documentFormData.testcaseDefinition', 'documentForm.Data.testcaseDefinition', 'testCaseList'];
$scope.$watchGroup(watchGroupArray, function(newValue, oldValue) {
if (newValue[0] !== oldValue[0]) {
newValue[0].forEach(function (action) {
action.Data.copyAction = setCopyActionValues();
action.Data.fromDocNamesList = angular.copy(fromDocNamesList);
});
}
if (newValue[1] !== oldValue[1]) {
if (angular.isDefined($scope.documentFormData)) {
if ($scope.documentInfo.length === 0 && angular.isDefined($scope.documentFormData.multipleDocumentInfoPageList)) {
$scope.documentInfo = $scope.documentFormData.multipleDocumentInfoPageList;
}
if ($scope.documentFormData.testcaseDefinition === 'Single Document') {
$scope.documentFormData.multipleDocumentInfoPageList = [$scope.documentInfo[0]];
} else {
$scope.documentFormData.multipleDocumentInfoPageList = $scope.documentInfo;
}
if ($scope.updateDocuments) {
$scope.documents = [];
angular.forEach($scope.documentForm.Data.multipleDocumentInfoPageList, function (document) {
rulesService.getActionDataModel('com.ghx.testframework.api.uiconfig.pages.MultipleDocumentInfoPage').then(function (response) {
$scope.documents.push({
DataModel: response,
Data: document,
});
});
});
}
}
}
if (newValue[2] !== oldValue[2] && angular.isDefined($scope.documentForm.Data)) {
if ($scope.documentForm.Data.testcaseDefinition === 'Single Document') {
if ($scope.documents.length > 1) {
$scope.documents.splice(1, $scope.documents.length);
}
}
}
if (newValue[3] !== oldValue[3]) {
var numberOfFiles = [];
$scope.testCaseList.forEach(function (testCase) {
numberOfFiles.push(testCase.numberOfFiles);
});
$scope.numberOfFilesValid = !numberOfFiles.some(checkValid);
}
});
TestFW-Replay-VPC-Setup-DEV-5cff2e6d47722e102803568a
Test
FW-R
epla
y-VP
C-Se
tup-
DEV-
5cff
2e6d
4772
2e10
2803
568a
corex-test-framework
corex-test-framework
corex-TestFramework-regapi
CustomResource attribute error: Vendor response doesn't contain LegacyPublicSubnet1 key in object arn:aws:cloudformation:us-west-2:050190852521:stack/TFWRGNLB5cff2e6d47722e102803568a/f4853fa0-8c01-11e9-81d6-025cdb5d2002|NetworkInfo|fc23a1c7-6529-4863-95ae-e31edc201ba2 in S3 bucket cloudformation-custom-resource-storage-uswest2
>>>184659756547
>>>819318376287
$location.path('testFramework/history').search({isPartialSearch: true});
if(angular.isDefined($location.search().isPartialSearch)){
isPartialSearch = $location.search().isPartialSearch;
}
route param /partial append to url
check $location.url
/:param=true
$routeParams will cause 404 page issue even 404 page loads current page
resolve in route params
broadcast on in angularjs ,emit on in angularjs.
API: elasticloadbalancingv2:DescribeTargetGroups User: arn:aws:sts::050190852521:assumed-role/test-framework/i-0aa6e6f966522e848 is not authorized to perform: elasticloadbalancing:DescribeTargetGroups
1. build jar s3
2. take jar with cF lambda deploy
3. rule create for lambda setup or deployment
ssh-keygen -f test.pub -e -m pem
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAq9zUQTMq1kaq9Ksta+GLPHG3mOVMkXeJdZsOI5q95xcvHzAC6gpJ
fQR86z0TWnm679T3Eb3U2uojIYg2exc/j4zqFXqbjdRLX0gr/lmohYDY5NfILVHJ
tpvqEqeKtpkDq9GFux7u8WZxSH2xhh/dpuipjeF3AYXVNXIzXMEyabw6O+G5/yLg
qESlWq9ZccV+dQdg5pHrODQhf7iJ1NB2rhRw78a58upNNtInCzTfsDopJvPNznvU
1HQ1GNM4i5r8mehue2oNwIdGjCOui/wAgdTv3WQ+AwfAYw85gvPNP4Ki/kiORQse
ewbhwgJwsI4RB6SH6BzNJEnc0GEqtS0NrQIDAQAB
-----END RSA PUBLIC KEY-----
""" This Lambda function is to delete instance of TFW service older than max day """
import os
import traceback
import datetime
from datetime import date
import calendar
import logging
import boto3
import json
from botocore.exceptions import ClientError
from dateutil.parser import parse
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)
CHARSET = 'UTF-8'
def lambda_handler(event, context):
# TODO implement
""" This handler is of python2.7 lambda function, we have weekly trigger too"""
ec2 = boto3.resource('ec2')
client = boto3.client('cloudformation')
elbList = boto3.client('elb')
response = client.describe_stacks()
bals = elbList.describe_load_balancers()
ec2instance = ec2.Instance('i-0b3b65611c52df25e')
for tags in ec2instance.tags:
if tags['Key'] == 'aws:cloudformation:stack-name':
instancename = tags['Value']
print(instancename)
#LOGGER.info("response %s", str(response))
for record in response['Stacks']:
#print(str(record['StackName']))
if record['StackName'] == instancename:
print(instancename)
"""client.delete_stack(StackName=branch_name)
logger.info('Stack deleted')
break
else:
logger.info('Stack %s does not exist. Ignoring...', branch_name)"""
print(bals)
for elb in bals['Instances']:
print(elb)
#print 'ELB DNS Name : ' + elb['DNSName']
#for ec2Id in elb['Instances']:
#running_instances = ec2.instances.filter(Filters=[{'Name': 'instance-id','Values': ['i-0b3b65611c52df25e']}])
#for instance in running_instances:
# print("Instance : " + str(instance.public_dns_name));
LOGGER.info('*************************************************************')
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
"""client.delete_stack(StackName=branch_name)
logger.info('Stack deleted')
break
else:
logger.info('Stack %s does not exist. Ignoring...', branch_name)"""
""" This Lambda function is to delete instance of TFW service older than max day """
import os
import traceback
import datetime
from datetime import date
import calendar
import logging
import boto3
import json
from botocore.exceptions import ClientError
from dateutil.parser import parse
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)
CHARSET = 'UTF-8'
def lambda_handler(event, context):
# TODO implement
""" This handler is of python2.7 lambda function, we have weekly trigger too"""
ec2 = boto3.resource('ec2')
client = boto3.client('cloudformation')
elbList = boto3.client('elb')
response = client.describe_stacks()
bals = elbList.describe_load_balancers()
ec2instance = ec2.Instance('i-02a19303989e2a18e')
for tags in ec2instance.tags:
if tags['Key'] == 'aws:cloudformation:stack-name':
instancename = tags['Value']
#print("instance Name"+instancename)
#LOGGER.info("response %s", str(response))
#for record in response['Stacks']:
#print(str(record['StackName']))
#if record['StackName'] == instancename:
#print(instancename)
#print(bals)
for elb in bals['LoadBalancerDescriptions']:
for ec2Id in elb['Instances']:
running_instances = \
ec2.instances.filter(Filters=[{'Name': 'Creation time'
, 'Values': ['September 27, 2019 at 10:01:38 AM UTC+5:30']}])
#print("instance:"+str(running_instances))
for instance in running_instances:
print(">>>>>>>>Instance : " + instance.public_dns_name);
#for instance in running_instances:
#print("Instance : " + instance.public_dns_name);
#print 'ELB DNS Name : ' + elb['DNSName']
#for ec2Id in elb['Instances']:
#running_instances = ec2.instances.filter(Filters=[{'Name': 'instance-id','Values': ['i-0b3b65611c52df25e']}])
#for instance in running_instances:
# print("Instance : " + str(instance.public_dns_name));
LOGGER.info('*************************************************************')
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
ieStickinessPolicies': [], u'OtherPolicies': ['ELBSecurityPolicy-2016-08']}, u'LoadBalancerName': 'CoreX-DEV-Processing-ELB', u'CreatedTime': datetime.datetime(2018, 7, 3, 12, 16, 50, 350000, tzinfo=tzlocal()), u'AvailabilityZones': ['us-west-2a', 'us-west-2b', 'us-west-2c'], u'Scheme': 'internal', u'SourceSecurityGroup': {u'OwnerAlias': '050190852521', u'GroupName': 'CoreX-DEV-Processing-ELB-ELBSecurityGroup-6TAB019J10PP'}}, {u'Subnets': ['subnet-72c7d206', 'subnet-821aefe7'], u'CanonicalHostedZoneNameID': 'Z1H1FL5HABSF5', u'VPCId': 'vpc-4434572f', u'ListenerDescriptions': [{u'Listener': {u'InstancePort': 8080, u'LoadBalancerPort': 80, u'Protocol': 'HTTP', u'InstanceProtocol': 'HTTP'}, u'PolicyNames': ['ELBPolicy']}, {u'Listener': {u'InstancePort': 8080, u'SSLCertificateId': 'arn:aws:acm:us-west-2:050190852521:certificate/e275f907-73ed-4651-9dc8-53a9666456e3', u'LoadBalancerPort': 443, u'Protocol': 'HTTPS', u'InstanceProtocol': 'HTTP'}, u'PolicyNames': ['ELBPolicy', 'ELBSecurityPolicy-2016-08']}], u'HealthCheck': {u'HealthyThreshold': 3, u'Interval': 30, u'Target': 'HTTP:8080/requisition/alive', u'Timeout': 5, u'UnhealthyThreshold': 5}, u'BackendServerDescriptions': [], u'Instances': [{u'InstanceId': 'i-0b6f79568eac6ff5e'}], u'DNSName': 'internal-GRS-UI-DEV-ELB-15160238.us-west-2.elb.amazonaws.com', u'SecurityGroups': ['sg-f0b91780'], u'Policies': {u'LBCookieStickinessPolicies': [{u'PolicyName': 'ELBPolicy', u'CookieExpirationPeriod': 0}], u'AppCookieStickinessPolicies': [], u'OtherPolicies': ['ELBSecurityPolicy-2016-08']}, u'LoadBalancerName': 'GRS-UI-DEV-ELB', u'CreatedTime': datetime.datetime(2018, 7, 10, 19, 23, 51, 310000, tzinfo=tzlocal()), u'AvailabilityZones': ['us-west-2a', 'us-west-2b'], u'Scheme': 'internal', u'SourceSecurityGroup': {u'OwnerAlias': '050190852521', u'GroupName': 'GRS-UI-ELB-DEV-ELBSecurityGroup-114CVBNH7IHUG'}}, {u'Subnets': ['subnet-3b192d7d', 'subnet-72c7d206', 'subnet-821aefe7'], u'CanonicalHostedZoneNameID': 'Z1H1FL5HABSF5', u'VPCId': 'vpc-4434572f', u'ListenerDescriptions': [{u'Listener': {u'InstancePort': 8080, u'SSLCertificateId': 'arn:aws:acm:us-west-2:050190852521:certificate/e275f907-73ed-4651-9dc8-53a9666456e3', u'LoadBalancerPort': 443, u'Protocol': 'HTTPS', u'InstanceProtocol': 'HTTP'}, u'PolicyNames': ['ELBSecurityPolicy-2016-08', 'ELBPolicy']}], u'HealthCheck': {u'HealthyThreshold': 3, u'Interval': 30, u'Target': 'HTTP:8080/rest/ping', u'Timeout': 5, u'UnhealthyThreshold': 5}, u'BackendServerDescriptions': [], u'Instances': [], u'DNSName': 'internal-test2-221910619.us-west-2.elb.amazonaws.com', u'SecurityGroups': ['sg-b4a836c4'], u'Policies': {u'LBCookieStickinessPolicies': [{u'PolicyName': 'ELBPolicy', u'CookieExpirationPeriod': 0}], u'AppCookieStickinessPolicies': [], u'OtherPolicies': ['ELBSecurityPolicy-2016-08']}, u'LoadBalancerName': 'test2', u'CreatedTime': datetime.datetime(2018, 7, 18, 7, 36, 30, 360000, tzinfo=tzlocal()), u'AvailabilityZones': ['us-west-2a', 'us-west-2b', 'us-west-2c'], u'Scheme': 'internal', u'SourceSecurityGroup': {u'OwnerAlias': '050190852521', u'GroupName': 'test2-ELBSecurityGroup-YNGU99O5FDZ7'}}, {u'Subnets': ['subnet-3b192d7d', 'subnet-72c7d206', 'subnet-821aefe7'], u'CanonicalHostedZoneNameID': 'Z1H1FL5HABSF5', u'VPCId': 'vpc-4434572f', u'ListenerDescriptions': [{u'Listener': {u'InstancePort': 8080, u'SSLCertificateId': 'arn:aws:acm:us-west-2:050190852521:certificate/e275f907-73ed-4651-9dc8-53a9666456e3', u'LoadBalancerPort': 443, u'Protocol': 'HTTPS', u'InstanceProtocol': 'HTTP'}, u'PolicyNames': ['ELBSecurityPolicy-2016-08', 'ELBPolicy']}], u'HealthCheck': {u'HealthyThreshold': 3, u'Interval': 30, u'Target': 'HTTP:8080/rest/ping', u'Timeout': 5, u'UnhealthyThreshold': 5}, u'BackendServerDescriptions': [], u'Instances': [], u'DNSName': 'internal-test3-697624997.us-west-2.elb.amazonaws.com', u'SecurityGroups': ['sg-c6ab35b6'], u'Policies': {u'LBCookieSEND RequestId: bb0d63e5-28b9-4d22-9a8a-b587f518414a
REPORT RequestId: bb0d63e5-28b9-4d22-9a8a-b587f518414a Duration: 5965.66 ms Billed Duration: 6000 ms Memory Size: 128 MB Max Memory Used: 68 MB
tokenizer
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-standard-tokenizer.html
lowercase normalizer vs keyword analyser
https://www.elastic.co/guide/en/elasticsearch/reference/current/normalizer.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-normalizers.html
lowercase token filter
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lowercase-tokenfilter.html
Token filter
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenfilters.html
keyword Marker Token filter
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-keyword-marker-tokenfilter.html
Keyword Tokenizer
https://www.elastic.co/guide/en/elasticsearch/reference/6.2/analysis-keyword-tokenizer.html#analysis-keyword-tokenizer
Keyword analyzer / lowercase filter
https://discuss.elastic.co/t/keyword-analyzer-lowercase-filter/5095/3
Custom Analyzer
https://www.elastic.co/guide/en/elasticsearch/reference/2.3/analysis-custom-analyzer.html#analysis-custom-analyzer
index not analyzed:
https://stackoverflow.com/questions/18235996/how-to-not-analyze-in-elasticsearch
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification-format.html
vpc-0b7b64507b7c4e0ec
TestFW-Replay-VPC-Setup-DEV-5d1a16f14e7e4c1020186666
service
corex-test-framework\
owner spkannan
service corex-test-framework
Name TFWRGNLB5d1a16f14e7e4c1020186666
PrivateSubnet1 subnet-08f029d189fca9b7f Private Subnet 1 ID
PrivateSubnet2 subnet-056bfb0994b72f9c2 Private Subnet 2 ID
PrivateSubnet3 subnet-056bfb0994b72f9c2 Private Subnet 2 ID
https://github.com/elastic/elasticsearch/pull/21009
https://www.elastic.co/guide/en/elasticsearch/reference/6.2/breaking_60_indices_changes.html
https://discuss.elastic.co/t/difference-between-index-patterns-and-template/184877
The key fingerprint is:
03:77:85:b0:26:51:49:83:d0:d3:d0:b2:16:59:4e:3b root@ip-10-51-208-137
The key's randomart image is:
+--[ RSA 2048]----+
| .ooXBo .. |
| B+++.. |
| o=E . |
| o= o |
| . S |
| . |
| |
| |
| |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
cc:3d:c3:4c:68:ce:95:73:f7:9e:34:32:44:57:dd:f4 root@ip-10-51-208-137
The key's randomart image is:
+--[ DSA 1024]----+
| . o*|
| . .. . +|
| o = ... E|
| * * o.. . |
| S * o o.|
| o +.o|
| ..|
| |
| |
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.
Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.
The key fingerprint is:
9e:79:04:b9:3a:b3:2b:5f:22:b2:87:d6:cb:b7:e2:f3 root@ip-10-51-208-137
The key's randomart image is:
+--[ECDSA 256]---+
| |
| . |
| o |
| o |
| S . |
| o + |
| .o. = = . |
| o+*..* . |
| ..o+OEo |
+-----------------+
Loaded plugins: priorities, update-motd, upgrade-helper
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: amzn-main/latest
Could not retrieve mirrorlist http://repo.us-west-2.amazonaws.com/latest/main/mirror.list error was
12: Timeout on http://repo.us-west-2.amazonaws.com/latest/main/mirror.list: (28, 'Connection timed out after 10001 milliseconds')
Aug 20 14:54:52 cloud-init[2351]: util.py[WARNING]: Package update failed
Loaded plugins: priorities, update-motd, upgrade-helper
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: amzn-main/latest
Could not retrieve mirrorlist http://repo.us-west-2.amazonaws.com/latest/main/mirror.list error was
12: Timeout on http://repo.us-west-2.amazonaws.com/latest/main/mirror.list: (28, 'Connection timed out after 10001 milliseconds')
Aug 20 14:55:03 cloud-init[2351]: util.py[WARNING]: Package upgrade failed
Aug 20 14:55:03 cloud-init[2351]: cc_package_update_upgrade_install.py[WARNING]: 2 failed with exceptions, re-raising the last one
Aug 20 14:55:03 cloud-init[2351]: util.py[WARNING]: Running package-update-upgrade-install (<module 'cloudinit.config.cc_package_update_upgrade_install' from '/usr/lib/python2.6/site-packages/cloudinit/config/cc_package_update_upgrade_install.pyc'>) failed
Generating SSH1 RSA host key: [ OK ]
Starting sshd: [ OK ]
ntpdate: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
Starting cloud-init: Cloud-init v. 0.7.2 running 'modules:final' at Tue, 20 Aug 2019 14:55:48 +0000. Up 84.11 seconds.
""" This Lambda function is to delete instance of TFW service older than max day """
import os
import traceback
import datetime
from datetime import date
import calendar
import logging
import boto3
from botocore.exceptions import ClientError
from dateutil.parser import parse
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)
CHARSET = 'UTF-8'
def delete_instance_handler(event, context):
""" This handler is of python2.7 lambda function, we have weekly trigger too"""
ec2 = boto3.resource('ec2')
filter_service = os.environ.get("filter_service")
max_holding_days = os.environ.get("max_holding_days")
deletion_per_week_on = os.environ.get("deletion_per_week_on")
filter_for_max_days = os.environ.get("filter_for_max_days").split(",")
filter_for_weekly_deletion = os.environ.get("filter_for_weekly_deletion").split(",")
test_framework_maintainer = os.environ.get("test_framework_maintainer").split(",")
LOGGER.info('This is an info message')
LOGGER.info("Max_Holding_Days: %s", max_holding_days)
LOGGER.info("For Max holding days ,Instance tag with Name Containing: %s"\
, filter_for_max_days)
LOGGER.info("For Weekly deletion ,Instance tag with Name Containing: %s"\
, filter_for_weekly_deletion)
i = 0
while i < len(filter_for_max_days):
filter_for_max_days[i] = "*"+filter_for_max_days[i]+"*"
i += 1
i = 0
while i < len(filter_for_weekly_deletion):
filter_for_weekly_deletion[i] = "*"+filter_for_weekly_deletion[i]+"*"
i += 1
instance_for_weekly_deletion = ec2.instances.filter(Filters=[{'Name': 'tag:Name',\
'Values': filter_for_weekly_deletion},\
{'Name': 'tag:service', 'Values': [filter_service]}])
instance_deletion = []
for instance in instance_for_weekly_deletion:
if calendar.day_name[datetime.datetime.today().weekday()] == deletion_per_week_on:
LOGGER.info("Today is Saturday, Going to delete instances %s", instance.id)
instance_deletion.append(instance.id)
instance_for_max_days = ec2.instances.filter(Filters=[{'Name': 'tag:Name',\
'Values': filter_for_max_days},\
{'Name': 'tag:service', 'Values': [filter_service]}])
for instance in instance_for_max_days:
launch_time_today_difference = (parse(date.isoformat(date.today())))-(parse(date\
.isoformat(instance.launch_time)))
if launch_time_today_difference.days > int(max_holding_days):
LOGGER.info("Going beyond max holding day: %s, Going to delete instances: %s",\
max_holding_days, instance.id)
instance_deletion.append(instance.id)
LOGGER.info('*************************************************************')
LOGGER.info("The Instances that will be deleted are: %s", instance_deletion)
LOGGER.info("Total: %s", len(instance_deletion))
if instance_deletion:
ec2.instances.filter(InstanceIds=instance_deletion).terminate()
send_mail("ec2-alerts@ghx.com", test_framework_maintainer,\
"Test Framework Ec2 Instance Maintenance Update",\
"The Instances that will be deleted are:" + "\n".join(instance_deletion))
else:
send_mail("ec2-alerts@ghx.com", test_framework_maintainer,\
"Test Framework Ec2 Instance Maintenance Update",\
"No Instances deleted." + "\n".join(instance_deletion))
LOGGER.info('*************************************************************')
def send_mail(sender, recipients, subject, result_msg):
""" This part of code is to send mail to maintainer"""
try:
client = boto3.client('ses', 'us-east-1')
client.send_email(Destination={'ToAddresses': recipients},\
Message={'Body': {'Text': {'Charset': CHARSET, 'Data': result_msg}},\
'Subject': {'Charset': CHARSET, 'Data': subject}}, Source=sender)
except ClientError as exception:
LOGGER.info(exception)
traceback.print_exc()
-------------------------------------------------------------------------------------------
""" This Lambda function is to delete instance of TFW service older than max day """
import os
import traceback
import datetime
from datetime import date
import calendar
import logging
import boto3
from dateutil.parser import parse
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def delete_instance_handler(event, context):
""" This handler is of python2.7 lambda function, we have weekly trigger too"""
logger = logging.getLogger()
ec2 = boto3.resource('ec2')
filter_service = os.environ.get("filter_service")
max_holding_days = os.environ.get("max_holding_days")
deletion_per_week_on = os.environ.get("deletion_per_week_on")
filter_for_max_days = os.environ.get("filter_for_max_days").split(",")
filter_for_weekly_deletion = os.environ.get("filter_for_weekly_deletion").split(",")
test-framework-maintainer = os.environ.get("test-framework-maintainer").split(",")
logger.info('This is an info message')
logger.info("Max_Holding_Days: %s", max_holding_days)
logger.info("For Max holding days ,Instance tag with Name Containing: %s"\
, filter_for_max_days)
logger.info("For Weekly deletion ,Instance tag with Name Containing: %s"\
, filter_for_weekly_deletion)
i = 0
while i < len(filter_for_max_days):
filter_for_max_days[i] = "*"+filter_for_max_days[i]+"*"
i += 1
i = 0
while i < len(filter_for_weekly_deletion):
filter_for_weekly_deletion[i] = "*"+filter_for_weekly_deletion[i]+"*"
i += 1
instance_for_weekly_deletion = ec2.instances.filter(Filters=[{'Name': 'tag:Name',\
'Values': filter_for_weekly_deletion},\
{'Name': 'tag:service', 'Values': [filter_service]}])
instance_deletion = []
for instance in instance_for_weekly_deletion:
if calendar.day_name[datetime.datetime.today().weekday()] == deletion_per_week_on:
logger.info("Today is Saturday, Going to delete instances %s", instance.id)
instance_deletion.append(instance.id)
instance_for_max_days = ec2.instances.filter(Filters=[{'Name': 'tag:Name',\
'Values': filter_for_max_days},\
{'Name': 'tag:service', 'Values': [filter_service]}])
for instance in instance_for_max_days:
launch_time_today_difference = (parse(date.isoformat(date.today())))-(parse(date\
.isoformat(instance.launch_time)))
if launch_time_today_difference.days > int(max_holding_days):
logger.info("Going beyond max holding day: %s, Going to delete instances: %s",\
max_holding_days, instance.id)
instance_deletion.append(instance.id)
logger.info('*************************************************************')
logger.info("The Instances that will be deleted are: %s", instance_deletion)
logger.info("Total: %s", len(instance_deletion))
if instance_deletion:
ec2.instances.filter(InstanceIds=instance_deletion).terminate()
send_mail("ec2-alerts@ghx.com", test-framework-maintainer, \
"Test Framework Ec2 Instance Maintenance Update",
"The Instances that will be deleted are:" + "\n".join(instance_deletion))
logger.info('*************************************************************')
def send_mail(sender, recipients, subject, result_msg):
CHARSET = 'UTF-8'
try:
client = boto3.client('ses', 'us-east-1')
response = client.send_email(Destination={'ToAddresses': recipients},\
Message={'Body': {'Text': {'Charset': CHARSET, 'Data': result_msg}},\
'Subject': {'Charset': CHARSET, 'Data': subject}}, Source=sender)
except:
pass
traceback.print_exc()
-----------------------------------------------------------------------------------------
anaconda spyder boto installation done
https://wiki.math.ntnu.no/anaconda/start
Nancy, 10:36A Sample Code to Run NSQL:
curl -H “Accept: application/json” -H “X-Query-Key: 3svUzpu2DcoKGNzi1P6fs_TQf1SR27bx” “https://insights-api.newrelic.com/v1/accounts/1550954/query?nrql=SELECT%20max(jvm.mem.heapUsed)%20FROM%20ElasticsearchNodeSample%20WHERE%20label.escluster%20%3D%20%27corex_prd_es_bt_east%27%20TIMESERIES%20since%20yesterday%20FACET%20displayName%20LIMIT%201000”
/aws/lambda/TFW_Delete_Stacks
summary = 2 in 00:00:02 = 1.0/s Avg: 1046 Min: 1046 Max: 1046 Err: 0 (0.00%)
summary + 5 in 00:01:13 = 0.1/s Avg: 114 Min: 75 Max: 128 Err: 0 (0.00%) Active: 2 Started: 6 Finished: 4
summary + 5 in 00:01:12 = 0.1/s Avg: 151 Min: 86 Max: 352 Err: 0 (0.00%) Active: 0 Started: 10 Finished: 10
summary = 10 in 00:02:25 = 0.1/s Avg: 132 Min: 75 Max: 352 Err: 0 (0.00%)
public static void main(String args[]) {
int totalDocs = 10;
int durationInMinutes = 300 / 60;
int loopCount = 120 / 60;
double tempRampUpDocRate = totalDocs / durationInMinutes;
double rampUpDocRate = tempRampUpDocRate / loopCount;
for (int i = 1; i <= loopCount; i++) {
System.out.println((int) (rampUpDocRate*i) + " " + (i - 1)*60);
}
}
Here is an example to use the REST API Key:
curl -X GET ’https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json' -H ‘X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd’ -i -G -d ‘names[]=Memory/Physical&values[]=used_mb_by_host&summarize=false’
Hesheng Li 10:32 PM
Hi, please use the REST Api Key for our REST call purpose: ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd. Please do NOT share this outside of our team. Thank you very much!
Hesheng Li 8:39 PM
A Sample Code to Run NSQL:
curl -H “Accept: application/json” -H “X-Query-Key: 3svUzpu2DcoKGNzi1P6fs_TQf1SR27bx” “https://insights-api.newrelic.com/v1/accounts/1550954/query?nrql=SELECT%20max(jvm.mem.heapUsed)%20FROM%20ElasticsearchNodeSample%20WHERE%20label.escluster%20%3D%20%27corex_prd_es_bt_east%27%20TIMESERIES%20since%20yesterday%20FACET%20displayName%20LIMIT%201000”
Hesheng Li 8:35 PM
New Relic API Explorer:
https://docs.newrelic.com/docs/apis/rest-api-v2/api-explorer-v2/introduction-new-relics-rest-api-explorer
https://docs.newrelic.com/docs/insights/insights-api/get-data/query-insights-event-data-api#cURL
docs.newrelic.comdocs.newrelic.com
Introduction to New Relic's REST API Explorer | New Relic Documentation
With New Relic's REST API Explorer v2, you can browse available API endpoints, interact with the API in a user interface, and view a live documentation source.
docs.newrelic.comdocs.newrelic.com
Query Insights event data via API | New Relic Documentation
Use the New Relic Insights API and a query key to make remote queries to the events database via a standard HTTPS request.
New Relic Insights Event Data API:
https://docs.newrelic.com/docs/insights/insights-api/get-data/query-insights-event-data-api#cURL
Scott Meine 9:17 PM
You all have newly created New Relic accounts.. You will need to click the link in the activation email from New Relic to complete the sign up process. If you have any issues let me know. Here is the links to our dashboard we are using. Same data but different views:
https://insights.newrelic.com/accounts/1550954/dashboards/785488https://one.newrelic.com/launcher/dashboards.launcher#launcher=eyJ0aW1lUmFuZ2UiOnsiYmVnaW5fdGltZSI6bnVsbCwiZW5kX3RpbWUiOm51bGwsImR1cmF0aW9uIjoxMDgwMDAwMH19&pane=eyJuZXJkbGV0SWQiOiJkYXNoYm9hcmRzLmRhc2hib2FyZCIsImVudGl0eUlkIjoiTVRVMU1EazFOSHhXU1ZwOFJFRlRTRUpQUVZKRWZEYzROVFE0T0EiLCJpc1RlbXBsYXRlRW1wdHkiOmZhbHNlfQ== (edited)
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at java.io.FileWriter.<init>(FileWriter.java:78)
at com.ghx.testframework.minion.TestScenarioExecutor.generateCSVFile(TestScenarioExecutor.java:334)
at com.ghx.testframework.minion.TestScenarioExecutor.generateMetaData(TestScenarioExecutor.java:293)
at com.ghx.testframework.minion.TestScenarioExecutor.generateSourceFilesAndMetaData(TestScenarioExecutor.java:483)
at com.ghx.testframework.minion.TestScenarioExecutor.generateSRCFilesAndMetaDataFromMap(TestScenarioExecutor.java:518)
at com.ghx.testframework.minion.TestScenarioExecutor.triggerTestScenarioExecution(TestScenarioExecutor.java:141)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
https://rpm.newrelic.com/accounts/1550954/applications/181703790/
curl -X GET "https://api.newrelic.com/v2/applications/${APP_ID}/hosts/${HOST_ID}/metrics/data.json" \
-H "X-Api-Key:${API_KEY}" -i \
-d 'names[]=CPU/User+Time&values[]=percent&summarize=true'
curl -X GET 'https://api.newrelic.com/v2/applications/1550954/hosts/100540676/metrics/data.json' \
-H 'X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd' -i \
-G -d 'name=CPU/User+Time&values[]=percent&summarize=true'
curl -X GET "https://api.newrelic.com/v2/applications/${APP_ID}/hosts/${HOST_ID}/metrics/data.json" \
-H "X-Api-Key:${API_KEY}" -i \
-d 'names[]=CPU/User+Time&values[]=percent&summarize=true'
curl -H “Accept: application/json” -H “X-Query-Key: 3svUzpu2DcoKGNzi1P6fs_TQf1SR27bx” “https://insights-api.newrelic.com/v1/accounts/1550954/query?nrql=SELECT%20max(jvm.mem.heapUsed)%20FROM%20ElasticsearchNodeSample%20WHERE%20label.escluster%20%3D%20%27corex_prd_es_bt_east%27%20TIMESERIES%20since%20yesterday%20FACET%20displayName%20LIMIT%201000”
curl -X GET "https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -G -d "names[]=Memory/Physical&values[]=used_mb_by_host&summarize=false"
curl -X GET "https://api.newrelic.com/v2/applications/106290685/hosts/10-31-59-187/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "names[]=CPU/User+Time&values[]=percent&summarize=true"
curl -X GET "https://api.newrelic.com/v2/applications/1550954/hosts/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "names[]=CPU/User+Time&values[]=percent&summarize=true"
ip-10-31-59-187.us-west-2.compute.internal
curl -X GET 'https://api.newrelic.com/v2/applications.json' \
-H 'X-Api-Key:${API_KEY}' -i \
-d 'filter[ids]=1441' <----<<<< {APP_ID}
curl -X GET "https://api.newrelic.com/v2/applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[ids]=106290685" <----<<<< {APP_ID}
curl -X GET 'https://api.newrelic.com/v2/applications.json' -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i
curl -X GET 'https://api.newrelic.com/v2/applications.json' \
-H "X-Api-Key:${API_KEY}" -i
DEV-io-engine:
DataPoller:
PRD-data-poller:
{"id":181703790,"name":"DEV-io-engine","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}}
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[ids]=106290685"
HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 1414
Content-Type: application/json
Date: Fri, 11 Oct 2019 10:57:43 GMT
Etag: "cc158675e837579662f9e640f909f465"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: f9436e8a33c456020562acd15495e185
X-Runtime: 0.120215
X-Ua-Compatible: IE=Edge,chrome=1
{"applications":[{"id":106290685,"name":"PRD-processing-engine","language":"java","health_status":"green","reporting":true,"last_reported_at":"2019-10-11T10:55:42+00:00","application_summary":{"response_time":3.94,"throughput":1340.0,"error_rate":0.0038,"apdex_target":0.45,"apdex_score":0.99,"host_count":20,"instance_count":20},"settings":{"app_apdex_threshold":0.45,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[206686482,217549492,218636037,221527175,228655212,232862911,236369788,244623432,245006087,248050719,255543337,264646257,266196516,296906390,296906556,296906580,296906590,296906621,296906646,296906805],"servers":[],"application_hosts":[206685988,209016102,218635479,219645700,228654829,217654551,217299150,209016204,245005124,232862284,219999939,264645718,239676400,214809424,231349017,267750633,236765282,217654940,296905846,296905934]}}],"links":{"application.servers":"/v2/servers?ids={server_ids}","application.server":"/v2/servers/{server_id}","application.application_hosts":"/v2/application/{application_id}/hosts?ids={host_ids}","application.application_host":"/v2/application/{application_id}/hosts/{host_id}","application.application_instances":"/v2/application/{application_id}/instances?ids={instance_ids}","application.application_instance":"/v2/application/{application_id}/instances/{instance_id}"}}
(base) sys-user@SMI-243:~$ curl -X GET 'https://api.newrelic.com/v2/applications.json' -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i
HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 35707
Content-Type: application/json
Date: Fri, 11 Oct 2019 11:08:02 GMT
Etag: "000510f622ee52755990dfcc771aeac0"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 935844b26abfc71ad8f29ee12a091293
X-Runtime: 2.022720
X-Ua-Compatible: IE=Edge,chrome=1
{
"applications":[
{
"id":197888116,
"name":"Analytics.ghx.com (Tableau)",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:39+00:00",
"application_summary":{
"response_time":0.856,
"throughput":11.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":8
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":false,
"use_server_side_config":false
},
"links":{
"application_instances":[
228550821,
228551020,
228551044,
228551065,
228551076,
228778743,
228778770,
228778775
],
"servers":[
],
"application_hosts":[
228550820
]
}
},
{
"id":248422471,
"name":"APS",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:53+00:00",
"application_summary":{
"response_time":174.0,
"throughput":82.3,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.93,
"host_count":4,
"instance_count":4
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
248422474,
248424185,
248426225,
248427390
],
"servers":[
],
"application_hosts":[
248422473,
248424184,
248426224,
248427389
]
}
},
{
"id":268703513,
"name":"CCM",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:04+00:00",
"application_summary":{
"response_time":2110.0,
"throughput":0.667,
"error_rate":0.0,
"apdex_target":0.5,
"host_count":2,
"concurrent_instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
268704401,
268706484
],
"servers":[
],
"application_hosts":[
198227787,
198148936
]
}
},
{
"id":213934416,
"name":"connectplus-api-DEV",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:50+00:00",
"application_summary":{
"response_time":3.79,
"throughput":72.7,
"error_rate":0.0229,
"apdex_target":0.5,
"apdex_score":0.97,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
268545411
],
"servers":[
],
"application_hosts":[
222459014
]
}
},
{
"id":272171087,
"name":"connectplus-api-DEVINT",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:57+00:00",
"application_summary":{
"response_time":21.9,
"throughput":4.33,
"error_rate":0.0769,
"apdex_target":0.5,
"apdex_score":0.92,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
272308573,
272317535
],
"servers":[
],
"application_hosts":[
205425282,
272317534
]
}
},
{
"id":271031203,
"name":"connectplus-api-STG",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:56+00:00",
"application_summary":{
"response_time":21.6,
"throughput":52.3,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":3,
"instance_count":3
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
271754233,
280355272,
296958546
],
"servers":[
],
"application_hosts":[
271754232,
280355271,
202239298
]
}
},
{
"id":213929155,
"name":"connectplus-fleet-DEV",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:48+00:00",
"application_summary":{
"response_time":7.28,
"throughput":7.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296636753
],
"servers":[
],
"application_hosts":[
216186579
]
}
},
{
"id":272257402,
"name":"connectplus-fleet-DEVINT",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:00+00:00",
"application_summary":{
"response_time":7.42,
"throughput":6.67,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
272257403
],
"servers":[
],
"application_hosts":[
202849634
]
}
},
{
"id":267457400,
"name":"connectplus-fleet-STG",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:19+00:00",
"application_summary":{
"response_time":49.1,
"throughput":64.7,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.98,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296952875
],
"servers":[
],
"application_hosts":[
223373368
]
}
},
{
"id":108891621,
"name":"CSD01",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:04+00:00",
"application_summary":{
"response_time":22.1,
"throughput":14.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
108891763
],
"servers":[
],
"application_hosts":[
108891622
]
}
},
{
"id":181703790,
"name":"DEV-io-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":126419871,
"name":"DEV-ui-mex",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":138830856,
"name":"DEV2-grs-catalog",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":135865090,
"name":"DEV2-grs-posu",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":135678450,
"name":"DEV2-grs-ui",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":83812995,
"name":"DEVINT-identity-service",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":106111994,
"name":"DEVINT-io-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":106112109,
"name":"DEVINT-processing-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":34607064,
"name":"DEVINT-regapi-ws",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":34606481,
"name":"DEVINT-ui-heimdall",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":97116442,
"name":"DEVINT-ui-mex",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":34607048,
"name":"DEVINT-universal-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":104246402,
"name":"EIN02",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":176903016,
"name":"EUDEV-docstore-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":177147835,
"name":"EUSTG-docstore-engine",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:14+00:00",
"application_summary":{
"response_time":0.96,
"throughput":5.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
264387801
],
"servers":[
],
"application_hosts":[
264387800
]
}
},
{
"id":207720484,
"name":"INT-grs-catalog",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:49+00:00",
"application_summary":{
"response_time":0.323,
"throughput":24.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
217246730,
283016701
],
"servers":[
],
"application_hosts":[
217204380,
283016700
]
}
},
{
"id":207720649,
"name":"INT-grs-posu",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:17+00:00",
"application_summary":{
"response_time":5.01,
"throughput":40.7,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
283015887
],
"servers":[
],
"application_hosts":[
283015886
]
}
},
{
"id":207720733,
"name":"INT-grs-ui",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:51+00:00",
"application_summary":{
"response_time":0.912,
"throughput":24.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
288120107,
288122760
],
"servers":[
],
"application_hosts":[
217324537,
267371991
]
}
},
{
"id":153078747,
"name":"intaci10",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":143411393,
"name":"INTCSD",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:41+00:00",
"application_summary":{
"response_time":2.59,
"throughput":2.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
143411497,
143411783
],
"servers":[
],
"application_hosts":[
138844992,
143411584
]
}
},
{
"id":138844991,
"name":"INTCSD01",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":143763961,
"name":"intein01",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":153054313,
"name":"intncs01",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:06+00:00",
"application_summary":{
"response_time":3.6,
"throughput":1.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
153054315
],
"servers":[
],
"application_hosts":[
153054314
]
}
},
{
"id":99698354,
"name":"INTNPM01",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":225320424,
"name":"LOAD-io-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":225320513,
"name":"LOAD-jobs",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":225320396,
"name":"LOAD-processing-engine",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":225320486,
"name":"LOAD-ui-mex",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":201331031,
"name":"MarketIntelligence",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:15+00:00",
"application_summary":{
"response_time":0.0,
"throughput":0.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
271969229,
271971312
],
"servers":[
],
"application_hosts":[
203595364,
36614976
]
}
},
{
"id":162398907,
"name":"MI-Production-Appsrv1",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":162405069,
"name":"MI-Production-Appsrv2",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":192890026,
"name":"Nuvia",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:03+00:00",
"application_summary":{
"response_time":769.0,
"throughput":10.7,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.95,
"host_count":2,
"instance_count":2
},
"end_user_summary":{
"response_time":0.128,
"throughput":0.333,
"apdex_target":7.0,
"apdex_score":1.0
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
192890027,
192890296
],
"servers":[
],
"application_hosts":[
82636235,
82657301
]
}
},
{
"id":82641497,
"name":"Nuvia CAP02",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":172572653,
"name":"Nuvia Customer Service NCS02",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:11+00:00",
"application_summary":{
"response_time":10.8,
"throughput":2.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
172572655
],
"servers":[
],
"application_hosts":[
172572654
]
}
},
{
"id":84225002,
"name":"Nuvia NCM40",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":33561864,
"name":"Nuvia NCM41",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":82648726,
"name":"Nuvia NPR02",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":true
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":287592790,
"name":"Nuvia-STG",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":35917747,
"name":"Phoweb02-p",
"language":"dotnet",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:59+00:00",
"application_summary":{
"response_time":428.0,
"throughput":60.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.86,
"host_count":1,
"instance_count":1
},
"end_user_summary":{
"response_time":3.74,
"throughput":15.3,
"apdex_target":7.0,
"apdex_score":1.0
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
35917748
],
"servers":[
],
"application_hosts":[
35809505
]
}
},
{
"id":167546221,
"name":"PI2-Production-Appsrv",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":167584577,
"name":"PI2-Production-Appsrv2",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:08+00:00",
"application_summary":{
"response_time":0.0,
"throughput":0.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
167584579
],
"servers":[
],
"application_hosts":[
167584578
]
}
},
{
"id":37155742,
"name":"PRD-data-poller",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:21+00:00",
"application_summary":{
"response_time":0.576,
"throughput":60.0,
"error_rate":0.0,
"apdex_target":0.02,
"apdex_score":1.0,
"host_count":10,
"instance_count":10
},
"settings":{
"app_apdex_threshold":0.02,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
228738012,
236843949,
250037892,
253518795,
254703831,
282363273,
296906575,
296906779,
296906861,
296906917
],
"servers":[
],
"application_hosts":[
228737449,
221525871,
241446672,
231771261,
217589005,
253218905,
253500349,
206685780,
231771410,
217696143
]
}
},
{
"id":112036744,
"name":"PRD-grs-catalog",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:58+00:00",
"application_summary":{
"response_time":58.0,
"throughput":50.7,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.99,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
295567044,
295568611
],
"servers":[
],
"application_hosts":[
295567043,
40091735
]
}
},
{
"id":209015049,
"name":"PRD-grs-posu",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:59+00:00",
"application_summary":{
"response_time":0.672,
"throughput":4.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
288385875
],
"servers":[
],
"application_hosts":[
85431492
]
}
},
{
"id":112039849,
"name":"PRD-grs-ui",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:45+00:00",
"application_summary":{
"response_time":83.4,
"throughput":84.3,
"error_rate":0.0117,
"apdex_target":0.5,
"apdex_score":0.97,
"host_count":2,
"instance_count":2
},
"end_user_summary":{
"response_time":4.31,
"throughput":1.33,
"apdex_target":7.0,
"apdex_score":0.88
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
295567212,
295569837
],
"servers":[
],
"application_hosts":[
49050913,
51321856
]
}
},
{
"id":84499985,
"name":"PRD-identity-service",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:42+00:00",
"application_summary":{
"response_time":46.6,
"throughput":849.0,
"error_rate":0.009,
"apdex_target":0.18,
"apdex_score":0.94,
"host_count":4,
"instance_count":4
},
"end_user_summary":{
"response_time":2.96,
"throughput":8.33,
"apdex_target":7.0,
"apdex_score":1.0
},
"settings":{
"app_apdex_threshold":0.18,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296944207,
296944211,
296944292,
296944360
],
"servers":[
],
"application_hosts":[
74078936,
56717979,
47843570,
83552562
]
}
},
{
"id":106290736,
"name":"PRD-io-engine",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:19+00:00",
"application_summary":{
"response_time":648.0,
"throughput":4880.0,
"error_rate":0.0065,
"apdex_target":0.95,
"apdex_score":0.95,
"host_count":9,
"instance_count":9
},
"settings":{
"app_apdex_threshold":0.95,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
219646204,
226163137,
231388008,
253154996,
296906230,
296906341,
296906350,
296906426,
296925369
],
"servers":[
],
"application_hosts":[
219645969,
226163018,
231387783,
253154793,
296905755,
296905759,
296905767,
296905809,
296924678
]
}
},
{
"id":34932269,
"name":"PRD-jobs",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:45+00:00",
"application_summary":{
"response_time":0.632,
"throughput":36.0,
"error_rate":0.0,
"apdex_target":0.49,
"apdex_score":1.0,
"host_count":6,
"instance_count":6
},
"settings":{
"app_apdex_threshold":0.49,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
228738120,
270901342,
284172544,
292449503,
296906878,
297012909
],
"servers":[
],
"application_hosts":[
228737492,
209016257,
284170827,
292448194,
218635644,
297011288
]
}
},
{
"id":106290685,
"name":"PRD-processing-engine",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:42+00:00",
"application_summary":{
"response_time":4.56,
"throughput":1590.0,
"error_rate":0.0043,
"apdex_target":0.45,
"apdex_score":0.99,
"host_count":20,
"instance_count":20
},
"settings":{
"app_apdex_threshold":0.45,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
206686482,
217549492,
218636037,
221527175,
228655212,
232862911,
236369788,
244623432,
245006087,
248050719,
255543337,
264646257,
266196516,
296906390,
296906556,
296906580,
296906590,
296906621,
296906646,
296906805
],
"servers":[
],
"application_hosts":[
206685988,
209016102,
218635479,
219645700,
228654829,
217654551,
217299150,
209016204,
245005124,
232862284,
219999939,
264645718,
239676400,
214809424,
231349017,
267750633,
236765282,
217654940,
296905846,
296905934
]
}
},
{
"id":34870635,
"name":"PRD-regapi-ws",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:06+00:00",
"application_summary":{
"response_time":126.0,
"throughput":1230.0,
"error_rate":0.0,
"apdex_target":0.27,
"apdex_score":0.99,
"host_count":8,
"instance_count":8
},
"settings":{
"app_apdex_threshold":0.27,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296906512,
296906744,
296906755,
296906789,
296913319,
296913358,
296913480,
296913761
],
"servers":[
],
"application_hosts":[
236369363,
236369610,
209884672,
207770390,
296912163,
296912091,
296912160,
296912133
]
}
},
{
"id":34870175,
"name":"PRD-ui-heimdall",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:39+00:00",
"application_summary":{
"response_time":150.0,
"throughput":650.0,
"error_rate":0.0018,
"apdex_target":0.17,
"apdex_score":0.95,
"host_count":4,
"instance_count":4
},
"end_user_summary":{
"response_time":2.17,
"throughput":5.0,
"apdex_target":3.9,
"apdex_score":0.9
},
"settings":{
"app_apdex_threshold":0.17,
"end_user_apdex_threshold":3.9,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296902222,
296907802,
296907863,
296908137
],
"servers":[
],
"application_hosts":[
257907554,
239358311,
280544498,
236842848
]
}
},
{
"id":55961112,
"name":"PRD-ui-invoicing",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:40+00:00",
"application_summary":{
"response_time":62.2,
"throughput":444.0,
"error_rate":0.0,
"apdex_target":0.12,
"apdex_score":0.94,
"host_count":4,
"instance_count":4
},
"end_user_summary":{
"response_time":2.28,
"throughput":3.0,
"apdex_target":6.1,
"apdex_score":1.0
},
"settings":{
"app_apdex_threshold":0.12,
"end_user_apdex_threshold":6.1,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
296906469,
296906484,
296906509,
296906786
],
"servers":[
],
"application_hosts":[
233233624,
219999882,
270900400,
244622778
]
}
},
{
"id":35994484,
"name":"PRD-ui-mex",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:39+00:00",
"application_summary":{
"response_time":55.4,
"throughput":1220.0,
"error_rate":0.0,
"apdex_target":0.52,
"apdex_score":0.98,
"host_count":10,
"instance_count":10
},
"end_user_summary":{
"response_time":4.39,
"throughput":6.33,
"apdex_target":3.8,
"apdex_score":0.79
},
"settings":{
"app_apdex_threshold":0.52,
"end_user_apdex_threshold":3.8,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
221527116,
238920796,
252234057,
296906332,
296906483,
296906494,
296906505,
296906531,
296906549,
296906680
],
"servers":[
],
"application_hosts":[
221526140,
207770600,
239358299,
256794854,
217588985,
217299133,
296905703,
253500494,
219646030,
217299468
]
}
},
{
"id":81287838,
"name":"PRD-ui-rc",
"language":"java",
"health_status":"green",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:40+00:00",
"application_summary":{
"response_time":65.7,
"throughput":51.3,
"error_rate":0.0,
"apdex_target":0.26,
"apdex_score":0.98,
"host_count":3,
"instance_count":3
},
"settings":{
"app_apdex_threshold":0.26,
"end_user_apdex_threshold":4.7,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
228737780,
296906309,
296906406
],
"servers":[
],
"application_hosts":[
228737498,
230065916,
296905813
]
}
},
{
"id":116983535,
"name":"Product Data Manager NPM02",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:08+00:00",
"application_summary":{
"response_time":383.0,
"throughput":67.7,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.94,
"host_count":1,
"instance_count":1
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
116983537
],
"servers":[
],
"application_hosts":[
116983536
]
}
},
{
"id":201296665,
"name":"ProviderIntelligence",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:09+00:00",
"application_summary":{
"response_time":341.0,
"throughput":9.33,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.84,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
167584579,
271977929
],
"servers":[
],
"application_hosts":[
167584578,
167546222
]
}
},
{
"id":257875757,
"name":"STG-data-poller",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:43+00:00",
"application_summary":{
"response_time":0.56,
"throughput":8.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
287508179,
296677868
],
"servers":[
],
"application_hosts":[
209161624,
228087499
]
}
},
{
"id":110819305,
"name":"STG-grs-catalog",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":112469196,
"name":"STG-grs-posu",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":110839306,
"name":"STG-grs-ui",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":100540676,
"name":"STG-io-engine",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:00+00:00",
"application_summary":{
"response_time":19.3,
"throughput":88.3,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":3,
"instance_count":3
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
213161937,
296677798,
296677831
],
"servers":[
],
"application_hosts":[
213161772,
235875354,
241831686
]
}
},
{
"id":110696991,
"name":"STG-jobs",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:22+00:00",
"application_summary":{
"response_time":0.662,
"throughput":8.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":2,
"instance_count":2
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
249384318,
296678231
],
"servers":[
],
"application_hosts":[
207758326,
239896186
]
}
},
{
"id":100541163,
"name":"STG-processing-engine",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:05:54+00:00",
"application_summary":{
"response_time":0.636,
"throughput":42.3,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":1.0,
"host_count":7,
"instance_count":7
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
198634138,
202545180,
222934116,
235955610,
252276498,
296677742,
296677842
],
"servers":[
],
"application_hosts":[
184244161,
202544835,
222933810,
235954956,
228266769,
265217618,
260505285
]
}
},
{
"id":101321481,
"name":"STG-ui-mex",
"language":"java",
"health_status":"unknown",
"reporting":true,
"last_reported_at":"2019-10-11T11:06:07+00:00",
"application_summary":{
"response_time":350.0,
"throughput":133.0,
"error_rate":0.0,
"apdex_target":0.5,
"apdex_score":0.96,
"host_count":2,
"instance_count":2
},
"end_user_summary":{
"response_time":1.73,
"throughput":0.667,
"apdex_target":7.0,
"apdex_score":1.0
},
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
280549827,
296677805
],
"servers":[
],
"application_hosts":[
260505354,
296677001
]
}
},
{
"id":119632438,
"name":"STG2-grs-catalog",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
},
{
"id":119698822,
"name":"STG2-grs-ui",
"language":"java",
"health_status":"gray",
"reporting":false,
"settings":{
"app_apdex_threshold":0.5,
"end_user_apdex_threshold":7.0,
"enable_real_user_monitoring":true,
"use_server_side_config":false
},
"links":{
"application_instances":[
],
"servers":[
],
"application_hosts":[
]
}
}
],
"links":{
"application.servers":"/v2/servers?ids={server_ids}",
"application.server":"/v2/servers/{server_id}",
"application.application_hosts":"/v2/application/{application_id}/hosts?ids={host_ids}",
"application.application_host":"/v2/application/{application_id}/hosts/{host_id}",
"application.application_instances":"/v2/application/{application_id}/instances?ids={instance_i
curl -X GET 'https://api.newrelic.com/v2/applications/${APP_ID}/hosts.json' \
-H 'X-Api-Key:${API_KEY}' -i
curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[ids]=106290685"
HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 1414
Content-Type: application/json
Date: Mon, 14 Oct 2019 07:24:34 GMT
Etag: "f117488c1e2f5d1972b5b1e57c209688"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: a11b4b1099bfd2919d15bf5f8ad03ef7
X-Runtime: 0.110790
X-Ua-Compatible: IE=Edge,chrome=1
{"applications":[{"id":106290685,"name":"PRD-processing-engine","language":"java","health_status":"green","reporting":true,"last_reported_at":"2019-10-14T07:23:00+00:00","application_summary":{"response_time":3.85,"throughput":1560.0,"error_rate":0.0036,"apdex_target":0.45,"apdex_score":0.99,"host_count":20,"instance_count":20},"settings":{"app_apdex_threshold":0.45,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[206686482,217549492,218636037,221527175,228655212,232862911,236369788,244623432,245006087,248050719,255543337,264646257,266196516,296906390,296906556,296906580,296906590,296906621,296906646,296906805],"servers":[],"application_hosts":[206685988,209016102,218635479,219645700,228654829,217654551,217299150,209016204,245005124,232862284,219999939,264645718,239676400,214809424,231349017,267750633,236765282,217654940,296905846,296905934]}}],"links":{"application.servers":"/v2/servers?ids={server_ids}","application.server":"/v2/servers/{server_id}","application.application_hosts":"/v2/application/{application_id}/hosts?ids={host_ids}","application.application_host":"/v2/application/{application_id}/hosts/{host_id}","application.application_instances":"/v2/application/{application_id}/instances?ids={instance_ids}","application.application_instance":"/v2/application/{application_id}/instances/{instance_id}"}}(
curl -X GET "https://rpm.newrelic.com/accounts/1550954/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d 'names[]=CPU/User+Time&values[]=percent&summarize=true
HTTP/1.1 200 OK
cache-control: max-age=0, private, must-revalidate
content-type: application/json
etag: "294847c58b05108573ca5685cc132bd1"
{
"metric_data": {
"from": "2019-10-15T06:44:07+00:00",
"to": "2019-10-15T07:14:07+00:00",
"metrics_not_found": [],
"metrics_found": [
"CPU/User+Time"
],
"metrics": [
{
"name": "CPU/User+Time",
"timeslices": [
{
"from": "2019-10-15T06:41:00+00:00",
"to": "2019-10-15T06:42:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:42:00+00:00",
"to": "2019-10-15T06:43:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:43:00+00:00",
"to": "2019-10-15T06:44:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:44:00+00:00",
"to": "2019-10-15T06:45:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:45:00+00:00",
"to": "2019-10-15T06:46:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:46:00+00:00",
"to": "2019-10-15T06:47:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:47:00+00:00",
"to": "2019-10-15T06:48:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:48:00+00:00",
"to": "2019-10-15T06:49:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:49:00+00:00",
"to": "2019-10-15T06:50:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:50:00+00:00",
"to": "2019-10-15T06:51:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:51:00+00:00",
"to": "2019-10-15T06:52:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:52:00+00:00",
"to": "2019-10-15T06:53:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:53:00+00:00",
"to": "2019-10-15T06:54:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:54:00+00:00",
"to": "2019-10-15T06:55:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:55:00+00:00",
"to": "2019-10-15T06:56:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:56:00+00:00",
"to": "2019-10-15T06:57:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:57:00+00:00",
"to": "2019-10-15T06:58:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:58:00+00:00",
"to": "2019-10-15T06:59:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:59:00+00:00",
"to": "2019-10-15T07:00:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:00:00+00:00",
"to": "2019-10-15T07:01:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:01:00+00:00",
"to": "2019-10-15T07:02:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:02:00+00:00",
"to": "2019-10-15T07:03:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:03:00+00:00",
"to": "2019-10-15T07:04:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:04:00+00:00",
"to": "2019-10-15T07:05:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:05:00+00:00",
"to": "2019-10-15T07:06:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:06:00+00:00",
"to": "2019-10-15T07:07:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:07:00+00:00",
"to": "2019-10-15T07:08:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:08:00+00:00",
"to": "2019-10-15T07:09:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:09:00+00:00",
"to": "2019-10-15T07:10:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:10:00+00:00",
"to": "2019-10-15T07:11:00+00:00",
"values": {
"percent": 0
}
}
]
}
]
}
}
'
https://api.newrelic.com/v2/applications/1550954/metrics/data.json
api.eu.newrelic.com/v2/applications/1550954/metrics/data.json
curl -X GET "https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -G -d "names[]=Memory/Physical&values[]=used_mb_by_host&summarize=false"
curl -X GET "https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -G -d "names[]=CPU/User+Time&values[]=percent&summarize=true"
curl -X GET "https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -G -d "names[]=CPU/User+Time&values[]=percent&summarize=false"
{"metric_data":{"from":"2019-10-14T13:39:17+00:00","to":"2019-10-14T14:09:17+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-14T13:36:00+00:00","to":"2019-10-14T13:37:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:37:00+00:00","to":"2019-10-14T13:38:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:38:00+00:00","to":"2019-10-14T13:39:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:39:00+00:00","to":"2019-10-14T13:40:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:40:00+00:00","to":"2019-10-14T13:41:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:41:00+00:00","to":"2019-10-14T13:42:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:42:00+00:00","to":"2019-10-14T13:43:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:43:00+00:00","to":"2019-10-14T13:44:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:44:00+00:00","to":"2019-10-14T13:45:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:45:00+00:00","to":"2019-10-14T13:46:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:46:00+00:00","to":"2019-10-14T13:47:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:47:00+00:00","to":"2019-10-14T13:48:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:48:00+00:00","to":"2019-10-14T13:49:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:49:00+00:00","to":"2019-10-14T13:50:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:50:00+00:00","to":"2019-10-14T13:51:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:51:00+00:00","to":"2019-10-14T13:52:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:52:00+00:00","to":"2019-10-14T13:53:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:53:00+00:00","to":"2019-10-14T13:54:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:54:00+00:00","to":"2019-10-14T13:55:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:55:00+00:00","to":"2019-10-14T13:56:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:56:00+00:00","to":"2019-10-14T13:57:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:57:00+00:00","to":"2019-10-14T13:58:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:58:00+00:00","to":"2019-10-14T13:59:00+00:00","values":{"percent":0}},{"from":"2019-10-14T13:59:00+00:00","to":"2019-10-14T14:00:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:00:00+00:00","to":"2019-10-14T14:01:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:01:00+00:00","to":"2019-10-14T14:02:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:02:00+00:00","to":"2019-10-14T14:03:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:03:00+00:00","to":"2019-10-14T14:04:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:04:00+00:00","to":"2019-10-14T14:05:00+00:00","values":{"percent":0}},{"from":"2019-10-14T14:05:00+00:00","to":"2019-10-14T14:06:00+00:00","values":{"percent":0}}]}]}}
oct 15:
curl -X GET 'https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json' \
-H 'X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd' -i \
-G -d 'names[]=CPU/User+Time&values[]=percent&summarize=false'
HTTP/1.1 200 OK
cache-control: max-age=0, private, must-revalidate
content-type: application/json
etag: "294847c58b05108573ca5685cc132bd1"
{
"metric_data": {
"from": "2019-10-15T06:44:07+00:00",
"to": "2019-10-15T07:14:07+00:00",
"metrics_not_found": [],
"metrics_found": [
"CPU/User+Time"
],
"metrics": [
{
"name": "CPU/User+Time",
"timeslices": [
{
"from": "2019-10-15T06:41:00+00:00",
"to": "2019-10-15T06:42:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:42:00+00:00",
"to": "2019-10-15T06:43:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:43:00+00:00",
"to": "2019-10-15T06:44:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:44:00+00:00",
"to": "2019-10-15T06:45:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:45:00+00:00",
"to": "2019-10-15T06:46:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:46:00+00:00",
"to": "2019-10-15T06:47:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:47:00+00:00",
"to": "2019-10-15T06:48:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:48:00+00:00",
"to": "2019-10-15T06:49:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:49:00+00:00",
"to": "2019-10-15T06:50:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:50:00+00:00",
"to": "2019-10-15T06:51:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:51:00+00:00",
"to": "2019-10-15T06:52:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:52:00+00:00",
"to": "2019-10-15T06:53:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:53:00+00:00",
"to": "2019-10-15T06:54:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:54:00+00:00",
"to": "2019-10-15T06:55:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:55:00+00:00",
"to": "2019-10-15T06:56:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:56:00+00:00",
"to": "2019-10-15T06:57:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:57:00+00:00",
"to": "2019-10-15T06:58:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:58:00+00:00",
"to": "2019-10-15T06:59:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T06:59:00+00:00",
"to": "2019-10-15T07:00:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:00:00+00:00",
"to": "2019-10-15T07:01:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:01:00+00:00",
"to": "2019-10-15T07:02:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:02:00+00:00",
"to": "2019-10-15T07:03:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:03:00+00:00",
"to": "2019-10-15T07:04:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:04:00+00:00",
"to": "2019-10-15T07:05:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:05:00+00:00",
"to": "2019-10-15T07:06:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:06:00+00:00",
"to": "2019-10-15T07:07:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:07:00+00:00",
"to": "2019-10-15T07:08:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:08:00+00:00",
"to": "2019-10-15T07:09:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:09:00+00:00",
"to": "2019-10-15T07:10:00+00:00",
"values": {
"percent": 0
}
},
{
"from": "2019-10-15T07:10:00+00:00",
"to": "2019-10-15T07:11:00+00:00",
"values": {
"percent": 0
}
}
]
}
]
}
}
curl -X GET 'https://api.newrelic.com/v2/applications/106290685/hosts/226163033/metrics/data.json' \
-H 'X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd' -i \
-G -d 'names[]=Memory/Physical&values[]=used_mb_by_host&summarize=false'
HTTP/1.1 200 OK
cache-control: max-age=0, private, must-revalidate
content-type: application/json
etag: "028508a161d6a8056379eee5e5fd4cc8"
{
"metric_data": {
"from": "2019-10-15T06:41:07+00:00",
"to": "2019-10-15T07:11:07+00:00",
"metrics_not_found": [],
"metrics_found": [
"Memory/Physical"
],
"metrics": [
{
"name": "Memory/Physical",
"timeslices": [
{
"from": "2019-10-15T06:38:00+00:00",
"to": "2019-10-15T06:39:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:39:00+00:00",
"to": "2019-10-15T06:40:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:40:00+00:00",
"to": "2019-10-15T06:41:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:41:00+00:00",
"to": "2019-10-15T06:42:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:42:00+00:00",
"to": "2019-10-15T06:43:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:43:00+00:00",
"to": "2019-10-15T06:44:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:44:00+00:00",
"to": "2019-10-15T06:45:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:45:00+00:00",
"to": "2019-10-15T06:46:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:46:00+00:00",
"to": "2019-10-15T06:47:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:47:00+00:00",
"to": "2019-10-15T06:48:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:48:00+00:00",
"to": "2019-10-15T06:49:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:49:00+00:00",
"to": "2019-10-15T06:50:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:50:00+00:00",
"to": "2019-10-15T06:51:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:51:00+00:00",
"to": "2019-10-15T06:52:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:52:00+00:00",
"to": "2019-10-15T06:53:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:53:00+00:00",
"to": "2019-10-15T06:54:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:54:00+00:00",
"to": "2019-10-15T06:55:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:55:00+00:00",
"to": "2019-10-15T06:56:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:56:00+00:00",
"to": "2019-10-15T06:57:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:57:00+00:00",
"to": "2019-10-15T06:58:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:58:00+00:00",
"to": "2019-10-15T06:59:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T06:59:00+00:00",
"to": "2019-10-15T07:00:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:00:00+00:00",
"to": "2019-10-15T07:01:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:01:00+00:00",
"to": "2019-10-15T07:02:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:02:00+00:00",
"to": "2019-10-15T07:03:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:03:00+00:00",
"to": "2019-10-15T07:04:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:04:00+00:00",
"to": "2019-10-15T07:05:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:05:00+00:00",
"to": "2019-10-15T07:06:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:06:00+00:00",
"to": "2019-10-15T07:07:00+00:00",
"values": {
"used_mb_by_host": 11000
}
},
{
"from": "2019-10-15T07:07:00+00:00",
"to": "2019-10-15T07:08:00+00:00",
"values": {
"used_mb_by_host": 11000
}
}
]
}
]
}
}
STG-io-engine
appid:
100540676
host id:
[213161772,235875354,241831686}
SELECT average(cpuPercent) FROM SystemSample TIMESERIES FACET `entityId` WHERE (`entityId` in ('1435857783340427370')) LIMIT 100 SINCE 30 minutes ago
"SELECT average(cpuPercent) FROM SystemSample TIMESERIES FACET `entityId` WHERE (`entityId` in ('1435857783340427370')) LIMIT 100 SINCE 30 minutes ago"
curl -X GET 'https://api.newrelic.com/v2/applications/100540676/metrics/data.json' \
-H 'X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd' -i \
-d'names[]=CPU/User+Time&from=2018-02-13T04:00:00+00:00&to=2018-02-17T04:00:00+00:00&period=3600'
curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1"
curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -G -d "names[]=Memory/Physical&values[]=used_mb_by_host&summarize=true"
{
"metric_data":{
"from":"2019-10-15T07:30:29+00:00",
"to":"2019-10-15T08:00:29+00:00",
"metrics_not_found":[
],
"metrics_found":[
"Memory/Physical"
],
"metrics":[
{
"name":"Memory/Physical",
"timeslices":[
{
"from":"2019-10-15T07:27:00+00:00",
"to":"2019-10-15T07:57:00+00:00",
"values":{
"used_mb_by_host":4060
}
}
]
}
]
}
}
curl -X GET 'https://api.newrelic.com/v2/applications/34932269/metrics/data.json' \
-H 'X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd' -i \
-G -d 'names[]=CPU/User+Time&values[]=percent&summarize=true'
HTTP/1.1 200 OK
cache-control: max-age=0, private, must-revalidate
content-type: application/json
etag: "1262ee96d86bee675c0155884e849e0f"
{
"metric_data": {
"from": "2019-10-15T07:48:08+00:00",
"to": "2019-10-15T08:18:08+00:00",
"metrics_not_found": [],
"metrics_found": [
"CPU/User Time"
],
"metrics": [
{
"name": "CPU/User Time",
"timeslices": [
{
"from": "2019-10-15T07:45:00+00:00",
"to": "2019-10-15T08:15:00+00:00",
"values": {
"percent": 187
}
}
]
}
]
}
}
curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1"
{
"metric_data":{
"from":"2019-10-15T07:27:00+00:00",
"to":"2019-10-15T10:17:39+00:00",
"metrics_not_found":[
],
"metrics_found":[
"Memory/Physical"
],
"metrics":[
{
"name":"Memory/Physical",
"timeslices":[
{
"from":"2019-10-15T07:24:00+00:00",
"to":"2019-10-15T07:25:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:25:00+00:00",
"to":"2019-10-15T07:26:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:26:00+00:00",
"to":"2019-10-15T07:27:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:27:00+00:00",
"to":"2019-10-15T07:28:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:28:00+00:00",
"to":"2019-10-15T07:29:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:29:00+00:00",
"to":"2019-10-15T07:30:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:30:00+00:00",
"to":"2019-10-15T07:31:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:31:00+00:00",
"to":"2019-10-15T07:32:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:32:00+00:00",
"to":"2019-10-15T07:33:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:33:00+00:00",
"to":"2019-10-15T07:34:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:34:00+00:00",
"to":"2019-10-15T07:35:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:35:00+00:00",
"to":"2019-10-15T07:36:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:36:00+00:00",
"to":"2019-10-15T07:37:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:37:00+00:00",
"to":"2019-10-15T07:38:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:38:00+00:00",
"to":"2019-10-15T07:39:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:39:00+00:00",
"to":"2019-10-15T07:40:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:40:00+00:00",
"to":"2019-10-15T07:41:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:41:00+00:00",
"to":"2019-10-15T07:42:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:42:00+00:00",
"to":"2019-10-15T07:43:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:43:00+00:00",
"to":"2019-10-15T07:44:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:44:00+00:00",
"to":"2019-10-15T07:45:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:45:00+00:00",
"to":"2019-10-15T07:46:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:46:00+00:00",
"to":"2019-10-15T07:47:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:47:00+00:00",
"to":"2019-10-15T07:48:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:48:00+00:00",
"to":"2019-10-15T07:49:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:49:00+00:00",
"to":"2019-10-15T07:50:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:50:00+00:00",
"to":"2019-10-15T07:51:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:51:00+00:00",
"to":"2019-10-15T07:52:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:52:00+00:00",
"to":"2019-10-15T07:53:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:53:00+00:00",
"to":"2019-10-15T07:54:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:54:00+00:00",
"to":"2019-10-15T07:55:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:55:00+00:00",
"to":"2019-10-15T07:56:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:56:00+00:00",
"to":"2019-10-15T07:57:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:57:00+00:00",
"to":"2019-10-15T07:58:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:58:00+00:00",
"to":"2019-10-15T07:59:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T07:59:00+00:00",
"to":"2019-10-15T08:00:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:00:00+00:00",
"to":"2019-10-15T08:01:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:01:00+00:00",
"to":"2019-10-15T08:02:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:02:00+00:00",
"to":"2019-10-15T08:03:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:03:00+00:00",
"to":"2019-10-15T08:04:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:04:00+00:00",
"to":"2019-10-15T08:05:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:05:00+00:00",
"to":"2019-10-15T08:06:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:06:00+00:00",
"to":"2019-10-15T08:07:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:07:00+00:00",
"to":"2019-10-15T08:08:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:08:00+00:00",
"to":"2019-10-15T08:09:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:09:00+00:00",
"to":"2019-10-15T08:10:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:10:00+00:00",
"to":"2019-10-15T08:11:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:11:00+00:00",
"to":"2019-10-15T08:12:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:12:00+00:00",
"to":"2019-10-15T08:13:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:13:00+00:00",
"to":"2019-10-15T08:14:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:14:00+00:00",
"to":"2019-10-15T08:15:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:15:00+00:00",
"to":"2019-10-15T08:16:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:16:00+00:00",
"to":"2019-10-15T08:17:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:17:00+00:00",
"to":"2019-10-15T08:18:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:18:00+00:00",
"to":"2019-10-15T08:19:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:19:00+00:00",
"to":"2019-10-15T08:20:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:20:00+00:00",
"to":"2019-10-15T08:21:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4060,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:21:00+00:00",
"to":"2019-10-15T08:22:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:22:00+00:00",
"to":"2019-10-15T08:23:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:23:00+00:00",
"to":"2019-10-15T08:24:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:24:00+00:00",
"to":"2019-10-15T08:25:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:25:00+00:00",
"to":"2019-10-15T08:26:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:26:00+00:00",
"to":"2019-10-15T08:27:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:27:00+00:00",
"to":"2019-10-15T08:28:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:28:00+00:00",
"to":"2019-10-15T08:29:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:29:00+00:00",
"to":"2019-10-15T08:30:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:30:00+00:00",
"to":"2019-10-15T08:31:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:31:00+00:00",
"to":"2019-10-15T08:32:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:32:00+00:00",
"to":"2019-10-15T08:33:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:33:00+00:00",
"to":"2019-10-15T08:34:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:34:00+00:00",
"to":"2019-10-15T08:35:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:35:00+00:00",
"to":"2019-10-15T08:36:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:36:00+00:00",
"to":"2019-10-15T08:37:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:37:00+00:00",
"to":"2019-10-15T08:38:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:38:00+00:00",
"to":"2019-10-15T08:39:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:39:00+00:00",
"to":"2019-10-15T08:40:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:40:00+00:00",
"to":"2019-10-15T08:41:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:41:00+00:00",
"to":"2019-10-15T08:42:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:42:00+00:00",
"to":"2019-10-15T08:43:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:43:00+00:00",
"to":"2019-10-15T08:44:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:44:00+00:00",
"to":"2019-10-15T08:45:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:45:00+00:00",
"to":"2019-10-15T08:46:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:46:00+00:00",
"to":"2019-10-15T08:47:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:47:00+00:00",
"to":"2019-10-15T08:48:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:48:00+00:00",
"to":"2019-10-15T08:49:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:49:00+00:00",
"to":"2019-10-15T08:50:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:50:00+00:00",
"to":"2019-10-15T08:51:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:51:00+00:00",
"to":"2019-10-15T08:52:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:52:00+00:00",
"to":"2019-10-15T08:53:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:53:00+00:00",
"to":"2019-10-15T08:54:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:54:00+00:00",
"to":"2019-10-15T08:55:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:55:00+00:00",
"to":"2019-10-15T08:56:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T08:56:00+00:00",
"to":"2019-10-15T08:57:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:57:00+00:00",
"to":"2019-10-15T08:58:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T08:58:00+00:00",
"to":"2019-10-15T08:59:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T08:59:00+00:00",
"to":"2019-10-15T09:00:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T09:00:00+00:00",
"to":"2019-10-15T09:01:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:01:00+00:00",
"to":"2019-10-15T09:02:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:02:00+00:00",
"to":"2019-10-15T09:03:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T09:03:00+00:00",
"to":"2019-10-15T09:04:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T09:04:00+00:00",
"to":"2019-10-15T09:05:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:05:00+00:00",
"to":"2019-10-15T09:06:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:06:00+00:00",
"to":"2019-10-15T09:07:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T09:07:00+00:00",
"to":"2019-10-15T09:08:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T09:08:00+00:00",
"to":"2019-10-15T09:09:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:09:00+00:00",
"to":"2019-10-15T09:10:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:10:00+00:00",
"to":"2019-10-15T09:11:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:11:00+00:00",
"to":"2019-10-15T09:12:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:12:00+00:00",
"to":"2019-10-15T09:13:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:13:00+00:00",
"to":"2019-10-15T09:14:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:14:00+00:00",
"to":"2019-10-15T09:15:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:15:00+00:00",
"to":"2019-10-15T09:16:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:16:00+00:00",
"to":"2019-10-15T09:17:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:17:00+00:00",
"to":"2019-10-15T09:18:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:18:00+00:00",
"to":"2019-10-15T09:19:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:19:00+00:00",
"to":"2019-10-15T09:20:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:20:00+00:00",
"to":"2019-10-15T09:21:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:21:00+00:00",
"to":"2019-10-15T09:22:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:22:00+00:00",
"to":"2019-10-15T09:23:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:23:00+00:00",
"to":"2019-10-15T09:24:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:24:00+00:00",
"to":"2019-10-15T09:25:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:25:00+00:00",
"to":"2019-10-15T09:26:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:26:00+00:00",
"to":"2019-10-15T09:27:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:27:00+00:00",
"to":"2019-10-15T09:28:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:28:00+00:00",
"to":"2019-10-15T09:29:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:29:00+00:00",
"to":"2019-10-15T09:30:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:30:00+00:00",
"to":"2019-10-15T09:31:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:31:00+00:00",
"to":"2019-10-15T09:32:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:32:00+00:00",
"to":"2019-10-15T09:33:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":148000
}
},
{
"from":"2019-10-15T09:33:00+00:00",
"to":"2019-10-15T09:34:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":145000
}
},
{
"from":"2019-10-15T09:34:00+00:00",
"to":"2019-10-15T09:35:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:35:00+00:00",
"to":"2019-10-15T09:36:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:36:00+00:00",
"to":"2019-10-15T09:37:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:37:00+00:00",
"to":"2019-10-15T09:38:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:38:00+00:00",
"to":"2019-10-15T09:39:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:39:00+00:00",
"to":"2019-10-15T09:40:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:40:00+00:00",
"to":"2019-10-15T09:41:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:41:00+00:00",
"to":"2019-10-15T09:42:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:42:00+00:00",
"to":"2019-10-15T09:43:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:43:00+00:00",
"to":"2019-10-15T09:44:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:44:00+00:00",
"to":"2019-10-15T09:45:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:45:00+00:00",
"to":"2019-10-15T09:46:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:46:00+00:00",
"to":"2019-10-15T09:47:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:47:00+00:00",
"to":"2019-10-15T09:48:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:48:00+00:00",
"to":"2019-10-15T09:49:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:49:00+00:00",
"to":"2019-10-15T09:50:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:50:00+00:00",
"to":"2019-10-15T09:51:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:51:00+00:00",
"to":"2019-10-15T09:52:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:52:00+00:00",
"to":"2019-10-15T09:53:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:53:00+00:00",
"to":"2019-10-15T09:54:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:54:00+00:00",
"to":"2019-10-15T09:55:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:55:00+00:00",
"to":"2019-10-15T09:56:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:56:00+00:00",
"to":"2019-10-15T09:57:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:57:00+00:00",
"to":"2019-10-15T09:58:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:58:00+00:00",
"to":"2019-10-15T09:59:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T09:59:00+00:00",
"to":"2019-10-15T10:00:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:00:00+00:00",
"to":"2019-10-15T10:01:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:01:00+00:00",
"to":"2019-10-15T10:02:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:02:00+00:00",
"to":"2019-10-15T10:03:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:03:00+00:00",
"to":"2019-10-15T10:04:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:04:00+00:00",
"to":"2019-10-15T10:05:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:05:00+00:00",
"to":"2019-10-15T10:06:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:06:00+00:00",
"to":"2019-10-15T10:07:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:07:00+00:00",
"to":"2019-10-15T10:08:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:08:00+00:00",
"to":"2019-10-15T10:09:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:09:00+00:00",
"to":"2019-10-15T10:10:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:10:00+00:00",
"to":"2019-10-15T10:11:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:11:00+00:00",
"to":"2019-10-15T10:12:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:12:00+00:00",
"to":"2019-10-15T10:13:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
},
{
"from":"2019-10-15T10:13:00+00:00",
"to":"2019-10-15T10:14:00+00:00",
"values":{
"used_bytes_by_host":4260000000,
"used_mb_by_host":4070,
"total_used_mb":146000
}
}
]
}
]
}
}
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 5090
Content-Type: application/json
Date: Tue, 15 Oct 2019 08:03:58 GMT
Etag: "2a5d2b65dae1d3f0546e100723913e62"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: beadea39618f34897dbaa8b2b3f14b4d
X-Runtime: 0.058280
X-Ua-Compatible: IE=Edge,chrome=1
curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1"
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T08:03:58+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:24:00+00:00","to":"2019-10-15T07:25:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T07:25:00+00:00","to":"2019-10-15T07:26:00+00:00","values":{"total_time":32700,"average_time":10900,"percent":54.5}},{"from":"2019-10-15T07:26:00+00:00","to":"2019-10-15T07:27:00+00:00","values":{"total_time":36000,"average_time":12000,"percent":60.0}},{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:28:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T07:28:00+00:00","to":"2019-10-15T07:29:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.5}},{"from":"2019-10-15T07:29:00+00:00","to":"2019-10-15T07:30:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":52.9}},{"from":"2019-10-15T07:30:00+00:00","to":"2019-10-15T07:31:00+00:00","values":{"total_time":35400,"average_time":11800,"percent":58.9}},{"from":"2019-10-15T07:31:00+00:00","to":"2019-10-15T07:32:00+00:00","values":{"total_time":45100,"average_time":15000,"percent":75.2}},{"from":"2019-10-15T07:32:00+00:00","to":"2019-10-15T07:33:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":52.9}},{"from":"2019-10-15T07:33:00+00:00","to":"2019-10-15T07:34:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T07:34:00+00:00","to":"2019-10-15T07:35:00+00:00","values":{"total_time":32500,"average_time":10800,"percent":54.2}},{"from":"2019-10-15T07:35:00+00:00","to":"2019-10-15T07:36:00+00:00","values":{"total_time":35600,"average_time":11900,"percent":59.3}},{"from":"2019-10-15T07:36:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:38:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.0}},{"from":"2019-10-15T07:38:00+00:00","to":"2019-10-15T07:39:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T07:39:00+00:00","to":"2019-10-15T07:40:00+00:00","values":{"total_time":31000,"average_time":10300,"percent":51.6}},{"from":"2019-10-15T07:40:00+00:00","to":"2019-10-15T07:41:00+00:00","values":{"total_time":34600,"average_time":11500,"percent":57.6}},{"from":"2019-10-15T07:41:00+00:00","to":"2019-10-15T07:42:00+00:00","values":{"total_time":43900,"average_time":14600,"percent":73.2}},{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T07:43:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:43:00+00:00","to":"2019-10-15T07:44:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T07:44:00+00:00","to":"2019-10-15T07:45:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:45:00+00:00","to":"2019-10-15T07:46:00+00:00","values":{"total_time":32000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T07:46:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"total_time":32700,"average_time":10900,"percent":54.5}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:48:00+00:00","values":{"total_time":34100,"average_time":11400,"percent":56.8}},{"from":"2019-10-15T07:48:00+00:00","to":"2019-10-15T07:49:00+00:00","values":{"total_time":36300,"average_time":12100,"percent":60.4}},{"from":"2019-10-15T07:49:00+00:00","to":"2019-10-15T07:50:00+00:00","values":{"total_time":32000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T07:50:00+00:00","to":"2019-10-15T07:51:00+00:00","values":{"total_time":35800,"average_time":11900,"percent":59.6}},{"from":"2019-10-15T07:51:00+00:00","to":"2019-10-15T07:52:00+00:00","values":{"total_time":45700,"average_time":15200,"percent":76.1}},{"from":"2019-10-15T07:52:00+00:00","to":"2019-10-15T07:53:00+00:00","values":{"total_time":32900,"average_time":11000,"percent":54.8}},{"from":"2019-10-15T07:53:00+00:00","to":"2019-10-15T07:54:00+00:00","values":{"total_time":35700,"average_time":11900,"percent":59.4}},{"from":"2019-10-15T07:54:00+00:00","to":"2019-10-15T07:55:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.0}},{"from":"2019-10-15T07:55:00+00:00","to":"2019-10-15T07:56:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T07:56:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.5}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T07:58:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T07:58:00+00:00","to":"2019-10-15T07:59:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:59:00+00:00","to":"2019-10-15T08:00:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}}]}]}}
periods in secs
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 15650
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 23042
Content-Type: application/json
Date: Tue, 15 Oct 2019 10:15:31 GMT
Etag: "1356a78bfdb886234a4990ba422d9cee"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: c93ceb1fb02c733cd930df341141eaaa
X-Runtime: 0.090013
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T10:15:31+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:24:00+00:00","to":"2019-10-15T07:25:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T07:25:00+00:00","to":"2019-10-15T07:26:00+00:00","values":{"total_time":32700,"average_time":10900,"percent":54.5}},{"from":"2019-10-15T07:26:00+00:00","to":"2019-10-15T07:27:00+00:00","values":{"total_time":36000,"average_time":12000,"percent":60.0}},{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:28:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T07:28:00+00:00","to":"2019-10-15T07:29:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.5}},{"from":"2019-10-15T07:29:00+00:00","to":"2019-10-15T07:30:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":52.9}},{"from":"2019-10-15T07:30:00+00:00","to":"2019-10-15T07:31:00+00:00","values":{"total_time":35400,"average_time":11800,"percent":58.9}},{"from":"2019-10-15T07:31:00+00:00","to":"2019-10-15T07:32:00+00:00","values":{"total_time":45100,"average_time":15000,"percent":75.2}},{"from":"2019-10-15T07:32:00+00:00","to":"2019-10-15T07:33:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":52.9}},{"from":"2019-10-15T07:33:00+00:00","to":"2019-10-15T07:34:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T07:34:00+00:00","to":"2019-10-15T07:35:00+00:00","values":{"total_time":32500,"average_time":10800,"percent":54.2}},{"from":"2019-10-15T07:35:00+00:00","to":"2019-10-15T07:36:00+00:00","values":{"total_time":35600,"average_time":11900,"percent":59.3}},{"from":"2019-10-15T07:36:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:38:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.0}},{"from":"2019-10-15T07:38:00+00:00","to":"2019-10-15T07:39:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T07:39:00+00:00","to":"2019-10-15T07:40:00+00:00","values":{"total_time":31000,"average_time":10300,"percent":51.6}},{"from":"2019-10-15T07:40:00+00:00","to":"2019-10-15T07:41:00+00:00","values":{"total_time":34600,"average_time":11500,"percent":57.6}},{"from":"2019-10-15T07:41:00+00:00","to":"2019-10-15T07:42:00+00:00","values":{"total_time":43900,"average_time":14600,"percent":73.2}},{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T07:43:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:43:00+00:00","to":"2019-10-15T07:44:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T07:44:00+00:00","to":"2019-10-15T07:45:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:45:00+00:00","to":"2019-10-15T07:46:00+00:00","values":{"total_time":32000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T07:46:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"total_time":32700,"average_time":10900,"percent":54.5}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:48:00+00:00","values":{"total_time":34100,"average_time":11400,"percent":56.8}},{"from":"2019-10-15T07:48:00+00:00","to":"2019-10-15T07:49:00+00:00","values":{"total_time":36300,"average_time":12100,"percent":60.4}},{"from":"2019-10-15T07:49:00+00:00","to":"2019-10-15T07:50:00+00:00","values":{"total_time":32000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T07:50:00+00:00","to":"2019-10-15T07:51:00+00:00","values":{"total_time":35800,"average_time":11900,"percent":59.6}},{"from":"2019-10-15T07:51:00+00:00","to":"2019-10-15T07:52:00+00:00","values":{"total_time":45700,"average_time":15200,"percent":76.1}},{"from":"2019-10-15T07:52:00+00:00","to":"2019-10-15T07:53:00+00:00","values":{"total_time":32900,"average_time":11000,"percent":54.8}},{"from":"2019-10-15T07:53:00+00:00","to":"2019-10-15T07:54:00+00:00","values":{"total_time":35700,"average_time":11900,"percent":59.4}},{"from":"2019-10-15T07:54:00+00:00","to":"2019-10-15T07:55:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.0}},{"from":"2019-10-15T07:55:00+00:00","to":"2019-10-15T07:56:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T07:56:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.5}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T07:58:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T07:58:00+00:00","to":"2019-10-15T07:59:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T07:59:00+00:00","to":"2019-10-15T08:00:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}},{"from":"2019-10-15T08:00:00+00:00","to":"2019-10-15T08:01:00+00:00","values":{"total_time":35800,"average_time":11900,"percent":59.6}},{"from":"2019-10-15T08:01:00+00:00","to":"2019-10-15T08:02:00+00:00","values":{"total_time":47100,"average_time":15700,"percent":78.5}},{"from":"2019-10-15T08:02:00+00:00","to":"2019-10-15T08:03:00+00:00","values":{"total_time":36600,"average_time":12200,"percent":61.0}},{"from":"2019-10-15T08:03:00+00:00","to":"2019-10-15T08:04:00+00:00","values":{"total_time":31900,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T08:04:00+00:00","to":"2019-10-15T08:05:00+00:00","values":{"total_time":32100,"average_time":10700,"percent":53.5}},{"from":"2019-10-15T08:05:00+00:00","to":"2019-10-15T08:06:00+00:00","values":{"total_time":32700,"average_time":11000,"percent":54.5}},{"from":"2019-10-15T08:06:00+00:00","to":"2019-10-15T08:07:00+00:00","values":{"total_time":36400,"average_time":12000,"percent":60.6}},{"from":"2019-10-15T08:07:00+00:00","to":"2019-10-15T08:08:00+00:00","values":{"total_time":32300,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T08:08:00+00:00","to":"2019-10-15T08:09:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T08:09:00+00:00","to":"2019-10-15T08:10:00+00:00","values":{"total_time":30900,"average_time":10300,"percent":51.5}},{"from":"2019-10-15T08:10:00+00:00","to":"2019-10-15T08:11:00+00:00","values":{"total_time":34900,"average_time":11600,"percent":58.2}},{"from":"2019-10-15T08:11:00+00:00","to":"2019-10-15T08:12:00+00:00","values":{"total_time":44500,"average_time":14800,"percent":74.2}},{"from":"2019-10-15T08:12:00+00:00","to":"2019-10-15T08:13:00+00:00","values":{"total_time":32700,"average_time":11000,"percent":54.5}},{"from":"2019-10-15T08:13:00+00:00","to":"2019-10-15T08:14:00+00:00","values":{"total_time":35900,"average_time":11900,"percent":59.9}},{"from":"2019-10-15T08:14:00+00:00","to":"2019-10-15T08:15:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.0}},{"from":"2019-10-15T08:15:00+00:00","to":"2019-10-15T08:16:00+00:00","values":{"total_time":32200,"average_time":10700,"percent":53.7}},{"from":"2019-10-15T08:16:00+00:00","to":"2019-10-15T08:17:00+00:00","values":{"total_time":33900,"average_time":11300,"percent":56.6}},{"from":"2019-10-15T08:17:00+00:00","to":"2019-10-15T08:18:00+00:00","values":{"total_time":36100,"average_time":12000,"percent":60.2}},{"from":"2019-10-15T08:18:00+00:00","to":"2019-10-15T08:19:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T08:19:00+00:00","to":"2019-10-15T08:20:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.0}},{"from":"2019-10-15T08:20:00+00:00","to":"2019-10-15T08:21:00+00:00","values":{"total_time":35800,"average_time":11900,"percent":59.7}},{"from":"2019-10-15T08:21:00+00:00","to":"2019-10-15T08:22:00+00:00","values":{"total_time":44500,"average_time":14800,"percent":74.2}},{"from":"2019-10-15T08:22:00+00:00","to":"2019-10-15T08:23:00+00:00","values":{"total_time":30800,"average_time":10400,"percent":51.3}},{"from":"2019-10-15T08:23:00+00:00","to":"2019-10-15T08:24:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T08:24:00+00:00","to":"2019-10-15T08:25:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T08:25:00+00:00","to":"2019-10-15T08:26:00+00:00","values":{"total_time":32700,"average_time":10800,"percent":54.5}},{"from":"2019-10-15T08:26:00+00:00","to":"2019-10-15T08:27:00+00:00","values":{"total_time":35000,"average_time":11700,"percent":58.4}},{"from":"2019-10-15T08:27:00+00:00","to":"2019-10-15T08:28:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T08:28:00+00:00","to":"2019-10-15T08:29:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T08:29:00+00:00","to":"2019-10-15T08:30:00+00:00","values":{"total_time":31000,"average_time":10300,"percent":51.7}},{"from":"2019-10-15T08:30:00+00:00","to":"2019-10-15T08:31:00+00:00","values":{"total_time":35300,"average_time":11800,"percent":58.8}},{"from":"2019-10-15T08:31:00+00:00","to":"2019-10-15T08:32:00+00:00","values":{"total_time":47200,"average_time":15900,"percent":78.7}},{"from":"2019-10-15T08:32:00+00:00","to":"2019-10-15T08:33:00+00:00","values":{"total_time":40500,"average_time":13500,"percent":67.6}},{"from":"2019-10-15T08:33:00+00:00","to":"2019-10-15T08:34:00+00:00","values":{"total_time":32000,"average_time":10600,"percent":53.4}},{"from":"2019-10-15T08:34:00+00:00","to":"2019-10-15T08:35:00+00:00","values":{"total_time":31000,"average_time":10300,"percent":51.6}},{"from":"2019-10-15T08:35:00+00:00","to":"2019-10-15T08:36:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T08:36:00+00:00","to":"2019-10-15T08:37:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T08:37:00+00:00","to":"2019-10-15T08:38:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T08:38:00+00:00","to":"2019-10-15T08:39:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.9}},{"from":"2019-10-15T08:39:00+00:00","to":"2019-10-15T08:40:00+00:00","values":{"total_time":32100,"average_time":10800,"percent":53.5}},{"from":"2019-10-15T08:40:00+00:00","to":"2019-10-15T08:41:00+00:00","values":{"total_time":36200,"average_time":12000,"percent":60.4}},{"from":"2019-10-15T08:41:00+00:00","to":"2019-10-15T08:42:00+00:00","values":{"total_time":44300,"average_time":14800,"percent":73.8}},{"from":"2019-10-15T08:42:00+00:00","to":"2019-10-15T08:43:00+00:00","values":{"total_time":32000,"average_time":10700,"percent":53.4}},{"from":"2019-10-15T08:43:00+00:00","to":"2019-10-15T08:44:00+00:00","values":{"total_time":32600,"average_time":10900,"percent":54.4}},{"from":"2019-10-15T08:44:00+00:00","to":"2019-10-15T08:45:00+00:00","values":{"total_time":32600,"average_time":11000,"percent":54.3}},{"from":"2019-10-15T08:45:00+00:00","to":"2019-10-15T08:46:00+00:00","values":{"total_time":33000,"average_time":10900,"percent":55.0}},{"from":"2019-10-15T08:46:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"total_time":32000,"average_time":10800,"percent":53.4}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T08:48:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T08:48:00+00:00","to":"2019-10-15T08:49:00+00:00","values":{"total_time":31700,"average_time":10500,"percent":52.9}},{"from":"2019-10-15T08:49:00+00:00","to":"2019-10-15T08:50:00+00:00","values":{"total_time":31000,"average_time":10400,"percent":51.7}},{"from":"2019-10-15T08:50:00+00:00","to":"2019-10-15T08:51:00+00:00","values":{"total_time":36100,"average_time":12000,"percent":60.2}},{"from":"2019-10-15T08:51:00+00:00","to":"2019-10-15T08:52:00+00:00","values":{"total_time":51100,"average_time":17000,"percent":85.2}},{"from":"2019-10-15T08:52:00+00:00","to":"2019-10-15T08:53:00+00:00","values":{"total_time":36300,"average_time":12000,"percent":60.5}},{"from":"2019-10-15T08:53:00+00:00","to":"2019-10-15T08:54:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.9}},{"from":"2019-10-15T08:54:00+00:00","to":"2019-10-15T08:55:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T08:55:00+00:00","to":"2019-10-15T08:56:00+00:00","values":{"total_time":31000,"average_time":10400,"percent":51.6}},{"from":"2019-10-15T08:56:00+00:00","to":"2019-10-15T08:57:00+00:00","values":{"total_time":31000,"average_time":10300,"percent":51.6}},{"from":"2019-10-15T08:57:00+00:00","to":"2019-10-15T08:58:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.9}},{"from":"2019-10-15T08:58:00+00:00","to":"2019-10-15T08:59:00+00:00","values":{"total_time":31300,"average_time":10300,"percent":52.2}},{"from":"2019-10-15T08:59:00+00:00","to":"2019-10-15T09:00:00+00:00","values":{"total_time":30900,"average_time":10400,"percent":51.4}},{"from":"2019-10-15T09:00:00+00:00","to":"2019-10-15T09:01:00+00:00","values":{"total_time":34800,"average_time":11600,"percent":58.0}},{"from":"2019-10-15T09:01:00+00:00","to":"2019-10-15T09:02:00+00:00","values":{"total_time":45100,"average_time":15000,"percent":75.2}},{"from":"2019-10-15T09:02:00+00:00","to":"2019-10-15T09:03:00+00:00","values":{"total_time":32000,"average_time":10600,"percent":53.3}},{"from":"2019-10-15T09:03:00+00:00","to":"2019-10-15T09:04:00+00:00","values":{"total_time":32900,"average_time":11100,"percent":54.8}},{"from":"2019-10-15T09:04:00+00:00","to":"2019-10-15T09:05:00+00:00","values":{"total_time":37100,"average_time":12400,"percent":61.8}},{"from":"2019-10-15T09:05:00+00:00","to":"2019-10-15T09:06:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T09:06:00+00:00","to":"2019-10-15T09:07:00+00:00","values":{"total_time":32100,"average_time":10600,"percent":53.4}},{"from":"2019-10-15T09:07:00+00:00","to":"2019-10-15T09:08:00+00:00","values":{"total_time":31100,"average_time":10500,"percent":51.9}},{"from":"2019-10-15T09:08:00+00:00","to":"2019-10-15T09:09:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.5}},{"from":"2019-10-15T09:09:00+00:00","to":"2019-10-15T09:10:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.0}},{"from":"2019-10-15T09:10:00+00:00","to":"2019-10-15T09:11:00+00:00","values":{"total_time":36100,"average_time":12000,"percent":60.1}},{"from":"2019-10-15T09:11:00+00:00","to":"2019-10-15T09:12:00+00:00","values":{"total_time":48900,"average_time":16300,"percent":81.5}},{"from":"2019-10-15T09:12:00+00:00","to":"2019-10-15T09:13:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T09:13:00+00:00","to":"2019-10-15T09:14:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}},{"from":"2019-10-15T09:14:00+00:00","to":"2019-10-15T09:15:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T09:15:00+00:00","to":"2019-10-15T09:16:00+00:00","values":{"total_time":32100,"average_time":10700,"percent":53.5}},{"from":"2019-10-15T09:16:00+00:00","to":"2019-10-15T09:17:00+00:00","values":{"total_time":32100,"average_time":10700,"percent":53.6}},{"from":"2019-10-15T09:17:00+00:00","to":"2019-10-15T09:18:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T09:18:00+00:00","to":"2019-10-15T09:19:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T09:19:00+00:00","to":"2019-10-15T09:20:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T09:20:00+00:00","to":"2019-10-15T09:21:00+00:00","values":{"total_time":35000,"average_time":11700,"percent":58.4}},{"from":"2019-10-15T09:21:00+00:00","to":"2019-10-15T09:22:00+00:00","values":{"total_time":44600,"average_time":14900,"percent":74.4}},{"from":"2019-10-15T09:22:00+00:00","to":"2019-10-15T09:23:00+00:00","values":{"total_time":33500,"average_time":11200,"percent":55.9}},{"from":"2019-10-15T09:23:00+00:00","to":"2019-10-15T09:24:00+00:00","values":{"total_time":32900,"average_time":11000,"percent":54.8}},{"from":"2019-10-15T09:24:00+00:00","to":"2019-10-15T09:25:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}},{"from":"2019-10-15T09:25:00+00:00","to":"2019-10-15T09:26:00+00:00","values":{"total_time":32300,"average_time":10800,"percent":53.9}},{"from":"2019-10-15T09:26:00+00:00","to":"2019-10-15T09:27:00+00:00","values":{"total_time":36000,"average_time":12000,"percent":60.0}},{"from":"2019-10-15T09:27:00+00:00","to":"2019-10-15T09:28:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}},{"from":"2019-10-15T09:28:00+00:00","to":"2019-10-15T09:29:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T09:29:00+00:00","to":"2019-10-15T09:30:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T09:30:00+00:00","to":"2019-10-15T09:31:00+00:00","values":{"total_time":35100,"average_time":11700,"percent":58.5}},{"from":"2019-10-15T09:31:00+00:00","to":"2019-10-15T09:32:00+00:00","values":{"total_time":45400,"average_time":15100,"percent":75.6}},{"from":"2019-10-15T09:32:00+00:00","to":"2019-10-15T09:33:00+00:00","values":{"total_time":31600,"average_time":10400,"percent":52.7}},{"from":"2019-10-15T09:33:00+00:00","to":"2019-10-15T09:34:00+00:00","values":{"total_time":31000,"average_time":10500,"percent":51.7}},{"from":"2019-10-15T09:34:00+00:00","to":"2019-10-15T09:35:00+00:00","values":{"total_time":32400,"average_time":10800,"percent":54.0}},{"from":"2019-10-15T09:35:00+00:00","to":"2019-10-15T09:36:00+00:00","values":{"total_time":35500,"average_time":11800,"percent":59.1}},{"from":"2019-10-15T09:36:00+00:00","to":"2019-10-15T09:37:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T09:37:00+00:00","to":"2019-10-15T09:38:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T09:38:00+00:00","to":"2019-10-15T09:39:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.0}},{"from":"2019-10-15T09:39:00+00:00","to":"2019-10-15T09:40:00+00:00","values":{"total_time":31500,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T09:40:00+00:00","to":"2019-10-15T09:41:00+00:00","values":{"total_time":34700,"average_time":11600,"percent":57.9}},{"from":"2019-10-15T09:41:00+00:00","to":"2019-10-15T09:42:00+00:00","values":{"total_time":44600,"average_time":14900,"percent":74.3}},{"from":"2019-10-15T09:42:00+00:00","to":"2019-10-15T09:43:00+00:00","values":{"total_time":31700,"average_time":10600,"percent":52.8}},{"from":"2019-10-15T09:43:00+00:00","to":"2019-10-15T09:44:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T09:44:00+00:00","to":"2019-10-15T09:45:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T09:45:00+00:00","to":"2019-10-15T09:46:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T09:46:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"total_time":32300,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T09:48:00+00:00","values":{"total_time":31600,"average_time":10500,"percent":52.7}},{"from":"2019-10-15T09:48:00+00:00","to":"2019-10-15T09:49:00+00:00","values":{"total_time":31200,"average_time":10400,"percent":52.1}},{"from":"2019-10-15T09:49:00+00:00","to":"2019-10-15T09:50:00+00:00","values":{"total_time":31400,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T09:50:00+00:00","to":"2019-10-15T09:51:00+00:00","values":{"total_time":35000,"average_time":11700,"percent":58.4}},{"from":"2019-10-15T09:51:00+00:00","to":"2019-10-15T09:52:00+00:00","values":{"total_time":46900,"average_time":15600,"percent":78.2}},{"from":"2019-10-15T09:52:00+00:00","to":"2019-10-15T09:53:00+00:00","values":{"total_time":36700,"average_time":12200,"percent":61.2}},{"from":"2019-10-15T09:53:00+00:00","to":"2019-10-15T09:54:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T09:54:00+00:00","to":"2019-10-15T09:55:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T09:55:00+00:00","to":"2019-10-15T09:56:00+00:00","values":{"total_time":32400,"average_time":10800,"percent":54.1}},{"from":"2019-10-15T09:56:00+00:00","to":"2019-10-15T09:57:00+00:00","values":{"total_time":36500,"average_time":12200,"percent":60.9}},{"from":"2019-10-15T09:57:00+00:00","to":"2019-10-15T09:58:00+00:00","values":{"total_time":35700,"average_time":11900,"percent":59.5}},{"from":"2019-10-15T09:58:00+00:00","to":"2019-10-15T09:59:00+00:00","values":{"total_time":31300,"average_time":10400,"percent":52.2}},{"from":"2019-10-15T09:59:00+00:00","to":"2019-10-15T10:00:00+00:00","values":{"total_time":31800,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T10:00:00+00:00","to":"2019-10-15T10:01:00+00:00","values":{"total_time":35300,"average_time":11800,"percent":58.9}},{"from":"2019-10-15T10:01:00+00:00","to":"2019-10-15T10:02:00+00:00","values":{"total_time":45900,"average_time":15300,"percent":76.4}},{"from":"2019-10-15T10:02:00+00:00","to":"2019-10-15T10:03:00+00:00","values":{"total_time":32200,"average_time":10700,"percent":53.7}},{"from":"2019-10-15T10:03:00+00:00","to":"2019-10-15T10:04:00+00:00","values":{"total_time":32600,"average_time":10900,"percent":54.4}},{"from":"2019-10-15T10:04:00+00:00","to":"2019-10-15T10:05:00+00:00","values":{"total_time":32100,"average_time":10700,"percent":53.5}},{"from":"2019-10-15T10:05:00+00:00","to":"2019-10-15T10:06:00+00:00","values":{"total_time":31900,"average_time":10600,"percent":53.2}},{"from":"2019-10-15T10:06:00+00:00","to":"2019-10-15T10:07:00+00:00","values":{"total_time":33200,"average_time":11100,"percent":55.4}},{"from":"2019-10-15T10:07:00+00:00","to":"2019-10-15T10:08:00+00:00","values":{"total_time":36200,"average_time":12100,"percent":60.3}},{"from":"2019-10-15T10:08:00+00:00","to":"2019-10-15T10:09:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T10:09:00+00:00","to":"2019-10-15T10:10:00+00:00","values":{"total_time":31100,"average_time":10400,"percent":51.8}},{"from":"2019-10-15T10:10:00+00:00","to":"2019-10-15T10:11:00+00:00","values":{"total_time":36000,"average_time":12000,"percent":59.9}},{"from":"2019-10-15T10:11:00+00:00","to":"2019-10-15T10:12:00+00:00","values":{"total_time":49000,"average_time":16300,"percent":81.7}}]}]}}
******************************************************
STG-data-poller:
appid:
257875757
host id:
[ 209161624, 228087499 ]
curl -X GET "https://api.newrelic.com/v2/applications/257875757/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://api.newrelic.com/v2/applications/257875757/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 6660
(base) sys-user@SMI-243:~/backup/aws$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 24594
Content-Type: application/json
Date: Tue, 15 Oct 2019 13:32:41 GMT
Etag: "644bcabcaad3fdfe60c49570c2944804"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: ad162de8a03b9cee4061367cece6141e
X-Runtime: 0.195313
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T13:32:41+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:25:00+00:00","to":"2019-10-15T07:27:00+00:00","values":{"total_time":4650,"average_time":1160,"percent":3.87}},{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:29:00+00:00","values":{"total_time":4360,"average_time":1090,"percent":3.63}},{"from":"2019-10-15T07:29:00+00:00","to":"2019-10-15T07:31:00+00:00","values":{"total_time":4410,"average_time":1100,"percent":3.68}},{"from":"2019-10-15T07:31:00+00:00","to":"2019-10-15T07:33:00+00:00","values":{"total_time":12100,"average_time":3020,"percent":10.1}},{"from":"2019-10-15T07:33:00+00:00","to":"2019-10-15T07:35:00+00:00","values":{"total_time":7870,"average_time":1970,"percent":6.55}},{"from":"2019-10-15T07:35:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"total_time":5970,"average_time":1490,"percent":4.97}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:39:00+00:00","values":{"total_time":4670,"average_time":1170,"percent":3.89}},{"from":"2019-10-15T07:39:00+00:00","to":"2019-10-15T07:41:00+00:00","values":{"total_time":4510,"average_time":1130,"percent":3.76}},{"from":"2019-10-15T07:41:00+00:00","to":"2019-10-15T07:43:00+00:00","values":{"total_time":11700,"average_time":2920,"percent":9.73}},{"from":"2019-10-15T07:43:00+00:00","to":"2019-10-15T07:45:00+00:00","values":{"total_time":7470,"average_time":1870,"percent":6.23}},{"from":"2019-10-15T07:45:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"total_time":4690,"average_time":1170,"percent":3.91}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:49:00+00:00","values":{"total_time":4860,"average_time":1210,"percent":4.05}},{"from":"2019-10-15T07:49:00+00:00","to":"2019-10-15T07:51:00+00:00","values":{"total_time":5050,"average_time":1260,"percent":4.21}},{"from":"2019-10-15T07:51:00+00:00","to":"2019-10-15T07:53:00+00:00","values":{"total_time":12700,"average_time":3170,"percent":10.6}},{"from":"2019-10-15T07:53:00+00:00","to":"2019-10-15T07:55:00+00:00","values":{"total_time":7810,"average_time":1950,"percent":6.51}},{"from":"2019-10-15T07:55:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"total_time":4650,"average_time":1160,"percent":3.87}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T07:59:00+00:00","values":{"total_time":5220,"average_time":1300,"percent":4.35}},{"from":"2019-10-15T07:59:00+00:00","to":"2019-10-15T08:01:00+00:00","values":{"total_time":4780,"average_time":1190,"percent":3.98}},{"from":"2019-10-15T08:01:00+00:00","to":"2019-10-15T08:03:00+00:00","values":{"total_time":12100,"average_time":3030,"percent":10.1}},{"from":"2019-10-15T08:03:00+00:00","to":"2019-10-15T08:05:00+00:00","values":{"total_time":8550,"average_time":2140,"percent":7.12}},{"from":"2019-10-15T08:05:00+00:00","to":"2019-10-15T08:07:00+00:00","values":{"total_time":4900,"average_time":1230,"percent":4.09}},{"from":"2019-10-15T08:07:00+00:00","to":"2019-10-15T08:09:00+00:00","values":{"total_time":4730,"average_time":1180,"percent":3.94}},{"from":"2019-10-15T08:09:00+00:00","to":"2019-10-15T08:11:00+00:00","values":{"total_time":4590,"average_time":1150,"percent":3.82}},{"from":"2019-10-15T08:11:00+00:00","to":"2019-10-15T08:13:00+00:00","values":{"total_time":11800,"average_time":2950,"percent":9.83}},{"from":"2019-10-15T08:13:00+00:00","to":"2019-10-15T08:15:00+00:00","values":{"total_time":7770,"average_time":1940,"percent":6.48}},{"from":"2019-10-15T08:15:00+00:00","to":"2019-10-15T08:17:00+00:00","values":{"total_time":4780,"average_time":1190,"percent":3.98}},{"from":"2019-10-15T08:17:00+00:00","to":"2019-10-15T08:19:00+00:00","values":{"total_time":4570,"average_time":1140,"percent":3.81}},{"from":"2019-10-15T08:19:00+00:00","to":"2019-10-15T08:21:00+00:00","values":{"total_time":4690,"average_time":1170,"percent":3.9}},{"from":"2019-10-15T08:21:00+00:00","to":"2019-10-15T08:23:00+00:00","values":{"total_time":12400,"average_time":3100,"percent":10.3}},{"from":"2019-10-15T08:23:00+00:00","to":"2019-10-15T08:25:00+00:00","values":{"total_time":7280,"average_time":1820,"percent":6.07}},{"from":"2019-10-15T08:25:00+00:00","to":"2019-10-15T08:27:00+00:00","values":{"total_time":4820,"average_time":1200,"percent":4.02}},{"from":"2019-10-15T08:27:00+00:00","to":"2019-10-15T08:29:00+00:00","values":{"total_time":4720,"average_time":1180,"percent":3.93}},{"from":"2019-10-15T08:29:00+00:00","to":"2019-10-15T08:31:00+00:00","values":{"total_time":4700,"average_time":1180,"percent":3.92}},{"from":"2019-10-15T08:31:00+00:00","to":"2019-10-15T08:33:00+00:00","values":{"total_time":12200,"average_time":3060,"percent":10.2}},{"from":"2019-10-15T08:33:00+00:00","to":"2019-10-15T08:35:00+00:00","values":{"total_time":8900,"average_time":2220,"percent":7.42}},{"from":"2019-10-15T08:35:00+00:00","to":"2019-10-15T08:37:00+00:00","values":{"total_time":5250,"average_time":1310,"percent":4.38}},{"from":"2019-10-15T08:37:00+00:00","to":"2019-10-15T08:39:00+00:00","values":{"total_time":5130,"average_time":1280,"percent":4.28}},{"from":"2019-10-15T08:39:00+00:00","to":"2019-10-15T08:41:00+00:00","values":{"total_time":5040,"average_time":1260,"percent":4.2}},{"from":"2019-10-15T08:41:00+00:00","to":"2019-10-15T08:43:00+00:00","values":{"total_time":12700,"average_time":3160,"percent":10.5}},{"from":"2019-10-15T08:43:00+00:00","to":"2019-10-15T08:45:00+00:00","values":{"total_time":8270,"average_time":2070,"percent":6.89}},{"from":"2019-10-15T08:45:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"total_time":5020,"average_time":1250,"percent":4.18}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T08:49:00+00:00","values":{"total_time":5400,"average_time":1350,"percent":4.5}},{"from":"2019-10-15T08:49:00+00:00","to":"2019-10-15T08:51:00+00:00","values":{"total_time":4810,"average_time":1200,"percent":4.01}},{"from":"2019-10-15T08:51:00+00:00","to":"2019-10-15T08:53:00+00:00","values":{"total_time":12700,"average_time":3180,"percent":10.6}},{"from":"2019-10-15T08:53:00+00:00","to":"2019-10-15T08:55:00+00:00","values":{"total_time":7920,"average_time":1980,"percent":6.6}},{"from":"2019-10-15T08:55:00+00:00","to":"2019-10-15T08:57:00+00:00","values":{"total_time":5040,"average_time":1260,"percent":4.2}},{"from":"2019-10-15T08:57:00+00:00","to":"2019-10-15T08:59:00+00:00","values":{"total_time":4880,"average_time":1220,"percent":4.07}},{"from":"2019-10-15T08:59:00+00:00","to":"2019-10-15T09:01:00+00:00","values":{"total_time":4720,"average_time":1180,"percent":3.94}},{"from":"2019-10-15T09:01:00+00:00","to":"2019-10-15T09:03:00+00:00","values":{"total_time":12400,"average_time":3110,"percent":10.3}},{"from":"2019-10-15T09:03:00+00:00","to":"2019-10-15T09:05:00+00:00","values":{"total_time":7470,"average_time":1870,"percent":6.22}},{"from":"2019-10-15T09:05:00+00:00","to":"2019-10-15T09:07:00+00:00","values":{"total_time":4980,"average_time":1250,"percent":4.15}},{"from":"2019-10-15T09:07:00+00:00","to":"2019-10-15T09:09:00+00:00","values":{"total_time":4570,"average_time":1140,"percent":3.81}},{"from":"2019-10-15T09:09:00+00:00","to":"2019-10-15T09:11:00+00:00","values":{"total_time":4560,"average_time":1140,"percent":3.8}},{"from":"2019-10-15T09:11:00+00:00","to":"2019-10-15T09:13:00+00:00","values":{"total_time":11800,"average_time":2960,"percent":9.87}},{"from":"2019-10-15T09:13:00+00:00","to":"2019-10-15T09:15:00+00:00","values":{"total_time":7360,"average_time":1840,"percent":6.14}},{"from":"2019-10-15T09:15:00+00:00","to":"2019-10-15T09:17:00+00:00","values":{"total_time":4570,"average_time":1140,"percent":3.81}},{"from":"2019-10-15T09:17:00+00:00","to":"2019-10-15T09:19:00+00:00","values":{"total_time":4930,"average_time":1230,"percent":4.11}},{"from":"2019-10-15T09:19:00+00:00","to":"2019-10-15T09:21:00+00:00","values":{"total_time":4390,"average_time":1100,"percent":3.66}},{"from":"2019-10-15T09:21:00+00:00","to":"2019-10-15T09:23:00+00:00","values":{"total_time":11400,"average_time":2840,"percent":9.46}},{"from":"2019-10-15T09:23:00+00:00","to":"2019-10-15T09:25:00+00:00","values":{"total_time":7870,"average_time":1970,"percent":6.56}},{"from":"2019-10-15T09:25:00+00:00","to":"2019-10-15T09:27:00+00:00","values":{"total_time":4540,"average_time":1140,"percent":3.79}},{"from":"2019-10-15T09:27:00+00:00","to":"2019-10-15T09:29:00+00:00","values":{"total_time":4600,"average_time":1150,"percent":3.83}},{"from":"2019-10-15T09:29:00+00:00","to":"2019-10-15T09:31:00+00:00","values":{"total_time":4580,"average_time":1140,"percent":3.82}},{"from":"2019-10-15T09:31:00+00:00","to":"2019-10-15T09:33:00+00:00","values":{"total_time":12200,"average_time":3040,"percent":10.1}},{"from":"2019-10-15T09:33:00+00:00","to":"2019-10-15T09:35:00+00:00","values":{"total_time":7910,"average_time":1980,"percent":6.59}},{"from":"2019-10-15T09:35:00+00:00","to":"2019-10-15T09:37:00+00:00","values":{"total_time":4720,"average_time":1180,"percent":3.93}},{"from":"2019-10-15T09:37:00+00:00","to":"2019-10-15T09:39:00+00:00","values":{"total_time":4860,"average_time":1210,"percent":4.05}},{"from":"2019-10-15T09:39:00+00:00","to":"2019-10-15T09:41:00+00:00","values":{"total_time":4440,"average_time":1110,"percent":3.7}},{"from":"2019-10-15T09:41:00+00:00","to":"2019-10-15T09:43:00+00:00","values":{"total_time":12200,"average_time":3040,"percent":10.1}},{"from":"2019-10-15T09:43:00+00:00","to":"2019-10-15T09:45:00+00:00","values":{"total_time":7860,"average_time":1960,"percent":6.55}},{"from":"2019-10-15T09:45:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"total_time":4480,"average_time":1120,"percent":3.73}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T09:49:00+00:00","values":{"total_time":4620,"average_time":1160,"percent":3.85}},{"from":"2019-10-15T09:49:00+00:00","to":"2019-10-15T09:51:00+00:00","values":{"total_time":4760,"average_time":1190,"percent":3.96}},{"from":"2019-10-15T09:51:00+00:00","to":"2019-10-15T09:53:00+00:00","values":{"total_time":12000,"average_time":2990,"percent":9.97}},{"from":"2019-10-15T09:53:00+00:00","to":"2019-10-15T09:55:00+00:00","values":{"total_time":7720,"average_time":1930,"percent":6.43}},{"from":"2019-10-15T09:55:00+00:00","to":"2019-10-15T09:57:00+00:00","values":{"total_time":4580,"average_time":1140,"percent":3.81}},{"from":"2019-10-15T09:57:00+00:00","to":"2019-10-15T09:59:00+00:00","values":{"total_time":4510,"average_time":1130,"percent":3.76}},{"from":"2019-10-15T09:59:00+00:00","to":"2019-10-15T10:01:00+00:00","values":{"total_time":4920,"average_time":1230,"percent":4.1}},{"from":"2019-10-15T10:01:00+00:00","to":"2019-10-15T10:03:00+00:00","values":{"total_time":12800,"average_time":3190,"percent":10.6}},{"from":"2019-10-15T10:03:00+00:00","to":"2019-10-15T10:05:00+00:00","values":{"total_time":7680,"average_time":1920,"percent":6.4}},{"from":"2019-10-15T10:05:00+00:00","to":"2019-10-15T10:07:00+00:00","values":{"total_time":4820,"average_time":1210,"percent":4.02}},{"from":"2019-10-15T10:07:00+00:00","to":"2019-10-15T10:09:00+00:00","values":{"total_time":5000,"average_time":1250,"percent":4.16}},{"from":"2019-10-15T10:09:00+00:00","to":"2019-10-15T10:11:00+00:00","values":{"total_time":5190,"average_time":1300,"percent":4.33}},{"from":"2019-10-15T10:11:00+00:00","to":"2019-10-15T10:13:00+00:00","values":{"total_time":11200,"average_time":2800,"percent":9.33}},{"from":"2019-10-15T10:13:00+00:00","to":"2019-10-15T10:15:00+00:00","values":{"total_time":8260,"average_time":2070,"percent":6.89}},{"from":"2019-10-15T10:15:00+00:00","to":"2019-10-15T10:17:00+00:00","values":{"total_time":4580,"average_time":1150,"percent":3.82}},{"from":"2019-10-15T10:17:00+00:00","to":"2019-10-15T10:19:00+00:00","values":{"total_time":4700,"average_time":1180,"percent":3.92}},{"from":"2019-10-15T10:19:00+00:00","to":"2019-10-15T10:21:00+00:00","values":{"total_time":4260,"average_time":1060,"percent":3.55}},{"from":"2019-10-15T10:21:00+00:00","to":"2019-10-15T10:23:00+00:00","values":{"total_time":11700,"average_time":2930,"percent":9.76}},{"from":"2019-10-15T10:23:00+00:00","to":"2019-10-15T10:25:00+00:00","values":{"total_time":7670,"average_time":1920,"percent":6.4}},{"from":"2019-10-15T10:25:00+00:00","to":"2019-10-15T10:27:00+00:00","values":{"total_time":4620,"average_time":1150,"percent":3.85}},{"from":"2019-10-15T10:27:00+00:00","to":"2019-10-15T10:29:00+00:00","values":{"total_time":4820,"average_time":1210,"percent":4.02}},{"from":"2019-10-15T10:29:00+00:00","to":"2019-10-15T10:31:00+00:00","values":{"total_time":4840,"average_time":1210,"percent":4.03}},{"from":"2019-10-15T10:31:00+00:00","to":"2019-10-15T10:33:00+00:00","values":{"total_time":11300,"average_time":2820,"percent":9.39}},{"from":"2019-10-15T10:33:00+00:00","to":"2019-10-15T10:35:00+00:00","values":{"total_time":8160,"average_time":2040,"percent":6.8}},{"from":"2019-10-15T10:35:00+00:00","to":"2019-10-15T10:37:00+00:00","values":{"total_time":4650,"average_time":1160,"percent":3.88}},{"from":"2019-10-15T10:37:00+00:00","to":"2019-10-15T10:39:00+00:00","values":{"total_time":4440,"average_time":1110,"percent":3.7}},{"from":"2019-10-15T10:39:00+00:00","to":"2019-10-15T10:41:00+00:00","values":{"total_time":4430,"average_time":1110,"percent":3.69}},{"from":"2019-10-15T10:41:00+00:00","to":"2019-10-15T10:43:00+00:00","values":{"total_time":10700,"average_time":2670,"percent":8.9}},{"from":"2019-10-15T10:43:00+00:00","to":"2019-10-15T10:45:00+00:00","values":{"total_time":8550,"average_time":2140,"percent":7.13}},{"from":"2019-10-15T10:45:00+00:00","to":"2019-10-15T10:47:00+00:00","values":{"total_time":4630,"average_time":1160,"percent":3.86}},{"from":"2019-10-15T10:47:00+00:00","to":"2019-10-15T10:49:00+00:00","values":{"total_time":5140,"average_time":1290,"percent":4.29}},{"from":"2019-10-15T10:49:00+00:00","to":"2019-10-15T10:51:00+00:00","values":{"total_time":4900,"average_time":1230,"percent":4.08}},{"from":"2019-10-15T10:51:00+00:00","to":"2019-10-15T10:53:00+00:00","values":{"total_time":12100,"average_time":3030,"percent":10.1}},{"from":"2019-10-15T10:53:00+00:00","to":"2019-10-15T10:55:00+00:00","values":{"total_time":7350,"average_time":1840,"percent":6.13}},{"from":"2019-10-15T10:55:00+00:00","to":"2019-10-15T10:57:00+00:00","values":{"total_time":4640,"average_time":1160,"percent":3.87}},{"from":"2019-10-15T10:57:00+00:00","to":"2019-10-15T10:59:00+00:00","values":{"total_time":4470,"average_time":1120,"percent":3.73}},{"from":"2019-10-15T10:59:00+00:00","to":"2019-10-15T11:01:00+00:00","values":{"total_time":5050,"average_time":1260,"percent":4.21}},{"from":"2019-10-15T11:01:00+00:00","to":"2019-10-15T11:03:00+00:00","values":{"total_time":13200,"average_time":3300,"percent":11.0}},{"from":"2019-10-15T11:03:00+00:00","to":"2019-10-15T11:05:00+00:00","values":{"total_time":7730,"average_time":1930,"percent":6.44}},{"from":"2019-10-15T11:05:00+00:00","to":"2019-10-15T11:07:00+00:00","values":{"total_time":4770,"average_time":1190,"percent":3.98}},{"from":"2019-10-15T11:07:00+00:00","to":"2019-10-15T11:09:00+00:00","values":{"total_time":5610,"average_time":1400,"percent":4.67}},{"from":"2019-10-15T11:09:00+00:00","to":"2019-10-15T11:11:00+00:00","values":{"total_time":4740,"average_time":1180,"percent":3.95}},{"from":"2019-10-15T11:11:00+00:00","to":"2019-10-15T11:13:00+00:00","values":{"total_time":11800,"average_time":2960,"percent":9.85}},{"from":"2019-10-15T11:13:00+00:00","to":"2019-10-15T11:15:00+00:00","values":{"total_time":8640,"average_time":2160,"percent":7.2}},{"from":"2019-10-15T11:15:00+00:00","to":"2019-10-15T11:17:00+00:00","values":{"total_time":4860,"average_time":1210,"percent":4.05}},{"from":"2019-10-15T11:17:00+00:00","to":"2019-10-15T11:19:00+00:00","values":{"total_time":4820,"average_time":1200,"percent":4.01}},{"from":"2019-10-15T11:19:00+00:00","to":"2019-10-15T11:21:00+00:00","values":{"total_time":4800,"average_time":1200,"percent":4.0}},{"from":"2019-10-15T11:21:00+00:00","to":"2019-10-15T11:23:00+00:00","values":{"total_time":11700,"average_time":2940,"percent":9.78}},{"from":"2019-10-15T11:23:00+00:00","to":"2019-10-15T11:25:00+00:00","values":{"total_time":7800,"average_time":1950,"percent":6.5}},{"from":"2019-10-15T11:25:00+00:00","to":"2019-10-15T11:27:00+00:00","values":{"total_time":4710,"average_time":1180,"percent":3.92}},{"from":"2019-10-15T11:27:00+00:00","to":"2019-10-15T11:29:00+00:00","values":{"total_time":4590,"average_time":1150,"percent":3.82}},{"from":"2019-10-15T11:29:00+00:00","to":"2019-10-15T11:31:00+00:00","values":{"total_time":4660,"average_time":1160,"percent":3.88}},{"from":"2019-10-15T11:31:00+00:00","to":"2019-10-15T11:33:00+00:00","values":{"total_time":11700,"average_time":2910,"percent":9.71}},{"from":"2019-10-15T11:33:00+00:00","to":"2019-10-15T11:35:00+00:00","values":{"total_time":7630,"average_time":1910,"percent":6.35}},{"from":"2019-10-15T11:35:00+00:00","to":"2019-10-15T11:37:00+00:00","values":{"total_time":4600,"average_time":1150,"percent":3.83}},{"from":"2019-10-15T11:37:00+00:00","to":"2019-10-15T11:39:00+00:00","values":{"total_time":4680,"average_time":1170,"percent":3.9}},{"from":"2019-10-15T11:39:00+00:00","to":"2019-10-15T11:41:00+00:00","values":{"total_time":4490,"average_time":1120,"percent":3.74}},{"from":"2019-10-15T11:41:00+00:00","to":"2019-10-15T11:43:00+00:00","values":{"total_time":11800,"average_time":2960,"percent":9.86}},{"from":"2019-10-15T11:43:00+00:00","to":"2019-10-15T11:45:00+00:00","values":{"total_time":7650,"average_time":1910,"percent":6.37}},{"from":"2019-10-15T11:45:00+00:00","to":"2019-10-15T11:47:00+00:00","values":{"total_time":4450,"average_time":1110,"percent":3.71}},{"from":"2019-10-15T11:47:00+00:00","to":"2019-10-15T11:49:00+00:00","values":{"total_time":4750,"average_time":1190,"percent":3.96}},{"from":"2019-10-15T11:49:00+00:00","to":"2019-10-15T11:51:00+00:00","values":{"total_time":4440,"average_time":1110,"percent":3.7}},{"from":"2019-10-15T11:51:00+00:00","to":"2019-10-15T11:53:00+00:00","values":{"total_time":12300,"average_time":3080,"percent":10.3}},{"from":"2019-10-15T11:53:00+00:00","to":"2019-10-15T11:55:00+00:00","values":{"total_time":9300,"average_time":2320,"percent":7.75}},{"from":"2019-10-15T11:55:00+00:00","to":"2019-10-15T11:57:00+00:00","values":{"total_time":4610,"average_time":1150,"percent":3.84}},{"from":"2019-10-15T11:57:00+00:00","to":"2019-10-15T11:59:00+00:00","values":{"total_time":4790,"average_time":1200,"percent":3.99}},{"from":"2019-10-15T11:59:00+00:00","to":"2019-10-15T12:01:00+00:00","values":{"total_time":4830,"average_time":1210,"percent":4.02}},{"from":"2019-10-15T12:01:00+00:00","to":"2019-10-15T12:03:00+00:00","values":{"total_time":12100,"average_time":3020,"percent":10.1}},{"from":"2019-10-15T12:03:00+00:00","to":"2019-10-15T12:05:00+00:00","values":{"total_time":7570,"average_time":1890,"percent":6.31}},{"from":"2019-10-15T12:05:00+00:00","to":"2019-10-15T12:07:00+00:00","values":{"total_time":4740,"average_time":1190,"percent":3.95}},{"from":"2019-10-15T12:07:00+00:00","to":"2019-10-15T12:09:00+00:00","values":{"total_time":6160,"average_time":1540,"percent":5.13}},{"from":"2019-10-15T12:09:00+00:00","to":"2019-10-15T12:11:00+00:00","values":{"total_time":4490,"average_time":1120,"percent":3.74}},{"from":"2019-10-15T12:11:00+00:00","to":"2019-10-15T12:13:00+00:00","values":{"total_time":11800,"average_time":2950,"percent":9.83}},{"from":"2019-10-15T12:13:00+00:00","to":"2019-10-15T12:15:00+00:00","values":{"total_time":8280,"average_time":2070,"percent":6.9}},{"from":"2019-10-15T12:15:00+00:00","to":"2019-10-15T12:17:00+00:00","values":{"total_time":5390,"average_time":1350,"percent":4.49}},{"from":"2019-10-15T12:17:00+00:00","to":"2019-10-15T12:19:00+00:00","values":{"total_time":5700,"average_time":1430,"percent":4.75}},{"from":"2019-10-15T12:19:00+00:00","to":"2019-10-15T12:21:00+00:00","values":{"total_time":4430,"average_time":1110,"percent":3.69}},{"from":"2019-10-15T12:21:00+00:00","to":"2019-10-15T12:23:00+00:00","values":{"total_time":12400,"average_time":3100,"percent":10.3}},{"from":"2019-10-15T12:23:00+00:00","to":"2019-10-15T12:25:00+00:00","values":{"total_time":8610,"average_time":2150,"percent":7.18}},{"from":"2019-10-15T12:25:00+00:00","to":"2019-10-15T12:27:00+00:00","values":{"total_time":4920,"average_time":1230,"percent":4.1}},{"from":"2019-10-15T12:27:00+00:00","to":"2019-10-15T12:29:00+00:00","values":{"total_time":4740,"average_time":1180,"percent":3.95}},{"from":"2019-10-15T12:29:00+00:00","to":"2019-10-15T12:31:00+00:00","values":{"total_time":4950,"average_time":1240,"percent":4.12}},{"from":"2019-10-15T12:31:00+00:00","to":"2019-10-15T12:33:00+00:00","values":{"total_time":11600,"average_time":2890,"percent":9.64}},{"from":"2019-10-15T12:33:00+00:00","to":"2019-10-15T12:35:00+00:00","values":{"total_time":8050,"average_time":2010,"percent":6.71}},{"from":"2019-10-15T12:35:00+00:00","to":"2019-10-15T12:37:00+00:00","values":{"total_time":4760,"average_time":1190,"percent":3.96}},{"from":"2019-10-15T12:37:00+00:00","to":"2019-10-15T12:39:00+00:00","values":{"total_time":5690,"average_time":1420,"percent":4.74}},{"from":"2019-10-15T12:39:00+00:00","to":"2019-10-15T12:41:00+00:00","values":{"total_time":4970,"average_time":1240,"percent":4.14}},{"from":"2019-10-15T12:41:00+00:00","to":"2019-10-15T12:43:00+00:00","values":{"total_time":12600,"average_time":3140,"percent":10.5}},{"from":"2019-10-15T12:43:00+00:00","to":"2019-10-15T12:45:00+00:00","values":{"total_time":7950,"average_time":1990,"percent":6.62}},{"from":"2019-10-15T12:45:00+00:00","to":"2019-10-15T12:47:00+00:00","values":{"total_time":4540,"average_time":1140,"percent":3.78}},{"from":"2019-10-15T12:47:00+00:00","to":"2019-10-15T12:49:00+00:00","values":{"total_time":4960,"average_time":1240,"percent":4.13}},{"from":"2019-10-15T12:49:00+00:00","to":"2019-10-15T12:51:00+00:00","values":{"total_time":4810,"average_time":1200,"percent":4.01}},{"from":"2019-10-15T12:51:00+00:00","to":"2019-10-15T12:53:00+00:00","values":{"total_time":11800,"average_time":2950,"percent":9.82}},{"from":"2019-10-15T12:53:00+00:00","to":"2019-10-15T12:55:00+00:00","values":{"total_time":8280,"average_time":2070,"percent":6.9}},{"from":"2019-10-15T12:55:00+00:00","to":"2019-10-15T12:57:00+00:00","values":{"total_time":4660,"average_time":1170,"percent":3.89}},{"from":"2019-10-15T12:57:00+00:00","to":"2019-10-15T12:59:00+00:00","values":{"total_time":4680,"average_time":1170,"percent":3.9}},{"from":"2019-10-15T12:59:00+00:00","to":"2019-10-15T13:01:00+00:00","values":{"total_time":5030,"average_time":1260,"percent":4.19}},{"from":"2019-10-15T13:01:00+00:00","to":"2019-10-15T13:03:00+00:00","values":{"total_time":13400,"average_time":3340,"percent":11.1}},{"from":"2019-10-15T13:03:00+00:00","to":"2019-10-15T13:05:00+00:00","values":{"total_time":8640,"average_time":2160,"percent":7.2}},{"from":"2019-10-15T13:05:00+00:00","to":"2019-10-15T13:07:00+00:00","values":{"total_time":4910,"average_time":1230,"percent":4.1}},{"from":"2019-10-15T13:07:00+00:00","to":"2019-10-15T13:09:00+00:00","values":{"total_time":4720,"average_time":1180,"percent":3.93}},{"from":"2019-10-15T13:09:00+00:00","to":"2019-10-15T13:11:00+00:00","values":{"total_time":4930,"average_time":1230,"percent":4.11}},{"from":"2019-10-15T13:11:00+00:00","to":"2019-10-15T13:13:00+00:00","values":{"total_time":13100,"average_time":3280,"percent":10.9}},{"from":"2019-10-15T13:13:00+00:00","to":"2019-10-15T13:15:00+00:00","values":{"total_time":7620,"average_time":1910,"percent":6.35}},{"from":"2019-10-15T13:15:00+00:00","to":"2019-10-15T13:17:00+00:00","values":{"total_time":4510,"average_time":1130,"percent":3.76}},{"from":"2019-10-15T13:17:00+00:00","to":"2019-10-15T13:19:00+00:00","values":{"total_time":4840,"average_time":1210,"percent":4.03}},{"from":"2019-10-15T13:19:00+00:00","to":"2019-10-15T13:21:00+00:00","values":{"total_time":4810,"average_time":1200,"percent":4.01}},{"from":"2019-10-15T13:21:00+00:00","to":"2019-10-15T13:23:00+00:00","values":{"total_time":12300,"average_time":3080,"percent":10.3}},{"from":"2019-10-15T13:23:00+00:00","to":"2019-10-15T13:25:00+00:00","values":{"total_time":8600,"average_time":2150,"percent":7.17}},{"from":"2019-10-15T13:25:00+00:00","to":"2019-10-15T13:27:00+00:00","values":{"total_time":4630,"average_time":1160,"percent":3.86}},{"from":"2019-10-15T13:27:00+00:00","to":"2019-10-15T13:29:00+00:00","values":{"total_time":4690,"average_time":1170,"percent":3.91}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/257875757/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://api.newrelic.com/v2/applications/257875757/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 6920
(base) sys-user@SMI-243:~/backup/aws$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 11805
Content-Type: application/json
Date: Tue, 15 Oct 2019 13:35:34 GMT
Etag: "67fab3b60c2515cd2013d47ea108b0e4"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: b37eb5f40d565c75a15b3254d388553e
X-Runtime: 0.105555
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T13:35:34+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:32:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:32:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:42:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:52:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:52:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T08:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:02:00+00:00","to":"2019-10-15T08:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:07:00+00:00","to":"2019-10-15T08:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:12:00+00:00","to":"2019-10-15T08:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:17:00+00:00","to":"2019-10-15T08:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:22:00+00:00","to":"2019-10-15T08:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:27:00+00:00","to":"2019-10-15T08:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:32:00+00:00","to":"2019-10-15T08:37:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:37:00+00:00","to":"2019-10-15T08:42:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:42:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T08:52:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:52:00+00:00","to":"2019-10-15T08:57:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T08:57:00+00:00","to":"2019-10-15T09:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":505000}},{"from":"2019-10-15T09:02:00+00:00","to":"2019-10-15T09:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T09:07:00+00:00","to":"2019-10-15T09:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:12:00+00:00","to":"2019-10-15T09:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:17:00+00:00","to":"2019-10-15T09:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:22:00+00:00","to":"2019-10-15T09:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:27:00+00:00","to":"2019-10-15T09:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:32:00+00:00","to":"2019-10-15T09:37:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:37:00+00:00","to":"2019-10-15T09:42:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:42:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T09:52:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:52:00+00:00","to":"2019-10-15T09:57:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T09:57:00+00:00","to":"2019-10-15T10:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:02:00+00:00","to":"2019-10-15T10:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:07:00+00:00","to":"2019-10-15T10:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:12:00+00:00","to":"2019-10-15T10:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:17:00+00:00","to":"2019-10-15T10:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:22:00+00:00","to":"2019-10-15T10:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:27:00+00:00","to":"2019-10-15T10:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":506000}},{"from":"2019-10-15T10:32:00+00:00","to":"2019-10-15T10:37:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T10:37:00+00:00","to":"2019-10-15T10:42:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T10:42:00+00:00","to":"2019-10-15T10:47:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T10:47:00+00:00","to":"2019-10-15T10:52:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T10:52:00+00:00","to":"2019-10-15T10:57:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T10:57:00+00:00","to":"2019-10-15T11:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:02:00+00:00","to":"2019-10-15T11:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:07:00+00:00","to":"2019-10-15T11:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:12:00+00:00","to":"2019-10-15T11:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:17:00+00:00","to":"2019-10-15T11:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:22:00+00:00","to":"2019-10-15T11:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:27:00+00:00","to":"2019-10-15T11:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:32:00+00:00","to":"2019-10-15T11:37:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:37:00+00:00","to":"2019-10-15T11:42:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:42:00+00:00","to":"2019-10-15T11:47:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:47:00+00:00","to":"2019-10-15T11:52:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:52:00+00:00","to":"2019-10-15T11:57:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T11:57:00+00:00","to":"2019-10-15T12:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:02:00+00:00","to":"2019-10-15T12:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:07:00+00:00","to":"2019-10-15T12:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:12:00+00:00","to":"2019-10-15T12:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:17:00+00:00","to":"2019-10-15T12:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:22:00+00:00","to":"2019-10-15T12:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:27:00+00:00","to":"2019-10-15T12:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:32:00+00:00","to":"2019-10-15T12:37:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:37:00+00:00","to":"2019-10-15T12:42:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:42:00+00:00","to":"2019-10-15T12:47:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:47:00+00:00","to":"2019-10-15T12:52:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:52:00+00:00","to":"2019-10-15T12:57:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T12:57:00+00:00","to":"2019-10-15T13:02:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T13:02:00+00:00","to":"2019-10-15T13:07:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":505000}},{"from":"2019-10-15T13:07:00+00:00","to":"2019-10-15T13:12:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":504000}},{"from":"2019-10-15T13:12:00+00:00","to":"2019-10-15T13:17:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T13:17:00+00:00","to":"2019-10-15T13:22:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T13:22:00+00:00","to":"2019-10-15T13:27:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}},{"from":"2019-10-15T13:27:00+00:00","to":"2019-10-15T13:32:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4220,"total_used_mb":507000}}]}]}}
STG-jobs:
appid:
110696991
host ID:
[ 207758326, 239896186 ]
curl -X GET "https://api.newrelic.com/v2/applications/110696991/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/110696991/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 10329
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 12759
Content-Type: application/json
Date: Tue, 15 Oct 2019 14:05:16 GMT
Etag: "44c7019f2c4bd70c75c0c6df2d1fea13"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 0caac2b4d9e83bfe8a0cad5c3c377338
X-Runtime: 0.061198
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T14:05:15+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:32:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":508000}},{"from":"2019-10-15T07:32:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":511000}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:42:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:52:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T07:52:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T08:02:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T08:02:00+00:00","to":"2019-10-15T08:07:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T08:07:00+00:00","to":"2019-10-15T08:12:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":507000}},{"from":"2019-10-15T08:12:00+00:00","to":"2019-10-15T08:17:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":512000}},{"from":"2019-10-15T08:17:00+00:00","to":"2019-10-15T08:22:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":511000}},{"from":"2019-10-15T08:22:00+00:00","to":"2019-10-15T08:27:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:27:00+00:00","to":"2019-10-15T08:32:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:32:00+00:00","to":"2019-10-15T08:37:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:37:00+00:00","to":"2019-10-15T08:42:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:42:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T08:52:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":511000}},{"from":"2019-10-15T08:52:00+00:00","to":"2019-10-15T08:57:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T08:57:00+00:00","to":"2019-10-15T09:02:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:02:00+00:00","to":"2019-10-15T09:07:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":511000}},{"from":"2019-10-15T09:07:00+00:00","to":"2019-10-15T09:12:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T09:12:00+00:00","to":"2019-10-15T09:17:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:17:00+00:00","to":"2019-10-15T09:22:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:22:00+00:00","to":"2019-10-15T09:27:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:27:00+00:00","to":"2019-10-15T09:32:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:32:00+00:00","to":"2019-10-15T09:37:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T09:37:00+00:00","to":"2019-10-15T09:42:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":511000}},{"from":"2019-10-15T09:42:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T09:52:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T09:52:00+00:00","to":"2019-10-15T09:57:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T09:57:00+00:00","to":"2019-10-15T10:02:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:02:00+00:00","to":"2019-10-15T10:07:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":509000}},{"from":"2019-10-15T10:07:00+00:00","to":"2019-10-15T10:12:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":507000}},{"from":"2019-10-15T10:12:00+00:00","to":"2019-10-15T10:17:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T10:17:00+00:00","to":"2019-10-15T10:22:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:22:00+00:00","to":"2019-10-15T10:27:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T10:27:00+00:00","to":"2019-10-15T10:32:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:32:00+00:00","to":"2019-10-15T10:37:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:37:00+00:00","to":"2019-10-15T10:42:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:42:00+00:00","to":"2019-10-15T10:47:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T10:47:00+00:00","to":"2019-10-15T10:52:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:52:00+00:00","to":"2019-10-15T10:57:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T10:57:00+00:00","to":"2019-10-15T11:02:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:02:00+00:00","to":"2019-10-15T11:07:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:07:00+00:00","to":"2019-10-15T11:12:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:12:00+00:00","to":"2019-10-15T11:17:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:17:00+00:00","to":"2019-10-15T11:22:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:22:00+00:00","to":"2019-10-15T11:27:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T11:27:00+00:00","to":"2019-10-15T11:32:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:32:00+00:00","to":"2019-10-15T11:37:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:37:00+00:00","to":"2019-10-15T11:42:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:42:00+00:00","to":"2019-10-15T11:47:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:47:00+00:00","to":"2019-10-15T11:52:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T11:52:00+00:00","to":"2019-10-15T11:57:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T11:57:00+00:00","to":"2019-10-15T12:02:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T12:02:00+00:00","to":"2019-10-15T12:07:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:07:00+00:00","to":"2019-10-15T12:12:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:12:00+00:00","to":"2019-10-15T12:17:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T12:17:00+00:00","to":"2019-10-15T12:22:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":503000}},{"from":"2019-10-15T12:22:00+00:00","to":"2019-10-15T12:27:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T12:27:00+00:00","to":"2019-10-15T12:32:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:32:00+00:00","to":"2019-10-15T12:37:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:37:00+00:00","to":"2019-10-15T12:42:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:42:00+00:00","to":"2019-10-15T12:47:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":514000}},{"from":"2019-10-15T12:47:00+00:00","to":"2019-10-15T12:52:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:52:00+00:00","to":"2019-10-15T12:57:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T12:57:00+00:00","to":"2019-10-15T13:02:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T13:02:00+00:00","to":"2019-10-15T13:07:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:07:00+00:00","to":"2019-10-15T13:12:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":511000}},{"from":"2019-10-15T13:12:00+00:00","to":"2019-10-15T13:17:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:17:00+00:00","to":"2019-10-15T13:22:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T13:22:00+00:00","to":"2019-10-15T13:27:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:27:00+00:00","to":"2019-10-15T13:32:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:32:00+00:00","to":"2019-10-15T13:37:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:37:00+00:00","to":"2019-10-15T13:42:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":511000}},{"from":"2019-10-15T13:42:00+00:00","to":"2019-10-15T13:47:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:47:00+00:00","to":"2019-10-15T13:52:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":513000}},{"from":"2019-10-15T13:52:00+00:00","to":"2019-10-15T13:57:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":512000}},{"from":"2019-10-15T13:57:00+00:00","to":"2019-10-15T14:02:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":508000}}]}]}}
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/110696991/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&values[]=used_mb_by_host&summarize=false&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 10465
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 8414
Content-Type: application/json
Date: Tue, 15 Oct 2019 14:06:49 GMT
Etag: "7bf6824725640a81f216ccf3d2ff70c7"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 3cc2dd81e29e74f19f1588fdf22e5d6a
X-Runtime: 0.064336
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T14:06:49+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:28:00+00:00","to":"2019-10-15T07:33:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:33:00+00:00","to":"2019-10-15T07:38:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:38:00+00:00","to":"2019-10-15T07:43:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:43:00+00:00","to":"2019-10-15T07:48:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:48:00+00:00","to":"2019-10-15T07:53:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:53:00+00:00","to":"2019-10-15T07:58:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T07:58:00+00:00","to":"2019-10-15T08:03:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T08:03:00+00:00","to":"2019-10-15T08:08:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T08:08:00+00:00","to":"2019-10-15T08:13:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T08:13:00+00:00","to":"2019-10-15T08:18:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T08:18:00+00:00","to":"2019-10-15T08:23:00+00:00","values":{"used_mb_by_host":4260}},{"from":"2019-10-15T08:23:00+00:00","to":"2019-10-15T08:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:28:00+00:00","to":"2019-10-15T08:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:33:00+00:00","to":"2019-10-15T08:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:38:00+00:00","to":"2019-10-15T08:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:43:00+00:00","to":"2019-10-15T08:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:48:00+00:00","to":"2019-10-15T08:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:53:00+00:00","to":"2019-10-15T08:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T08:58:00+00:00","to":"2019-10-15T09:03:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:03:00+00:00","to":"2019-10-15T09:08:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:08:00+00:00","to":"2019-10-15T09:13:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:13:00+00:00","to":"2019-10-15T09:18:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:18:00+00:00","to":"2019-10-15T09:23:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:23:00+00:00","to":"2019-10-15T09:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:28:00+00:00","to":"2019-10-15T09:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:33:00+00:00","to":"2019-10-15T09:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:38:00+00:00","to":"2019-10-15T09:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:43:00+00:00","to":"2019-10-15T09:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:48:00+00:00","to":"2019-10-15T09:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:53:00+00:00","to":"2019-10-15T09:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T09:58:00+00:00","to":"2019-10-15T10:03:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:03:00+00:00","to":"2019-10-15T10:08:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:08:00+00:00","to":"2019-10-15T10:13:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:13:00+00:00","to":"2019-10-15T10:18:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:18:00+00:00","to":"2019-10-15T10:23:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:23:00+00:00","to":"2019-10-15T10:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:28:00+00:00","to":"2019-10-15T10:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:33:00+00:00","to":"2019-10-15T10:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:38:00+00:00","to":"2019-10-15T10:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:43:00+00:00","to":"2019-10-15T10:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:48:00+00:00","to":"2019-10-15T10:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:53:00+00:00","to":"2019-10-15T10:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T10:58:00+00:00","to":"2019-10-15T11:03:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:03:00+00:00","to":"2019-10-15T11:08:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:08:00+00:00","to":"2019-10-15T11:13:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:13:00+00:00","to":"2019-10-15T11:18:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:18:00+00:00","to":"2019-10-15T11:23:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:23:00+00:00","to":"2019-10-15T11:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:28:00+00:00","to":"2019-10-15T11:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:33:00+00:00","to":"2019-10-15T11:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:38:00+00:00","to":"2019-10-15T11:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:43:00+00:00","to":"2019-10-15T11:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:48:00+00:00","to":"2019-10-15T11:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:53:00+00:00","to":"2019-10-15T11:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T11:58:00+00:00","to":"2019-10-15T12:03:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:03:00+00:00","to":"2019-10-15T12:08:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:08:00+00:00","to":"2019-10-15T12:13:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:13:00+00:00","to":"2019-10-15T12:18:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:18:00+00:00","to":"2019-10-15T12:23:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:23:00+00:00","to":"2019-10-15T12:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:28:00+00:00","to":"2019-10-15T12:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:33:00+00:00","to":"2019-10-15T12:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:38:00+00:00","to":"2019-10-15T12:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:43:00+00:00","to":"2019-10-15T12:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:48:00+00:00","to":"2019-10-15T12:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:53:00+00:00","to":"2019-10-15T12:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T12:58:00+00:00","to":"2019-10-15T13:03:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:03:00+00:00","to":"2019-10-15T13:08:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:08:00+00:00","to":"2019-10-15T13:13:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:13:00+00:00","to":"2019-10-15T13:18:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:18:00+00:00","to":"2019-10-15T13:23:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:23:00+00:00","to":"2019-10-15T13:28:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:28:00+00:00","to":"2019-10-15T13:33:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:33:00+00:00","to":"2019-10-15T13:38:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:38:00+00:00","to":"2019-10-15T13:43:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:43:00+00:00","to":"2019-10-15T13:48:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:48:00+00:00","to":"2019-10-15T13:53:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:53:00+00:00","to":"2019-10-15T13:58:00+00:00","values":{"used_mb_by_host":4270}},{"from":"2019-10-15T13:58:00+00:00","to":"2019-10-15T14:03:00+00:00","values":{"used_mb_by_host":4270}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/100540676/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 13533
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 11839
Content-Type: application/json
Date: Tue, 15 Oct 2019 14:35:33 GMT
Etag: "2cf5824547741c4da5a57f636bdf34b0"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 48a7771e0125aa2984a3f59252854d4a
X-Runtime: 0.074886
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T14:35:33+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-15T07:32:00+00:00","values":{"total_time":176000,"average_time":11700,"percent":58.5}},{"from":"2019-10-15T07:32:00+00:00","to":"2019-10-15T07:37:00+00:00","values":{"total_time":163000,"average_time":10800,"percent":54.2}},{"from":"2019-10-15T07:37:00+00:00","to":"2019-10-15T07:42:00+00:00","values":{"total_time":172000,"average_time":11500,"percent":57.3}},{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T07:47:00+00:00","values":{"total_time":159000,"average_time":10600,"percent":52.9}},{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T07:52:00+00:00","values":{"total_time":184000,"average_time":12300,"percent":61.3}},{"from":"2019-10-15T07:52:00+00:00","to":"2019-10-15T07:57:00+00:00","values":{"total_time":163000,"average_time":10900,"percent":54.3}},{"from":"2019-10-15T07:57:00+00:00","to":"2019-10-15T08:02:00+00:00","values":{"total_time":177000,"average_time":11800,"percent":59.1}},{"from":"2019-10-15T08:02:00+00:00","to":"2019-10-15T08:07:00+00:00","values":{"total_time":170000,"average_time":11300,"percent":56.5}},{"from":"2019-10-15T08:07:00+00:00","to":"2019-10-15T08:12:00+00:00","values":{"total_time":174000,"average_time":11600,"percent":57.9}},{"from":"2019-10-15T08:12:00+00:00","to":"2019-10-15T08:17:00+00:00","values":{"total_time":167000,"average_time":11100,"percent":55.5}},{"from":"2019-10-15T08:17:00+00:00","to":"2019-10-15T08:22:00+00:00","values":{"total_time":180000,"average_time":12000,"percent":60.0}},{"from":"2019-10-15T08:22:00+00:00","to":"2019-10-15T08:27:00+00:00","values":{"total_time":161000,"average_time":10700,"percent":53.6}},{"from":"2019-10-15T08:27:00+00:00","to":"2019-10-15T08:32:00+00:00","values":{"total_time":176000,"average_time":11800,"percent":58.8}},{"from":"2019-10-15T08:32:00+00:00","to":"2019-10-15T08:37:00+00:00","values":{"total_time":166000,"average_time":11100,"percent":55.5}},{"from":"2019-10-15T08:37:00+00:00","to":"2019-10-15T08:42:00+00:00","values":{"total_time":175000,"average_time":11700,"percent":58.4}},{"from":"2019-10-15T08:42:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"total_time":162000,"average_time":10800,"percent":54.1}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T08:52:00+00:00","values":{"total_time":182000,"average_time":12100,"percent":60.6}},{"from":"2019-10-15T08:52:00+00:00","to":"2019-10-15T08:57:00+00:00","values":{"total_time":161000,"average_time":10700,"percent":53.5}},{"from":"2019-10-15T08:57:00+00:00","to":"2019-10-15T09:02:00+00:00","values":{"total_time":173000,"average_time":11500,"percent":57.7}},{"from":"2019-10-15T09:02:00+00:00","to":"2019-10-15T09:07:00+00:00","values":{"total_time":166000,"average_time":11000,"percent":55.2}},{"from":"2019-10-15T09:07:00+00:00","to":"2019-10-15T09:12:00+00:00","values":{"total_time":179000,"average_time":12000,"percent":59.8}},{"from":"2019-10-15T09:12:00+00:00","to":"2019-10-15T09:17:00+00:00","values":{"total_time":159000,"average_time":10600,"percent":53.1}},{"from":"2019-10-15T09:17:00+00:00","to":"2019-10-15T09:22:00+00:00","values":{"total_time":174000,"average_time":11600,"percent":58.0}},{"from":"2019-10-15T09:22:00+00:00","to":"2019-10-15T09:27:00+00:00","values":{"total_time":166000,"average_time":11100,"percent":55.4}},{"from":"2019-10-15T09:27:00+00:00","to":"2019-10-15T09:32:00+00:00","values":{"total_time":175000,"average_time":11700,"percent":58.3}},{"from":"2019-10-15T09:32:00+00:00","to":"2019-10-15T09:37:00+00:00","values":{"total_time":162000,"average_time":10800,"percent":54.1}},{"from":"2019-10-15T09:37:00+00:00","to":"2019-10-15T09:42:00+00:00","values":{"total_time":173000,"average_time":11600,"percent":57.8}},{"from":"2019-10-15T09:42:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"total_time":158000,"average_time":10500,"percent":52.6}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T09:52:00+00:00","values":{"total_time":176000,"average_time":11700,"percent":58.7}},{"from":"2019-10-15T09:52:00+00:00","to":"2019-10-15T09:57:00+00:00","values":{"total_time":169000,"average_time":11300,"percent":56.3}},{"from":"2019-10-15T09:57:00+00:00","to":"2019-10-15T10:02:00+00:00","values":{"total_time":180000,"average_time":12000,"percent":60.0}},{"from":"2019-10-15T10:02:00+00:00","to":"2019-10-15T10:07:00+00:00","values":{"total_time":162000,"average_time":10800,"percent":54.1}},{"from":"2019-10-15T10:07:00+00:00","to":"2019-10-15T10:12:00+00:00","values":{"total_time":183000,"average_time":12200,"percent":61.1}},{"from":"2019-10-15T10:12:00+00:00","to":"2019-10-15T10:17:00+00:00","values":{"total_time":160000,"average_time":10700,"percent":53.4}},{"from":"2019-10-15T10:17:00+00:00","to":"2019-10-15T10:22:00+00:00","values":{"total_time":190000,"average_time":12600,"percent":63.2}},{"from":"2019-10-15T10:22:00+00:00","to":"2019-10-15T10:27:00+00:00","values":{"total_time":165000,"average_time":11000,"percent":54.9}},{"from":"2019-10-15T10:27:00+00:00","to":"2019-10-15T10:32:00+00:00","values":{"total_time":185000,"average_time":12300,"percent":61.7}},{"from":"2019-10-15T10:32:00+00:00","to":"2019-10-15T10:37:00+00:00","values":{"total_time":161000,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T10:37:00+00:00","to":"2019-10-15T10:42:00+00:00","values":{"total_time":185000,"average_time":12300,"percent":61.6}},{"from":"2019-10-15T10:42:00+00:00","to":"2019-10-15T10:47:00+00:00","values":{"total_time":162000,"average_time":10800,"percent":53.9}},{"from":"2019-10-15T10:47:00+00:00","to":"2019-10-15T10:52:00+00:00","values":{"total_time":176000,"average_time":11700,"percent":58.7}},{"from":"2019-10-15T10:52:00+00:00","to":"2019-10-15T10:57:00+00:00","values":{"total_time":157000,"average_time":10500,"percent":52.4}},{"from":"2019-10-15T10:57:00+00:00","to":"2019-10-15T11:02:00+00:00","values":{"total_time":184000,"average_time":12300,"percent":61.3}},{"from":"2019-10-15T11:02:00+00:00","to":"2019-10-15T11:07:00+00:00","values":{"total_time":161000,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T11:07:00+00:00","to":"2019-10-15T11:12:00+00:00","values":{"total_time":183000,"average_time":12200,"percent":61.0}},{"from":"2019-10-15T11:12:00+00:00","to":"2019-10-15T11:17:00+00:00","values":{"total_time":161000,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T11:17:00+00:00","to":"2019-10-15T11:22:00+00:00","values":{"total_time":177000,"average_time":11800,"percent":59.1}},{"from":"2019-10-15T11:22:00+00:00","to":"2019-10-15T11:27:00+00:00","values":{"total_time":166000,"average_time":11100,"percent":55.4}},{"from":"2019-10-15T11:27:00+00:00","to":"2019-10-15T11:32:00+00:00","values":{"total_time":178000,"average_time":11900,"percent":59.4}},{"from":"2019-10-15T11:32:00+00:00","to":"2019-10-15T11:37:00+00:00","values":{"total_time":160000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T11:37:00+00:00","to":"2019-10-15T11:42:00+00:00","values":{"total_time":177000,"average_time":11800,"percent":59.0}},{"from":"2019-10-15T11:42:00+00:00","to":"2019-10-15T11:47:00+00:00","values":{"total_time":173000,"average_time":11600,"percent":57.8}},{"from":"2019-10-15T11:47:00+00:00","to":"2019-10-15T11:52:00+00:00","values":{"total_time":192000,"average_time":12800,"percent":63.9}},{"from":"2019-10-15T11:52:00+00:00","to":"2019-10-15T11:57:00+00:00","values":{"total_time":166000,"average_time":11100,"percent":55.4}},{"from":"2019-10-15T11:57:00+00:00","to":"2019-10-15T12:02:00+00:00","values":{"total_time":190000,"average_time":12700,"percent":63.4}},{"from":"2019-10-15T12:02:00+00:00","to":"2019-10-15T12:07:00+00:00","values":{"total_time":167000,"average_time":11100,"percent":55.6}},{"from":"2019-10-15T12:07:00+00:00","to":"2019-10-15T12:12:00+00:00","values":{"total_time":176000,"average_time":11800,"percent":58.8}},{"from":"2019-10-15T12:12:00+00:00","to":"2019-10-15T12:17:00+00:00","values":{"total_time":167000,"average_time":11200,"percent":55.8}},{"from":"2019-10-15T12:17:00+00:00","to":"2019-10-15T12:22:00+00:00","values":{"total_time":189000,"average_time":12600,"percent":63.0}},{"from":"2019-10-15T12:22:00+00:00","to":"2019-10-15T12:27:00+00:00","values":{"total_time":167000,"average_time":11100,"percent":55.7}},{"from":"2019-10-15T12:27:00+00:00","to":"2019-10-15T12:32:00+00:00","values":{"total_time":179000,"average_time":11900,"percent":59.6}},{"from":"2019-10-15T12:32:00+00:00","to":"2019-10-15T12:37:00+00:00","values":{"total_time":164000,"average_time":11000,"percent":54.8}},{"from":"2019-10-15T12:37:00+00:00","to":"2019-10-15T12:42:00+00:00","values":{"total_time":177000,"average_time":11800,"percent":58.9}},{"from":"2019-10-15T12:42:00+00:00","to":"2019-10-15T12:47:00+00:00","values":{"total_time":164000,"average_time":10900,"percent":54.5}},{"from":"2019-10-15T12:47:00+00:00","to":"2019-10-15T12:52:00+00:00","values":{"total_time":186000,"average_time":12400,"percent":61.9}},{"from":"2019-10-15T12:52:00+00:00","to":"2019-10-15T12:57:00+00:00","values":{"total_time":163000,"average_time":10900,"percent":54.4}},{"from":"2019-10-15T12:57:00+00:00","to":"2019-10-15T13:02:00+00:00","values":{"total_time":179000,"average_time":11900,"percent":59.6}},{"from":"2019-10-15T13:02:00+00:00","to":"2019-10-15T13:07:00+00:00","values":{"total_time":166000,"average_time":11000,"percent":55.2}},{"from":"2019-10-15T13:07:00+00:00","to":"2019-10-15T13:12:00+00:00","values":{"total_time":182000,"average_time":12100,"percent":60.8}},{"from":"2019-10-15T13:12:00+00:00","to":"2019-10-15T13:17:00+00:00","values":{"total_time":160000,"average_time":10700,"percent":53.3}},{"from":"2019-10-15T13:17:00+00:00","to":"2019-10-15T13:22:00+00:00","values":{"total_time":178000,"average_time":11800,"percent":59.2}},{"from":"2019-10-15T13:22:00+00:00","to":"2019-10-15T13:27:00+00:00","values":{"total_time":163000,"average_time":10800,"percent":54.2}},{"from":"2019-10-15T13:27:00+00:00","to":"2019-10-15T13:32:00+00:00","values":{"total_time":185000,"average_time":12300,"percent":61.5}},{"from":"2019-10-15T13:32:00+00:00","to":"2019-10-15T13:37:00+00:00","values":{"total_time":161000,"average_time":10700,"percent":53.7}},{"from":"2019-10-15T13:37:00+00:00","to":"2019-10-15T13:42:00+00:00","values":{"total_time":184000,"average_time":12300,"percent":61.4}},{"from":"2019-10-15T13:42:00+00:00","to":"2019-10-15T13:47:00+00:00","values":{"total_time":170000,"average_time":11400,"percent":56.8}},{"from":"2019-10-15T13:47:00+00:00","to":"2019-10-15T13:52:00+00:00","values":{"total_time":189000,"average_time":12600,"percent":63.0}},{"from":"2019-10-15T13:52:00+00:00","to":"2019-10-15T13:57:00+00:00","values":{"total_time":161000,"average_time":10800,"percent":53.8}},{"from":"2019-10-15T13:57:00+00:00","to":"2019-10-15T14:02:00+00:00","values":{"total_time":186000,"average_time":12400,"percent":62.1}},{"from":"2019-10-15T14:02:00+00:00","to":"2019-10-15T14:07:00+00:00","values":{"total_time":162000,"average_time":10800,"percent":53.9}},{"from":"2019-10-15T14:07:00+00:00","to":"2019-10-15T14:12:00+00:00","values":{"total_time":179000,"average_time":12000,"percent":59.8}},{"from":"2019-10-15T14:12:00+00:00","to":"2019-10-15T14:17:00+00:00","values":{"total_time":166000,"average_time":11100,"percent":55.5}},{"from":"2019-10-15T14:17:00+00:00","to":"2019-10-15T14:22:00+00:00","values":{"total_time":179000,"average_time":11900,"percent":59.7}},{"from":"2019-10-15T14:22:00+00:00","to":"2019-10-15T14:27:00+00:00","values":{"total_time":160000,"average_time":10700,"percent":53.5}},{"from":"2019-10-15T14:27:00+00:00","to":"2019-10-15T14:32:00+00:00","values":{"total_time":187000,"average_time":12500,"percent":62.3}}]}]}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/_cat/indices?v&pretty"
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open dev-testframework-stats-2019.10.01 5 0 0 0 795b 795b
green open testfw-replay-dev-5d973aca59dfed10463d4ba3-cpu-utilization 5 1 16 0 130.6kb 65.3kb
green open testfw-replay-stg-5d97ca0ab2cf58103d77b495-cpu-utilization 5 1 120 0 136.6kb 68.3kb
green open testfw-replay-dev-5da42af422efd210345c63b8-cpu-utilization 5 1 50 0 243kb 121.5kb
green open stg-minion-jtl-logs-2019.10.09 5 1 16330 0 9.5mb 4.7mb
green open testfw-replay-dev-5da408ab3569c0102f7a2a75-cpu-utilization 5 1 50 0 150.5kb 75.2kb
green open testfw-replay-dev-5d96ead859dfed10463d4b91-cpu-utilization 5 1 11494 0 1.9mb 982kb
green open testfw-replay-stg-5d97a479b2cf58103d77b47f-cpu-utilization 5 1 141 0 276kb 138kb
green open stg-minion-jtl-logs-2019.10.08 5 1 117707 0 65.6mb 32.8mb
green open stg-minion-jtl-logs-2019.10.07 5 1 292210 0 162.8mb 81.4mb
green open testfw-replay-stg-5d9b5bc4b2cf58103d77b4dd-cpu-utilization 5 1 126 0 187.2kb 93.6kb
green open testfw-replay-dev-5d972e1a59dfed10463d4b9f-cpu-utilization 5 1 43 0 278.5kb 139.2kb
green open testfw-replay-dev-5d8479b8a37dc0101654bbab-cpu-utilization 5 1 6023 0 1.1mb 592.1kb
green open stg-minion-jtl-logs-2019.10.01 5 1 4411 0 3.3mb 1.7mb
green open testfw-replay-dev-5d9f1bc87a3e50102a4d7b61-cpu-utilization 5 1 995 0 317.4kb 158.7kb
green open stg-topbeat-2019.10.09 5 1 0 0 1.5kb 805b
green open stg-minion-jtl-logs-2019.10.05 5 1 156958 0 81.6mb 40.7mb
green open testfw-replay-stg-5da425b8b2cf58103d77b576-cpu-utilization 5 1 28 0 219.6kb 109.8kb
green open stg-topbeat-2019.10.08 5 1 0 0 1.5kb 805b
green open stg-minion-jtl-logs-2019.10.04 5 1 51515 0 27.6mb 13.7mb
green open testfw-replay-dev-5d96edac59dfed10463d4b95-cpu-utilization 5 1 18 0 130.9kb 65.4kb
green open stg-minion-jtl-logs-2019.10.03 5 1 13104 0 8.4mb 4.2mb
green open stg-topbeat-2019.10.05 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.07 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.04 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.06 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.07 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.09 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.06 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.08 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.01 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.03 5 0 0 0 795b 795b
green open dev-testframework-stats-2019.10.02 5 0 0 0 795b 795b
green open dev-testframework-stats-2019.10.05 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.03 5 1 0 0 1.5kb 805b
green open dev-testframework-stats-2019.10.04 5 0 0 0 795b 795b
green open stg-topbeat-2019.10.02 5 1 0 0 1.5kb 776b
green open dev-testframework-stats-2019.10.10 5 0 0 0 795b 795b
green open dev-testframework-stats-2019.10.12 5 0 18000 11511 5.8mb 5.8mb
green open testfw-replay-dev-5da452867a3e50124c942a73-cpu-utilization 5 1 22 0 179.2kb 89.6kb
green open dev-testframework-stats-2019.10.11 5 0 0 0 795b 795b
green open testfw-replay-dev-5d9c8acd0b53361283d0c63b-cpu-utilization 5 1 16 0 107.9kb 53.9kb
green open testfw-replay-dev-5da54f02f2d427100e3dc690-cpu-utilization 5 1 50 0 289.6kb 144.8kb
green open testfw-replay-dev-5d9eb87d7a3e50102a4d7b5d-cpu-utilization 5 1 9 0 66.4kb 33.2kb
green open testfw-replay-dev-5d96079455d850100a35d415-cpu-utilization 5 1 1425 0 415.1kb 207.5kb
green open testfw-replay-dev-5da033f37a3e50124c942a65-cpu-utilization 5 1 1861 0 566.5kb 283.2kb
green open testfw-replay-dev-5d96e8ab59dfed10463d4b8f-cpu-utilization 5 1 10209 0 1.7mb 914.1kb
green open testfw-replay-stg-5d851d4dde6994102665eeb3-cpu-utilization 5 1 4490 0 937kb 466.5kb
green open testfw-replay-dev-5d92d7f1bb08ec1025ca0815-cpu-utilization 5 1 26 0 203.7kb 101.8kb
green open testfw-replay-stg-5d97c460b2cf58103d77b491-cpu-utilization 5 1 8236 0 1.5mb 814.6kb
green open testfw-replay-dev-5d849d6b188a5a10311e77bf-cpu-utilization 5 1 10909 0 1.8mb 974.7kb
green open testfw-replay-stg-5d9629a2b2cf58103d77b456-cpu-utilization 5 1 18 0 146.4kb 73.2kb
green open dev-minion-jtl-logs-2019.10.03 5 1 165 0 691.4kb 356.1kb
green open testfw-replay-stg-5d965a5ab2cf58103d77b45a-cpu-utilization 5 1 38 0 277.2kb 138.6kb
green open dev-minion-jtl-logs-2019.10.04 5 1 37 0 676.9kb 338.4kb
green open stg-minion-jtl-logs-2019.10.11 5 1 45765 0 26mb 13mb
green open stg-minion-jtl-logs-2019.10.10 5 1 12 0 145.2kb 72.6kb
green open dev-minion-jtl-logs-2019.10.01 5 1 207 0 820.8kb 410.4kb
green open dev-topbeat-2019.10.08 5 1 0 0 1.5kb 805b
green open dev-topbeat-2019.10.07 5 1 0 0 1.5kb 805b
green open stg-minion-jtl-logs-2019.10.14 5 1 1007 0 1.4mb 761.9kb
green open testfw-replay-dev-5d92de6dfadd4a101251b170-cpu-utilization 5 1 21 0 155.7kb 77.8kb
green open dev-topbeat-2019.10.09 5 1 0 0 1.5kb 795b
green open dev-topbeat-2019.10.04 5 1 0 0 1.5kb 805b
green open dev-topbeat-2019.10.03 5 1 0 0 1.5kb 805b
green open dev-topbeat-2019.10.06 5 1 0 0 1.5kb 805b
green open dev-topbeat-2019.10.05 5 1 0 0 1.5kb 805b
green open testfw-replay-dev-5d83d2c037753c1022ef72d6-cpu-utilization 5 1 7563 0 1.3mb 701.4kb
green open dev-testframework-stats-2019.10.14 5 0 31284 0 6.4mb 6.4mb
green open testfw-replay-dev-5d96f66159dfed10463d4b9b-cpu-utilization 5 1 18 0 146.6kb 73.3kb
green open testfw-replay-dev-5d9d9b930db8cf15aae19651-cpu-utilization 5 1 1 0 9.5kb 4.7kb
green open dev-testframework-stats-2019.10.13 5 0 25920 0 4.9mb 4.9mb
green open testfw-replay-dev-5da02e92d4f449101e40f1a2-cpu-utilization 5 1 50 0 150.6kb 75.3kb
green open dev-topbeat-2019.10.02 5 1 0 0 1.5kb 805b
green open testfw-replay-dev-5d97402459dfed10463d4bb5-cpu-utilization 5 1 8216 0 1.5mb 772.9kb
green open dev-testframework-stats-2019.10.15 5 0 12546 0 3.1mb 3.1mb
green open testfw-replay-stg-5d965df2b2cf58103d77b46a-cpu-utilization 5 1 10 0 81.9kb 40.9kb
green open testfw-replay-dev-5da0772b6ece21102ee417c1-cpu-utilization 5 1 50 0 242.6kb 121.3kb
green open testfw-replay-dev-5d95e21f59dfed10463d4b8b-cpu-utilization 5 1 9 0 74kb 37kb
green open testfw-replay-stg-5d92f4bd4defbb1037f39e4a-cpu-utilization 5 1 64 0 256.2kb 128.1kb
green open testfw-replay-dev-5da55b04f2d427100e3dc694-cpu-utilization 5 1 16 0 107.8kb 53.9kb
green open testfw-replay-dev-5d934696b24e9d10261dd28f-cpu-utilization 5 1 122 0 250kb 125kb
green open testfw-replay-stg-5d990f71b2cf58103d77b4c5-cpu-utilization 5 1 338 0 275.2kb 135.6kb
green open testfw-replay-dev-5d95d7c5ef7e211037528f77-cpu-utilization 5 1 10 0 74.4kb 37.2kb
green open testfw-replay-dev-5d974fb69e07a00fff0dbcd9-cpu-utilization 5 1 16 0 115.4kb 57.7kb
green open testfw-replay-dev-5da42bf722efd210345c63be-cpu-utilization 5 1 1 0 9.5kb 4.7kb
green open testfw-replay-dev-5d974e099e07a00fff0dbcd5-cpu-utilization 5 1 1 0 9.5kb 4.7kb
green open testfw-replay-dev-5d9d7d640db8cf102a373df2-cpu-utilization 5 1 254 0 236.5kb 118.2kb
green open testfw-replay-stg-5d9ba1e3b2cf58103d77b51d-cpu-utilization 5 1 1532 0 529.4kb 250.9kb
green open testfw-replay-stg-5d8554afde6994102665eec6-cpu-utilization 5 1 7967 0 1.4mb 741.9kb
green open testfw-replay-dev-5d97202a9e07a00fff0dbccd-cpu-utilization 5 1 13 0 91.2kb 45.6kb
green open testfw-replay-stg-5d9e5e9fb2cf58103d77b565-cpu-utilization 5 1 38 0 215.3kb 107.6kb
green open testfw-replay-dev-5da42cfd22efd210345c63c0-cpu-utilization 5 1 50 0 181.1kb 90.5kb
green open stg-topbeat-2019.10.10 5 1 0 0 1.5kb 805b
green open testfw-replay-dev-5d9ebb6d7a3e50102a4d7b5f-cpu-utilization 5 1 24 0 179.7kb 89.8kb
green open testfw-replay-dev-5d9d9692bda38910508cc93d-cpu-utilization 5 1 16 0 115.5kb 57.7kb
green open testfw-replay-stg-5d980f9cb2cf58103d77b49d-cpu-utilization 5 1 216 0 196.3kb 98.1kb
green open testfw-replay-stg-5d9dc641b2cf58103d77b553-cpu-utilization 5 1 32 0 213.8kb 106.9kb
green open testfw-replay-dev-5d9c7e9d0b53361283d0c637-cpu-utilization 5 1 8 0 66.1kb 33kb
green open testfw-replay-dev-5d9ca0e426940c102190de0c-cpu-utilization 5 1 16 0 115.4kb 57.7kb
green open testfw-replay-dev-5d9faff67a3e50124c942a63-cpu-utilization 5 1 7 0 58kb 29kb
green open testfw-replay-dev-5d95c949ef7e211037528f73-cpu-utilization 5 1 134 0 212.8kb 106.4kb
green open testfw-replay-dev-5da3fc343569c0102f7a2a6d-cpu-utilization 5 1 25 0 203.5kb 101.7kb
green open testfw-replay-dev-5d89c82edbe80a1023e230d2-cpu-utilization 5 1 1586 0 541.8kb 270.9kb
green open testfw-replay-dev-5da072036ece21102ee417bd-cpu-utilization 5 1 27 0 219.3kb 109.6kb
green open testfw-replay-dev-5d9738c859dfed10463d4ba1-cpu-utilization 5 1 8 0 66.1kb 33kb
green open testfw-replay-stg-5da03be1b2cf58103d77b569-cpu-utilization 5 1 1054 0 469.4kb 244.5kb
green open stg-topbeat-2019.10.15 5 1 1560330 0 698.5mb 359.2mb
green open testfw-replay-dev-5d973b7d59dfed10463d4ba9-cpu-utilization 5 1 8224 0 1.5mb 779.7kb
green open stg-topbeat-2019.10.12 5 1 2860150 272842 1.3gb 693mb
green open stg-topbeat-2019.10.11 5 1 0 0 1.5kb 805b
green open stg-topbeat-2019.10.14 5 1 4443573 0 1.9gb 978.1mb
green open stg-topbeat-2019.10.13 5 1 4416177 0 1.9gb 973.2mb
green open testfw-replay-dev-5da42e6a22efd210345c63c2-cpu-utilization 5 1 18 0 131.7kb 65.8kb
green open testfw-replay-dev-5da55232ff28b91002e18ae2-cpu-utilization 5 1 25 0 203.1kb 101.5kb
green open testfw-replay-dev-5d96f1d959dfed10463d4b99-cpu-utilization 5 1 11 0 90.4kb 45.2kb
green open testfw-replay-dev-5d958514ef7e211037528f6e-cpu-utilization 5 1 54 0 190.6kb 95.3kb
green open testfw-replay-dev-5d9f38a37a3e50124c942a4e-cpu-utilization 5 1 26 0 188.5kb 94.2kb
green open testfw-replay-dev-5d934bb6b24e9d10261dd291-cpu-utilization 5 1 39 0 176.9kb 88.4kb
green open testfw-replay-dev-5d9defa1bda38903786e0981-cpu-utilization 5 1 38 0 207.4kb 103.7kb
green open testfw-replay-dev-5d9dedf8bda38903786e097f-cpu-utilization 5 1 8 0 66kb 33kb
green open testfw-replay-dev-5d84a42ea37dc0101654bbb3-cpu-utilization 5 1 4823 0 965.2kb 484.6kb
green open testfw-replay-dev-5d96ecfd59dfed10463d4b93-cpu-utilization 5 1 6115 0 1.2mb 619.8kb
green open testfw-replay-dev-5d9f37d57a3e50124c942a4a-cpu-utilization 5 1 9 0 74.1kb 37kb
green open testfw-replay-stg-5d9b54b5b2cf58103d77b4d5-cpu-utilization 5 1 192 0 235.5kb 117.7kb
green open testfw-replay-dev-5d9753d49e07a00fff0dbcdf-cpu-utilization 5 1 9016 0 1.6mb 824.9kb
green open testfw-replay-dev-5da430d722efd210345c63c4-cpu-utilization 5 1 74 0 180.2kb 90.1kb
green open testfw-replay-dev-5d83d5f637753c1022ef72d8-cpu-utilization 5 1 4966 0 986.2kb 491.1kb
green open testfw-replay-dev-5d9f40e47a3e50124c942a51-cpu-utilization 5 1 9084 0 1.5mb 781.3kb
green open testfw-replay-dev-5d84f07c468487101adadc53-cpu-utilization 5 1 5203 0 1mb 534.4kb
green open testfw-replay-stg-5d9589e7831f171038840d7a-cpu-utilization 5 1 315 0 276.2kb 138.1kb
green open testfw-replay-dev-5da49a6695ad3f1016cf2657-cpu-utilization 5 1 25 0 203.1kb 101.5kb
green open stg-testframework-stats-2019.10.14 5 0 43210 0 8.6mb 8.6mb
green open stg-testframework-stats-2019.10.15 5 0 18243 0 4.1mb 4.1mb
green open testfw-replay-dev-5d9d7b5c0db8cf102a373def-cpu-utilization 5 1 485 0 283.2kb 141.6kb
green open testfw-replay-dev-5d9340adb24e9d10261dd28b-cpu-utilization 5 1 13 0 106.3kb 53.1kb
green open testfw-replay-dev-5d974f799e07a00fff0dbcd7-cpu-utilization 5 1 7026 0 1.3mb 695.7kb
green open testfw-replay-dev-5d93536cfadd4a101251b172-cpu-utilization 5 1 26 0 181kb 90.5kb
green open stg-testframework-stats-2019.10.12 5 0 25165 15755 7.9mb 7.9mb
green open dev-minion-logs-2019.10.01 5 1 13 0 1.1mb 573.7kb
green open stg-testframework-stats-2019.10.13 5 0 40052 0 7.7mb 7.7mb
green open testfw-replay-dev-5d95debd59dfed10463d4b87-cpu-utilization 5 1 13 0 106.3kb 53.1kb
green open stg-testframework-stats-2019.10.10 5 0 0 0 795b 795b
green open testfw-replay-dev-5d88bb45468487101adadc6b-cpu-utilization 5 1 5628 0 1mb 526.2kb
green open stg-testframework-stats-2019.10.11 5 0 0 0 795b 795b
green open testfw-replay-dev-5d84ec61468487101adadc4f-cpu-utilization 5 1 7034 0 1.3mb 674.3kb
green open testfw-replay-dev-5d9722299e07a00fff0dbccf-cpu-utilization 5 1 8 0 66kb 33kb
green open dev-minion-jtl-logs-2019.10.09 5 1 87 0 693.2kb 346.6kb
green open dev-minion-logs-2019.10.03 5 1 18 0 1.2mb 617.7kb
green open dev-minion-jtl-logs-2019.10.08 5 1 16 0 282.7kb 141.3kb
green open dev-minion-jtl-logs-2019.10.14 5 1 178 0 1mb 540.9kb
green open testfw-replay-stg-5d92fa364defbb1037f39e4d-cpu-utilization 5 1 490 0 403.2kb 201.6kb
green open dev-minion-jtl-logs-2019.10.15 5 1 101 0 751.3kb 375.6kb
green open testfw-replay-dev-5d96046d55d850100a35d411-cpu-utilization 5 1 9 0 74.1kb 37kb
green open testfw-replay-dev-5d97515f9e07a00fff0dbcdb-cpu-utilization 5 1 16 0 115.1kb 57.5kb
green open testfw-replay-stg-5da4cda7b2cf58103d77b578-cpu-utilization 5 1 18 0 138.7kb 69.3kb
green open dev-minion-jtl-logs-2019.10.10 5 1 31 0 433.2kb 216.6kb
green open dev-minion-jtl-logs-2019.10.11 5 1 50 0 1mb 519.1kb
green open dev-cpu-utilization 5 1 64051 34 20.4mb 13.5mb
green open stg-testframework-stats-2019.10.05 5 0 0 0 795b 795b
green open dev-topbeat-2019.10.15 5 1 697163 0 310.9mb 159.6mb
green open stg-testframework-stats-2019.10.06 5 0 0 0 795b 795b
green open dev-topbeat-2019.10.14 5 1 1841028 0 804.8mb 402.3mb
green open stg-testframework-stats-2019.10.03 5 0 0 0 795b 795b
green open testfw-replay-dev-5d973f4d59dfed10463d4bb3-cpu-utilization 5 1 5259 0 1mb 549.3kb
green open stg-testframework-stats-2019.10.04 5 0 0 0 795b 795b
green open dev-topbeat-2019.10.11 5 1 0 0 1.5kb 795b
green open stg-testframework-stats-2019.10.09 5 0 0 0 795b 795b
green open testfw-replay-dev-5da0a8c27a3e50124c942a69-cpu-utilization 5 1 24 0 172kb 86kb
green open testfw-replay-dev-5d95e6969fa5c31012bb5d16-cpu-utilization 5 1 18 0 139kb 69.5kb
green open testfw-replay-dev-5d84edda468487101adadc51-cpu-utilization 5 1 7436 0 1.3mb 688.5kb
green open dev-topbeat-2019.10.10 5 1 0 0 1.5kb 795b
green open dev-topbeat-2019.10.13 5 1 1648017 0 717.7mb 358.8mb
green open stg-testframework-stats-2019.10.07 5 0 0 0 795b 795b
green open stg-testframework-stats-2019.10.08 5 0 0 0 795b 795b
green open dev-topbeat-2019.10.12 5 1 1100748 653859 762.4mb 381.3mb
green open testfw-replay-dev-5d88b9ef468487101adadc67-cpu-utilization 5 1 7977 0 1.3mb 697.7kb
green open stg-testframework-stats-2019.10.01 5 0 0 0 795b 795b
green open stg-testframework-stats-2019.10.02 5 0 0 0 795b 795b
green open testfw-replay-dev-5d9c4971d1449010126884f5-cpu-utilization 5 1 236 0 331.8kb 165.9kb
green open testfw-replay-dev-5d970e829e07a00fff0dbcc9-cpu-utilization 5 1 18 0 124kb 62kb
green open testfw-replay-dev-5d9d9c780db8cf15aae19653-cpu-utilization 5 1 30 0 243.9kb 121.9kb
green open testfw-replay-stg-5d981601b2cf58103d77b4a5-cpu-utilization 5 1 941 0 367kb 193.3kb
green open testfw-replay-stg-5d9dcb71b2cf58103d77b555-cpu-utilization 5 1 30 0 234.8kb 117.4kb
green open testfw-replay-stg-5d965f24b2cf58103d77b46c-cpu-utilization 5 1 10 0 82kb 41kb
green open testfw-replay-dev-5d9eb6d57a3e50102a4d7b5b-cpu-utilization 5 1 4795 0 1mb 543.8kb
green open testfw-replay-dev-5da411663569c0102f7a2a77-cpu-utilization 5 1 52 0 227.5kb 113.7kb
green open testfw-replay-stg-5d979653b2cf58103d77b47a-cpu-utilization 5 1 145 0 285.8kb 142.9kb
green open testfw-replay-dev-5d9e4f357a3e50102a4d7b53-cpu-utilization 5 1 26 0 196.4kb 98.2kb
green open testfw-replay-dev-5d96cacf59dfed10463d4b8d-cpu-utilization 5 1 7661 0 1.4mb 740.9kb
green open testfw-replay-stg-5d978622b2cf58103d77b475-cpu-utilization 5 1 72 0 168kb 84kb
green open testfw-replay-dev-5d9f2360a1b58c102e16fa57-cpu-utilization 5 1 1454 0 504.5kb 252.2kb
green open testfw-replay-stg-5d977d73b2cf58103d77b470-cpu-utilization 5 1 125 0 246.2kb 123.1kb
green open testfw-replay-stg-5d9dd047b2cf58103d77b55d-cpu-utilization 5 1 168 0 256.3kb 128.1kb
green open testfw-replay-stg-5d9b9a3ab2cf58103d77b50f-cpu-utilization 5 1 323 0 370.8kb 185.4kb
green open testfw-replay-dev-5da41e047a3e50124c942a6b-cpu-utilization 5 1 18 0 146.8kb 73.4kb
green open testfw-replay-stg-5d9cf255b2cf58103d77b539-cpu-utilization 5 1 245 0 302.5kb 153.2kb
green open testfw-replay-dev-5d9752939e07a00fff0dbcdd-cpu-utilization 5 1 8 0 66kb 33kb
green open testfw-replay-dev-5d9d925ebda38910508cc939-cpu-utilization 5 1 9 0 74.1kb 37kb
green open testfw-replay-dev-5d83d77f37753c1022ef72da-cpu-utilization 5 1 7128 0 1.3mb 682.1kb
green open testfw-replay-stg-5d990e9cb2cf58103d77b4bd-cpu-utilization 5 1 62541 0 9mb 4.5mb
green open testfw-replay-dev-5d9c74550b5336103a663214-cpu-utilization 5 1 260 0 267.6kb 133.8kb
green open testfw-replay-dev-5d97432259dfed10463d4bb7-cpu-utilization 5 1 5227 0 1mb 529.7kb
green open testfw-replay-dev-5d837d7237753c1022ef72cc-cpu-utilization 5 1 8163 0 1.4mb 757.2kb
green open testfw-replay-dev-5d9defa1bda38903786e0982-cpu-utilization 5 1 16 0 115.3kb 57.6kb
green open testfw-replay-dev-5d92d85bbb08ec1025ca0817-cpu-utilization 5 1 37 0 230.7kb 115.3kb
green open testfw-replay-stg-5d9ae289b2cf58103d77b4cd-cpu-utilization 5 1 752 0 424kb 219.9kb
green open testfw-replay-dev-5da54f80ff28b91002e18ade-cpu-utilization 5 1 50 0 172.2kb 86.1kb
green open testfw-replay-dev-5d935026cd0c3e103fc834a3-cpu-utilization 5 1 26 0 188.8kb 94.4kb
green open testfw-replay-dev-5d9c7a4d0b5336103a663216-cpu-utilization 5 1 207 0 221.9kb 110.9kb
green open testfw-replay-stg-5d9b83c7b2cf58103d77b501-cpu-utilization 5 1 942 0 425.5kb 212.7kb
green open stg-gru-log-2019.10.06 5 1 1 0 21.7kb 10.8kb
green open stg-gru-log-2019.10.07 5 1 577 0 221.9mb 110.9mb
green open testfw-replay-dev-5d9c24090db8cf102a373deb-cpu-utilization 5 1 26 0 180.8kb 90.4kb
green open stg-gru-log-2019.10.08 5 1 277 0 101.9mb 50.9mb
green open stg-gru-log-2019.10.09 5 1 63 0 1.4mb 721.4kb
green open testfw-replay-dev-5d96efba59dfed10463d4b97-cpu-utilization 5 1 12920 0 2.2mb 1.1mb
green open testfw-replay-dev-5d96e608a5578f1009913240-cpu-utilization 5 1 10 0 82.2kb 41.1kb
green open testfw-replay-stg-5d9b7b5bb2cf58103d77b4f3-cpu-utilization 5 1 359 0 293.4kb 146.7kb
green open testfw-replay-dev-5d95a92422f0c8103dd5abc0-cpu-utilization 5 1 11 0 90.2kb 45.1kb
green open stg-gru-log-2019.10.13 5 1 1 0 21.7kb 10.8kb
green open stg-gru-log-2019.10.14 5 1 22 0 648.8kb 324.4kb
green open stg-gru-log-2019.10.15 5 1 1 0 21.6kb 10.8kb
green open stg-gru-log-2019.10.10 5 1 11 0 313.3kb 156.6kb
green open testfw-replay-dev-5d9747669e07a00fff0dbcd3-cpu-utilization 5 1 14 0 107.1kb 53.5kb
green open testfw-replay-dev-5d9eb1407a3e50102a4d7b59-cpu-utilization 5 1 9 0 74.1kb 37kb
green open stg-gru-log-2019.10.11 5 1 99 0 47.4mb 23.7mb
green open stg-gru-log-2019.10.12 5 1 1 0 21.6kb 10.8kb
green open testfw-replay-dev-5d88ecb7dbe80a1023e230ce-cpu-utilization 5 1 4762 0 978.8kb 489.4kb
green open testfw-replay-dev-5d96eaf6a5578f1009913244-cpu-utilization 5 1 30 0 243.4kb 121.7kb
green open testfw-replay-dev-5d97695959dfed10463d4bb9-cpu-utilization 5 1 13 0 106.4kb 53.2kb
green open testfw-replay-dev-5d935285cd0c3e103fc834a5-cpu-utilization 5 1 26 0 203.8kb 101.9kb
green open testfw-replay-dev-5da400403569c0102f7a2a73-cpu-utilization 5 1 50 0 211.2kb 105.6kb
green open testfw-replay-stg-5d965a99b2cf58103d77b45b-cpu-utilization 5 1 28 0 226.8kb 113.4kb
green open testfw-replay-dev-5d957cd29b4d0d100ad9cd88-cpu-utilization 5 1 5 0 41.8kb 20.9kb
green open stg-cpu-utilization 5 1 197562 27 49mb 32.6mb
green open testfw-replay-dev-5da3ff6c3569c0102f7a2a71-cpu-utilization 5 1 1 0 9.5kb 4.7kb
green open stg-gru-log-2019.10.02 5 1 2 0 40.6kb 20.3kb
green open testfw-replay-dev-5d92d9aebb08ec1025ca0819-cpu-utilization 5 1 42 0 132.4kb 66.2kb
green open stg-gru-log-2019.10.03 5 1 152 0 14.6mb 7.3mb
green open stg-gru-log-2019.10.04 5 1 167 0 12.4mb 6.2mb
green open stg-gru-log-2019.10.05 5 1 202 0 14.2mb 7.1mb
green open testfw-replay-dev-5d935b0d4d79ee100b18c809-cpu-utilization 5 1 18 0 139.3kb 69.6kb
green open testfw-replay-dev-5d9de6e5bda38903786e097d-cpu-utilization 5 1 28 0 204.7kb 102.3kb
green open stg-gru-log-2019.10.01 5 1 50 0 11.4mb 5.7mb
green open testfw-replay-dev-5d95d1b5ef7e211037528f75-cpu-utilization 5 1 31 0 182.1kb 91kb
green open testfw-replay-dev-5d9f402a7a3e50124c942a50-cpu-utilization 5 1 86521 0 11.5mb 5.7mb
green open testfw-replay-dev-5d973b0859dfed10463d4ba6-cpu-utilization 5 1 18 0 124kb 62kb
green open testfw-replay-stg-5d9b6849b2cf58103d77b4e5-cpu-utilization 5 1 1270 0 447.9kb 225.9kb
green open testfw-replay-dev-5d95bf125d6718102eabae84-cpu-utilization 5 1 18 0 139kb 69.5kb
green open testfw-replay-dev-5d92db90bb08ec1025ca081b-cpu-utilization 5 1 26 0 188.3kb 94.1kb
green open testfw-replay-dev-5d9dab16bda38903786e0979-cpu-utilization 5 1 9 0 74.1kb 37kb
green open testfw-replay-dev-5d96f9f359dfed10463d4b9d-cpu-utilization 5 1 13618 0 2.2mb 1.1mb
green open testfw-replay-dev-5d9582069b4d0d100ad9cd8e-cpu-utilization 5 1 10 0 82.1kb 41kb
green open testfw-replay-dev-5d9da70a990e1210347595fd-cpu-utilization 5 1 464 0 350.9kb 175.4kb
green open testfw-replay-dev-5d9c715d0b5336103a663210-cpu-utilization 5 1 8 0 66.1kb 33kb
green open testfw-replay-dev-5da422997a3e50124c942a6d-cpu-utilization 5 1 50 0 212.8kb 106.4kb
green open testfw-replay-dev-5d9fab767a3e50124c942a61-cpu-utilization 5 1 18 0 131.6kb 65.8kb
green open testfw-replay-dev-5d9f24c7a1b58c102e16fa59-cpu-utilization 5 1 1516 0 508.8kb 254.4kb
green open testfw-replay-dev-5d95df4c99f22c1009d698b5-cpu-utilization 5 1 10 0 82.2kb 41.1kb
green open testfw-replay-stg-5d961e68b2cf58103d77b454-cpu-utilization 5 1 18 0 146.4kb 73.2kb
green open testfw-replay-stg-5d98a88ab2cf58103d77b4ad-cpu-utilization 5 1 798 0 380.6kb 188.3kb
green open testfw-replay-dev-5d83cbfc37753c1022ef72d2-cpu-utilization 5 1 4950 0 1022.6kb 511.3kb
green open testfw-replay-dev-5d9e542d7a3e50102a4d7b57-cpu-utilization 5 1 17 0 138.6kb 69.3kb
green open testfw-replay-dev-5d84e938468487101adadc4d-cpu-utilization 5 1 5424 0 1.1mb 604.9kb
green open testfw-replay-dev-5d9df38ebda38903786e0985-cpu-utilization 5 1 4 0 33.7kb 16.8kb
green open testfw-replay-stg-5d9cc015b2cf58103d77b52b-cpu-utilization 5 1 1090 0 531.1kb 273.4kb
green open testfw-replay-dev-5d9d672f8b036b1020104984-cpu-utilization 5 1 8 0 66kb 33kb
green open testfw-replay-dev-5d9d99aa0db8cf102a373df4-cpu-utilization 5 1 5 0 41.8kb 20.9kb
green open testfw-replay-dev-5d9d97e2bda38910508cc93f-cpu-utilization 5 1 18 0 147kb 73.5kb
green open dev-gru-log-2019.10.09 5 1 198 0 18.4mb 9.2mb
green open testfw-replay-stg-5d9fb1f0b2cf58103d77b567-cpu-utilization 5 1 26 0 196.1kb 98kb
green open testfw-replay-dev-5d973ae559dfed10463d4ba4-cpu-utilization 5 1 8 0 66.1kb 33kb
green open testfw-replay-stg-5d97b39cb2cf58103d77b489-cpu-utilization 5 1 119 0 353kb 176.5kb
green open dev-gru-log-2019.10.05 5 1 19 0 2.1mb 1mb
green open testfw-replay-stg-5d97c588b2cf58103d77b493-cpu-utilization 5 1 7397 0 1.3mb 688.9kb
green open dev-gru-log-2019.10.06 5 1 11 0 212.6kb 110.7kb
green open testfw-replay-stg-5d97aee5b2cf58103d77b484-cpu-utilization 5 1 142 0 198.1kb 99kb
green open dev-gru-log-2019.10.07 5 1 10 0 150.8kb 93.2kb
green open dev-gru-log-2019.10.08 5 1 139 0 7.1mb 3.5mb
green open testfw-replay-stg-5d9777c1b2cf58103d77b46e-cpu-utilization 5 1 19 0 154.6kb 77.3kb
green open testfw-replay-dev-5da455c9775d67100d04215b-cpu-utilization 5 1 16 0 123kb 61.5kb
green open testfw-replay-dev-5d973c1159dfed10463d4bab-cpu-utilization 5 1 5277 0 1mb 559.6kb
green open testfw-replay-dev-5d932262313b1810138e4e79-cpu-utilization 5 1 1 0 9.6kb 4.8kb
green open dev-gru-log-2019.10.01 5 1 149 0 7.1mb 3.5mb
green open testfw-replay-dev-5d9365becd0c3e103fc834a7-cpu-utilization 5 1 74 0 189.1kb 94.5kb
green open dev-gru-log-2019.10.02 5 1 20 0 2.1mb 1mb
green open testfw-replay-dev-5d95db0699f22c1009d698b3-cpu-utilization 5 1 225 0 234.6kb 117.3kb
green open dev-gru-log-2019.10.03 5 1 179 0 14mb 7mb
green open testfw-replay-dev-5d83d17e37753c1022ef72d4-cpu-utilization 5 1 5295 0 1mb 520.8kb
green open dev-gru-log-2019.10.04 5 1 263 0 17.2mb 8.5mb
green open testfw-replay-dev-5d95c4065d6718102eabae88-cpu-utilization 5 1 18 0 146.4kb 73.2kb
green open testfw-replay-stg-5d9cfb2ab2cf58103d77b546-cpu-utilization 5 1 1252 0 497.8kb 225.4kb
green open testfw-replay-stg-5d959a23573cbf10646f61f9-cpu-utilization 5 1 61 0 148kb 74kb
green open testfw-replay-dev-5d8496a8a37dc0101654bbaf-cpu-utilization 5 1 6931 0 1.3mb 678.3kb
green open testfw-replay-dev-5d934d04cd0c3e103fc8349f-cpu-utilization 5 1 54 0 136.9kb 68.4kb
green open testfw-replay-dev-5da4962195ad3f1016cf2653-cpu-utilization 5 1 27 0 219.2kb 109.6kb
green open testfw-replay-dev-5da0a6077a3e50124c942a67-cpu-utilization 5 1 13 0 106.5kb 53.2kb
green open testfw-replay-dev-5d97432a9e07a00fff0dbcd1-cpu-utilization 5 1 7562 0 1.4mb 752.6kb
green open testfw-replay-stg-5d9656b7b2cf58103d77b458-cpu-utilization 5 1 18 0 146.3kb 73.1kb
green open testfw-replay-dev-5da4254c7a3e50124c942a71-cpu-utilization 5 1 18 0 146.7kb 73.3kb
green open testfw-replay-dev-1-cpu-utilization 5 1 13761 0 2.7mb 1.4mb
green open testfw-replay-stg-5d990924b2cf58103d77b4b5-cpu-utilization 5 1 180 0 271kb 135.5kb
green open testfw-replay-dev-5d9f2043a1b58c102e16fa53-cpu-utilization 5 1 1 0 9.5kb 4.7kb
green open dev-gru-log-2019.10.12 5 1 3 0 1.9mb 1009.3kb
green open dev-gru-log-2019.10.13 5 1 1 0 21.7kb 10.8kb
green open testfw-replay-stg-5d95dddcb2cf58103d77b450-cpu-utilization 5 1 58 0 222.2kb 111.1kb
green open dev-gru-log-2019.10.14 5 1 297 0 14.2mb 7.1mb
green open testfw-replay-dev-5d95dd9e9fa5c31012bb5d12-cpu-utilization 5 1 18 0 108.5kb 54.2kb
green open testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization 5 1 24 0 187.6kb 93.8kb
green open dev-gru-log-2019.10.15 5 1 92 0 4mb 2mb
green open testfw-replay-dev-5d9c9e1c26940c102190de08-cpu-utilization 5 1 16 0 130.6kb 65.3kb
green open dev-gru-log-2019.10.10 5 1 1562 0 19.1mb 9.5mb
green open dev-gru-log-2019.10.11 5 1 90 0 7.5mb 3.7mb
(base) sys-user@SMI-243:~$
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-gru-log-2019.10.12?v&pretty"
curl -X GET "localhost:9200/twitter?pretty"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-minion-jtl-logs?pretty=true"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-minion-jtl-logs-2019.10.14/_search?pretty=true"
(base) sys-user@SMI-243:~/backup/aws$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-minion-jtl-logs-2019.10.14/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 178,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3J85CmwEcMd9IvsnJA",
"_score" : 1.0,
"_source" : {
"message" : "1571051184465,4,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z_Test_case_snLDo_ovrbo,500,\"Exception occurred during upload document. Message: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 2115. Document parameters[ adapterData: {\"\"headers\"\":\"\"Authorization\\u003dBasic UUFSZWdyZXNzUHJvdjIzNTpRQVJlZ3Jlc3NQcm92MjM1|filename\\u003d{Context.OutboundFileName}\"\",\"\"baseUrl\"\":\"\"https://corex-dev-ue.awsdsi.ghx.com/engine/test/document/{Context.OutboundFileName}\"\",\"\"authenticateClient\"\":false,\"\"allowPostRedirect\"\":false,\"\"sendAttachmentOnly\"\":false}, adapterName: com.ghx.adapter.outbound.HttpGeneralAdapter, filePath: /install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z/2_input/Test_case_snLDo_ovrbo_TFW_Dev_Provider_810_1, fileName: Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z_Test_case_snLDo_ovrbo_TFW_Dev_Provider_810_TFW_Dev_Provider_810_1101419_89264_4, docContext: [{\"\"key\"\":\"\"DocVersion\"\",\"\"value\"\":\"\"004010\"\"},{\"\"key\"\":\"\"DocSubType\"\",\"\"value\"\":\"\"810\"\"},{\"\"key\"\":\"\"DocType\"\",\"\"value\"\":\"\"EDI\"\"}], actionData: [{\"\"documentId\"\":{\"\"id\"\":{\"\"timestamp\"\":1563341084,\"\"machineIdentifier\"\":271737,\"\"processIdentifier\"\":3649,\"\"counter\"\":13378304},\"\"name\"\":\"\"TFW_Dev_Provider_810\"\",\"\"docSubType\"\":\"\"810\"\",\"\"docType\"\":\"\"EDI\"\",\"\"version\"\":\"\"004010\"\",\"\"messageStoreID\"\":{\"\"uri\"\":\"\"securemsgstore:AWS_S3:ghx-corex-testdocs:DEV92521271618062019/b4a9d7ff-8063-464d-a4ae-840b374628d7-TFW_Dev_Provider_810\"\",\"\"messageDigestAlgorithm\"\":\"\"MD5\"\",\"\"encryptDecryptData\"\":false,\"\"calculateChecksumAndLengthOnIncomingStream\"\":true,\"\"calculateChecksumOnStoringStream\"\":true,\"\"incomingStreamStats\"\":{\"\"checksum\"\":\"\"+g4xSndrLLKf1/xCVRkZxA\\u003d\\u003d\"\",\"\"streamSize\"\":1321},\"\"storedStreamStats\"\":{\"\"resourceUri\"\":\"\"DEV92521271618062019/b4a9d7ff-8063-464d-a4ae-840b374628d7-TFW_Dev_Provider_810\"\",\"\"storedUsingLargeFileHandling\"\":true,\"\"streamSize\"\":1321},\"\"fileName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"encryptionUsed\"\":\"\"01\"\",\"\"encoding\"\":\"\"UTF-8\"\"},\"\"template\"\":false,\"\"overridden\"\":false,\"\"validDocument\"\":true,\"\"size\"\":1321,\"\"oldMessageStoreIDList\"\":[{\"\"uri\"\":\"\"securemsgstore:AWS_S3:ghx-corex-testdocs:DEV94143240517062019/eee73df0-c74d-4fdd-ac45-395bac082203-TFW_Dev_Provider_810\"\",\"\"messageDigestAlgorithm\"\":\"\"MD5\"\",\"\"encryptDecryptData\"\":false,\"\"calculateChecksumAndLengthOnIncomingStream\"\":true,\"\"calculateChecksumOnStoringStream\"\":true,\"\"incomingStreamStats\"\":{\"\"checksum\"\":\"\"gTlEQffuuUXeC3Tj4rHwGA\\u003d\\u003d\"\",\"\"streamSize\"\":1317},\"\"storedStreamStats\"\":{\"\"resourceUri\"\":\"\"DEV94143240517062019/eee73df0-c74d-4fdd-ac45-395bac082203-TFW_Dev_Provider_810\"\",\"\"storedUsingLargeFileHandling\"\":true,\"\"streamSize\"\":1317},\"\"fileName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"encryptionUsed\"\":\"\"01\"\",\"\"encoding\"\":\"\"UTF-8\"\"}],\"\"created\"\":{\"\"by\"\":\"\"rkumar\"\",\"\"on\"\":\"\"Jul 17, 2019 5:24:44 AM\"\"},\"\"updated\"\":{\"\"by\"\":\"\"rkumar\"\",\"\"on\"\":\"\"Jul 18, 2019 4:27:22 PM\"\"}},\"\"documentName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"action\"\":\"\"com.ghx.testframework.action.change_moid.ChangeMOID\"\",\"\"docNamesList\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"TFW_Dev_Provider_810\"\",\"\"Abi_dev_850\"\":\"\"Abi_dev_850\"\"},\"\"fromDocNamesList\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"TFW_Dev_Provider_810\"\",\"\"Abi_dev_850\"\":\"\"Abi_dev_850\"\"},\"\"copyAction\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"com.ghx.testframework.action.change_moid.ChangeMOID\"\",\"\"Abi_dev_850\"\":\"\"com.ghx.testframework.action.change_po_number.ChangePONumber\"\"}}]_rampup_ ]\", 2-2,text,false,,0,0,1,2,0,0,0",
"@vhttps://internal-testfw-cxtf1374-ui-heimdall-elb-1540239091.us-west-2.elb.amazonaws.com/lang/en/testFramework/home/customersion" : "1",
"@timestamp" : "2019-10-14T11:07:25.004Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z.jtl",
"host" : "ip-10-31-34-165.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571051184465",
"elapsed" : 4,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z_Test_case_snLDo_ovrbo",
"responseCode" : "500",
"responseMessage" : "\"Exception occurred during upload document. Message: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 2115. Document parameters[ adapterData: {\"\"headers\"\":\"\"Authorization\\u003dBasic UUFSZWdyZXNzUHJvdjIzNTpRQVJlZ3Jlc3NQcm92MjM1|filename\\u003d{Context.OutboundFileName}\"\"",
"threadName" : "\"\"baseUrl\"\":\"\"https://corex-dev-ue.awsdsi.ghx.com/engine/test/document/{Context.OutboundFileName}\"\"",
"dataType" : "\"\"authenticateClient\"\":false",
"success" : "\"\"allowPostRedirect\"\":false",
"failureMessage" : "\"\"sendAttachmentOnly\"\":false}, adapterName: com.ghx.adapter.outbound.HttpGeneralAdapter, filePath: /install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z/2_input/Test_case_snLDo_ovrbo_TFW_Dev_Provider_810_1, fileName: Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T11_02_33_972Z_Test_case_snLDo_ovrbo_TFW_Dev_Provider_810_TFW_Dev_Provider_810_1101419_89264_4, docContext: [{\"\"key\"\":\"\"DocVersion\"\",\"\"value\"\":\"\"004010\"\"},{\"\"key\"\":\"\"DocSubType\"\",\"\"value\"\":\"\"810\"\"},{\"\"key\"\":\"\"DocType\"\",\"\"value\"\":\"\"EDI\"\"}], actionData: [{\"\"documentId\"\":{\"\"id\"\":{\"\"timestamp\"\":1563341084,\"\"machineIdentifier\"\":271737,\"\"processIdentifier\"\":3649,\"\"counter\"\":13378304},\"\"name\"\":\"\"TFW_Dev_Provider_810\"\",\"\"docSubType\"\":\"\"810\"\",\"\"docType\"\":\"\"EDI\"\",\"\"version\"\":\"\"004010\"\",\"\"messageStoreID\"\":{\"\"uri\"\":\"\"securemsgstore:AWS_S3:ghx-corex-testdocs:DEV92521271618062019/b4a9d7ff-8063-464d-a4ae-840b374628d7-TFW_Dev_Provider_810\"\",\"\"messageDigestAlgorithm\"\":\"\"MD5\"\",\"\"encryptDecryptData\"\":false,\"\"calculateChecksumAndLengthOnIncomingStream\"\":true,\"\"calculateChecksumOnStoringStream\"\":true,\"\"incomingStreamStats\"\":{\"\"checksum\"\":\"\"+g4xSndrLLKf1/xCVRkZxA\\u003d\\u003d\"\",\"\"streamSize\"\":1321},\"\"storedStreamStats\"\":{\"\"resourceUri\"\":\"\"DEV92521271618062019/b4a9d7ff-8063-464d-a4ae-840b374628d7-TFW_Dev_Provider_810\"\",\"\"storedUsingLargeFileHandling\"\":true,\"\"streamSize\"\":1321},\"\"fileName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"encryptionUsed\"\":\"\"01\"\",\"\"encoding\"\":\"\"UTF-8\"\"},\"\"template\"\":false,\"\"overridden\"\":false,\"\"validDocument\"\":true,\"\"size\"\":1321,\"\"oldMessageStoreIDList\"\":[{\"\"uri\"\":\"\"securemsgstore:AWS_S3:ghx-corex-testdocs:DEV94143240517062019/eee73df0-c74d-4fdd-ac45-395bac082203-TFW_Dev_Provider_810\"\",\"\"messageDigestAlgorithm\"\":\"\"MD5\"\",\"\"encryptDecryptData\"\":false,\"\"calculateChecksumAndLengthOnIncomingStream\"\":true,\"\"calculateChecksumOnStoringStream\"\":true,\"\"incomingStreamStats\"\":{\"\"checksum\"\":\"\"gTlEQffuuUXeC3Tj4rHwGA\\u003d\\u003d\"\",\"\"streamSize\"\":1317},\"\"storedStreamStats\"\":{\"\"resourceUri\"\":\"\"DEV94143240517062019/eee73df0-c74d-4fdd-ac45-395bac082203-TFW_Dev_Provider_810\"\",\"\"storedUsingLargeFileHandling\"\":true,\"\"streamSize\"\":1317},\"\"fileName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"encryptionUsed\"\":\"\"01\"\",\"\"encoding\"\":\"\"UTF-8\"\"}],\"\"created\"\":{\"\"by\"\":\"\"rkumar\"\",\"\"on\"\":\"\"Jul 17, 2019 5:24:44 AM\"\"},\"\"updated\"\":{\"\"by\"\":\"\"rkumar\"\",\"\"on\"\":\"\"Jul 18, 2019 4:27:22 PM\"\"}},\"\"documentName\"\":\"\"TFW_Dev_Provider_810\"\",\"\"action\"\":\"\"com.ghx.testframework.action.change_moid.ChangeMOID\"\",\"\"docNamesList\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"TFW_Dev_Provider_810\"\",\"\"Abi_dev_850\"\":\"\"Abi_dev_850\"\"},\"\"fromDocNamesList\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"TFW_Dev_Provider_810\"\",\"\"Abi_dev_850\"\":\"\"Abi_dev_850\"\"},\"\"copyAction\"\":{\"\"TFW_Dev_Provider_810\"\":\"\"com.ghx.testframework.action.change_moid.ChangeMOID\"\",\"\"Abi_dev_850\"\":\"\"com.ghx.testframework.action.change_po_number.ChangePONumber\"\"}}]_rampup_ ]\", 2-2,text,false,",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 2,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.34.165",
"instanceId" : "i-081dc202e230bfc67",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "30",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da455c9775d67100d04215b",
"application" : "test-framework-minion",
"testResultId" : "5da455c9775d67100d04215b"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVke",
"_score" : 1.0,
"_source" : {
"message" : "1571041675268,100,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-2,,true,,0,0,1,2,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.071Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041675268",
"elapsed" : 100,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-2",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 2,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkj",
"_score" : 1.0,
"_source" : {
"message" : "1571041687267,137,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-4,,true,,0,0,1,1,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.072Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041687267",
"elapsed" : 137,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-4",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 1,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkl",
"_score" : 1.0,
"_source" : {
"message" : "1571041693285,58,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-5,,true,,0,0,1,1,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.073Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041693285",
"elapsed" : 58,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-5",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 1,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkv",
"_score" : 1.0,
"_source" : {
"message" : "1571041723270,55,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 2-10,,true,,0,0,1,1,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.076Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041723270",
"elapsed" : 55,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 2-10",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 1,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkw",
"_score" : 1.0,
"_source" : {
"message" : "1571041729255,211,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-11,,true,,0,0,1,2,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.076Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041729255",
"elapsed" : 211,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-11",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 2,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkx",
"_score" : 1.0,
"_source" : {
"message" : "1571041729284,256,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 2-11,,true,,0,0,1,1,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.076Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041729284",
"elapsed" : 256,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 2-11",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 1,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVkz",
"_score" : 1.0,
"_source" : {
"message" : "1571041735268,96,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-12,,true,,0,0,1,1,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.076Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041735268",
"elapsed" : 96,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-12",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 1,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVk4",
"_score" : 1.0,
"_source" : {
"message" : "1571041753254,65,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 1-15,,true,,0,0,1,2,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.078Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041753254",
"elapsed" : 65,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 1-15",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 2,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
}, {
"_index" : "dev-minion-jtl-logs-2019.10.14",
"_type" : "testresultsjtl",
"_id" : "AW3JYzPfGb6oRN1sbVk6",
"_score" : 1.0,
"_source" : {
"message" : "1571041759258,58,Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq,200,SENT=true, 2-16,,true,,0,0,1,2,0,0,0",
"@version" : "1",
"@timestamp" : "2019-10-14T08:29:44.078Z",
"path" : "/install/testresults/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z/5_output/Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z.jtl",
"host" : "ip-10-31-33-3.awsdsi.ghx.com",
"type" : "testresultsjtl",
"timeStamp" : "1571041759258",
"elapsed" : 58,
"label" : "Selva_1373_2_1_109_0_SNAPSHOT_2019_10_14T08_24_55_551Z_Test_case_snLDo_qhMgq",
"responseCode" : "200",
"responseMessage" : "SENT=true",
"threadName" : " 2-16",
"success" : "true",
"bytes" : 0,
"sentBytes" : 0,
"grpThreads" : 1,
"allThreads" : 2,
"Latency" : 0,
"IdleTime" : 0,
"Connect" : 0,
"tags" : [ "_dateparsefailure", "dev" ],
"service" : "test-framework-minion",
"ghxhost" : "10.31.33.3",
"instanceId" : "i-09cf1476d93588846",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "29",
"cfstack" : "TestFW-MINION-DEV-CXTF1373-5da430d722efd210345c63c4",
"application" : "test-framework-minion",
"testResultId" : "5da430d722efd210345c63c4"
}
} ]
}
}
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 24,
"max_score" : 1.0,
"hits" : [ {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KVsn-Gb6oRN1sc3fn",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.333333333333338,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:53:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KV7TAGb6oRN1sc33F",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.666666666666664,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:54:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KWnVp_4fAvohBup1k",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.749999999999993,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:58:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KXTYT_4fAvohBuq-s",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.416666666666667,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:59:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KS8QVGb6oRN1scy9u",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 25.5,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:41:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KTLFgGb6oRN1sczUc",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 54.4166666666667,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:42:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KTZxb_4fAvohBuk2I",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.708333333333341,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:43:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KTodW_4fAvohBulMT",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.708333333333329,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:44:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KWYqDwEcMd9IvtQI1",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.416666666666667,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:56:00+00:00"
}
}, {
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KUF09_4fAvohBul9u",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.458333333333331,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:46:00+00:00"
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats-2019.10.16/_search?pretty=true"
(base) sys-user@SMI-243:~$ curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-testframework-stats-2019.10.16/_search?pretty=true"
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 31780,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-regapi-ws-stats",
"_id" : "AW3R4SwE_4fAvohB7Gih",
"_score" : 1.0,
"_ttl" : 220805400,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.433Z",
"host" : "10.31.37.45",
"type" : "jvm-regapi-ws-stats",
"Class_TotalLoadedClassCount" : 193905,
"service" : "corex-regapi",
"ghxhost" : "10.31.37.45",
"instanceId" : "i-0df149137868f9f69",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-REGAPI-b6246",
"application" : "regapi-ws"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-regapi-ws-stats",
"_id" : "AW3R4SwE_4fAvohB7Gii",
"_score" : 1.0,
"_ttl" : 220805400,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.436Z",
"host" : "10.31.37.45",
"type" : "jvm-regapi-ws-stats",
"Class_UnloadedClassCount" : 156943,
"service" : "corex-regapi",
"ghxhost" : "10.31.37.45",
"instanceId" : "i-0df149137868f9f69",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-REGAPI-b6246",
"application" : "regapi-ws"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-regapi-ws-stats",
"_id" : "AW3R4SwE_4fAvohB7Gij",
"_score" : 1.0,
"_ttl" : 220805400,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.468Z",
"host" : "10.31.37.45",
"type" : "jvm-regapi-ws-stats",
"Threading_ThreadCount" : 237,
"service" : "corex-regapi",
"ghxhost" : "10.31.37.45",
"instanceId" : "i-0df149137868f9f69",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-REGAPI-b6246",
"application" : "regapi-ws"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-heimdall-stats",
"_id" : "AW3R4Sx0Gb6oRN1spXE2",
"_score" : 1.0,
"_ttl" : 220805512,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.620Z",
"host" : "10.31.34.161",
"type" : "jvm-heimdall-stats",
"HeapMemory_committed" : 3758096384,
"service" : "corex-ui",
"ghxhost" : "10.31.34.161",
"instanceId" : "i-01f34381b333bd782",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-UI-Heimdall-b6246",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-heimdall-stats",
"_id" : "AW3R4Sx1Gb6oRN1spXFA",
"_score" : 1.0,
"_ttl" : 220805513,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.537Z",
"host" : "10.31.37.55",
"type" : "jvm-heimdall-stats",
"HeapMemory_max" : 3758096384,
"service" : "corex-test-framework",
"ghxhost" : "10.31.37.55",
"instanceId" : "i-0a19517471adf749b",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "3",
"cfstack" : "TestFW-CoreX-CXT1373-UI-Heimdall-b3",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-ue-stats",
"_id" : "AW3R4S1P_4fAvohB7Gin",
"_score" : 1.0,
"_ttl" : 220805731,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.798Z",
"host" : "10.31.36.22",
"type" : "jvm-ue-stats",
"HeapMemory_max" : 3758096384,
"service" : "corex-dp",
"ghxhost" : "10.31.36.22",
"instanceId" : "i-0fe9e9a67461b509e",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-DP-b6246",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-ue-stats",
"_id" : "AW3R4S1P_4fAvohB7Git",
"_score" : 1.0,
"_ttl" : 220805731,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.832Z",
"host" : "10.31.36.22",
"type" : "jvm-ue-stats",
"Threading_TotalStartedThreadCount" : 24366,
"service" : "corex-dp",
"ghxhost" : "10.31.36.22",
"instanceId" : "i-0fe9e9a67461b509e",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-DP-b6246",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-ue-stats",
"_id" : "AW3R4S1P_4fAvohB7Giu",
"_score" : 1.0,
"_ttl" : 220805731,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.833Z",
"host" : "10.31.36.22",
"type" : "jvm-ue-stats",
"Threading_PeakThreadCount" : 339,
"service" : "corex-dp",
"ghxhost" : "10.31.36.22",
"instanceId" : "i-0fe9e9a67461b509e",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "6246",
"cfstack" : "CoreX-DEV-DP-b6246",
"application" : "data-poller"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-heimdall-stats",
"_id" : "AW3R4S2n_4fAvohB7Giw",
"_score" : 1.0,
"_ttl" : 220805819,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.831Z",
"host" : "10.31.34.52",
"type" : "jvm-heimdall-stats",
"HeapMemory_max" : 3758096384,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.52",
"instanceId" : "i-06fb6eab541ebd9f3",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "1",
"cfstack" : "TestFW-CoreX-CXTF1374-UI-Heimdall-b1",
"application" : "ui-heimdall"
}
}, {
"_index" : "dev-testframework-stats-2019.10.16",
"_type" : "jvm-heimdall-stats",
"_id" : "AW3R4S2n_4fAvohB7Giz",
"_score" : 1.0,
"_ttl" : 220805819,
"_source" : {
"@version" : "1",
"@timestamp" : "2019-10-16T00:04:17.852Z",
"host" : "10.31.34.52",
"type" : "jvm-heimdall-stats",
"Class_TotalLoadedClassCount" : 172052,
"service" : "corex-test-framework",
"ghxhost" : "10.31.34.52",
"instanceId" : "i-06fb6eab541ebd9f3",
"ghxenvironment" : "dev",
"appversion" : "1.109.0",
"buildnumber" : "1",
"cfstack" : "TestFW-CoreX-CXTF1374-UI-Heimdall-b1",
"application" : "ui-heimdall"
}
} ]
}
}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/tf_perf_metrics_corex_snapshots-2019.10.16/_search?pretty=true"
dev-testframework-stats
curl -X GET "https://api.newrelic.com/v2/applications/299767980/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767980/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 26455
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3823
Content-Type: application/json
Date: Wed, 16 Oct 2019 11:39:59 GMT
Etag: "4ecd5ec3e3cbfcc4975fa6d73ee4943b"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: e389152ddaa2623fc98b75ece5d68a6d
X-Runtime: 0.056403
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T11:39:59+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:36:00+00:00","to":"2019-10-15T08:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T08:36:00+00:00","to":"2019-10-15T09:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T09:36:00+00:00","to":"2019-10-15T10:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T10:36:00+00:00","to":"2019-10-15T11:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T11:36:00+00:00","to":"2019-10-15T12:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T12:36:00+00:00","to":"2019-10-15T13:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T13:36:00+00:00","to":"2019-10-15T14:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T14:36:00+00:00","to":"2019-10-15T15:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T15:36:00+00:00","to":"2019-10-15T16:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T16:36:00+00:00","to":"2019-10-15T17:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T17:36:00+00:00","to":"2019-10-15T18:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T18:36:00+00:00","to":"2019-10-15T19:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T19:36:00+00:00","to":"2019-10-15T20:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T20:36:00+00:00","to":"2019-10-15T21:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T21:36:00+00:00","to":"2019-10-15T22:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T22:36:00+00:00","to":"2019-10-15T23:36:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T23:36:00+00:00","to":"2019-10-16T00:36:00+00:00","values":{"total_time":458000,"average_time":74300,"percent":12.7}},{"from":"2019-10-16T00:36:00+00:00","to":"2019-10-16T01:36:00+00:00","values":{"total_time":188000,"average_time":3120,"percent":5.21}},{"from":"2019-10-16T01:36:00+00:00","to":"2019-10-16T02:36:00+00:00","values":{"total_time":96300,"average_time":1600,"percent":2.67}},{"from":"2019-10-16T02:36:00+00:00","to":"2019-10-16T03:36:00+00:00","values":{"total_time":79600,"average_time":1330,"percent":2.21}},{"from":"2019-10-16T03:36:00+00:00","to":"2019-10-16T04:36:00+00:00","values":{"total_time":78500,"average_time":1310,"percent":2.18}},{"from":"2019-10-16T04:36:00+00:00","to":"2019-10-16T05:36:00+00:00","values":{"total_time":80000,"average_time":1330,"percent":2.22}},{"from":"2019-10-16T05:36:00+00:00","to":"2019-10-16T06:36:00+00:00","values":{"total_time":105000,"average_time":1740,"percent":2.9}},{"from":"2019-10-16T06:36:00+00:00","to":"2019-10-16T07:36:00+00:00","values":{"total_time":424000,"average_time":7060,"percent":11.8}},{"from":"2019-10-16T07:36:00+00:00","to":"2019-10-16T08:36:00+00:00","values":{"total_time":415000,"average_time":6910,"percent":11.5}},{"from":"2019-10-16T08:36:00+00:00","to":"2019-10-16T09:36:00+00:00","values":{"total_time":236000,"average_time":3940,"percent":6.57}},{"from":"2019-10-16T09:36:00+00:00","to":"2019-10-16T10:36:00+00:00","values":{"total_time":775000,"average_time":11500,"percent":21.5}},{"from":"2019-10-16T10:36:00+00:00","to":"2019-10-16T11:36:00+00:00","values":{"total_time":133000,"average_time":2210,"percent":3.69}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/299767980/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767980/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 30918
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 4390
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:24:05 GMT
Etag: "288cab67e179a9a4fd878c72e7eb7e08"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 41f40239807e0bc69c71e06d58d2fc51
X-Runtime: 0.069249
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:24:05+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T08:21:00+00:00","to":"2019-10-15T09:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T09:21:00+00:00","to":"2019-10-15T10:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T10:21:00+00:00","to":"2019-10-15T11:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T11:21:00+00:00","to":"2019-10-15T12:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T12:21:00+00:00","to":"2019-10-15T13:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T13:21:00+00:00","to":"2019-10-15T14:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T14:21:00+00:00","to":"2019-10-15T15:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T15:21:00+00:00","to":"2019-10-15T16:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T16:21:00+00:00","to":"2019-10-15T17:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T17:21:00+00:00","to":"2019-10-15T18:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T18:21:00+00:00","to":"2019-10-15T19:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T19:21:00+00:00","to":"2019-10-15T20:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T20:21:00+00:00","to":"2019-10-15T21:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T21:21:00+00:00","to":"2019-10-15T22:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T22:21:00+00:00","to":"2019-10-15T23:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T23:21:00+00:00","to":"2019-10-16T00:21:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-16T00:21:00+00:00","to":"2019-10-16T01:21:00+00:00","values":{"used_bytes_by_host":4390000000,"used_mb_by_host":4190,"total_used_mb":2600000}},{"from":"2019-10-16T01:21:00+00:00","to":"2019-10-16T02:21:00+00:00","values":{"used_bytes_by_host":4370000000,"used_mb_by_host":4170,"total_used_mb":3000000}},{"from":"2019-10-16T02:21:00+00:00","to":"2019-10-16T03:21:00+00:00","values":{"used_bytes_by_host":4380000000,"used_mb_by_host":4170,"total_used_mb":3010000}},{"from":"2019-10-16T03:21:00+00:00","to":"2019-10-16T04:21:00+00:00","values":{"used_bytes_by_host":4380000000,"used_mb_by_host":4180,"total_used_mb":3010000}},{"from":"2019-10-16T04:21:00+00:00","to":"2019-10-16T05:21:00+00:00","values":{"used_bytes_by_host":4380000000,"used_mb_by_host":4180,"total_used_mb":3010000}},{"from":"2019-10-16T05:21:00+00:00","to":"2019-10-16T06:21:00+00:00","values":{"used_bytes_by_host":4380000000,"used_mb_by_host":4180,"total_used_mb":3010000}},{"from":"2019-10-16T06:21:00+00:00","to":"2019-10-16T07:21:00+00:00","values":{"used_bytes_by_host":4390000000,"used_mb_by_host":4180,"total_used_mb":3010000}},{"from":"2019-10-16T07:21:00+00:00","to":"2019-10-16T08:21:00+00:00","values":{"used_bytes_by_host":4390000000,"used_mb_by_host":4190,"total_used_mb":3010000}},{"from":"2019-10-16T08:21:00+00:00","to":"2019-10-16T09:21:00+00:00","values":{"used_bytes_by_host":4390000000,"used_mb_by_host":4190,"total_used_mb":3010000}},{"from":"2019-10-16T09:21:00+00:00","to":"2019-10-16T10:21:00+00:00","values":{"used_bytes_by_host":4410000000,"used_mb_by_host":4210,"total_used_mb":3420000}},{"from":"2019-10-16T10:21:00+00:00","to":"2019-10-16T11:21:00+00:00","values":{"used_bytes_by_host":4390000000,"used_mb_by_host":4190,"total_used_mb":3010000}},{"from":"2019-10-16T11:21:00+00:00","to":"2019-10-16T12:21:00+00:00","values":{"used_bytes_by_host":4410000000,"used_mb_by_host":4210,"total_used_mb":3380000}}]}]}}
DEV-io-engine
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 403
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3987
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:43:50 GMT
Etag: "19ac2c168ce01d082a171c6b09602e49"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 91e4e297a725094941819dabb7f49a5d
X-Runtime: 0.051894
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:43:50+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:40:00+00:00","to":"2019-10-15T08:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T08:40:00+00:00","to":"2019-10-15T09:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T09:40:00+00:00","to":"2019-10-15T10:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T10:40:00+00:00","to":"2019-10-15T11:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T11:40:00+00:00","to":"2019-10-15T12:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T12:40:00+00:00","to":"2019-10-15T13:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T13:40:00+00:00","to":"2019-10-15T14:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T14:40:00+00:00","to":"2019-10-15T15:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T15:40:00+00:00","to":"2019-10-15T16:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T16:40:00+00:00","to":"2019-10-15T17:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T17:40:00+00:00","to":"2019-10-15T18:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T18:40:00+00:00","to":"2019-10-15T19:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T19:40:00+00:00","to":"2019-10-15T20:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T20:40:00+00:00","to":"2019-10-15T21:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T21:40:00+00:00","to":"2019-10-15T22:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T22:40:00+00:00","to":"2019-10-15T23:40:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T23:40:00+00:00","to":"2019-10-16T00:40:00+00:00","values":{"total_time":407000,"average_time":34800,"percent":11.3}},{"from":"2019-10-16T00:40:00+00:00","to":"2019-10-16T01:40:00+00:00","values":{"total_time":1490000,"average_time":25200,"percent":41.3}},{"from":"2019-10-16T01:40:00+00:00","to":"2019-10-16T02:40:00+00:00","values":{"total_time":1200000,"average_time":20000,"percent":33.3}},{"from":"2019-10-16T02:40:00+00:00","to":"2019-10-16T03:40:00+00:00","values":{"total_time":1180000,"average_time":19600,"percent":32.7}},{"from":"2019-10-16T03:40:00+00:00","to":"2019-10-16T04:40:00+00:00","values":{"total_time":1180000,"average_time":19700,"percent":32.8}},{"from":"2019-10-16T04:40:00+00:00","to":"2019-10-16T05:40:00+00:00","values":{"total_time":1180000,"average_time":19700,"percent":32.8}},{"from":"2019-10-16T05:40:00+00:00","to":"2019-10-16T06:40:00+00:00","values":{"total_time":1190000,"average_time":19800,"percent":33.0}},{"from":"2019-10-16T06:40:00+00:00","to":"2019-10-16T07:40:00+00:00","values":{"total_time":1420000,"average_time":23600,"percent":39.3}},{"from":"2019-10-16T07:40:00+00:00","to":"2019-10-16T08:40:00+00:00","values":{"total_time":1290000,"average_time":21600,"percent":35.9}},{"from":"2019-10-16T08:40:00+00:00","to":"2019-10-16T09:40:00+00:00","values":{"total_time":1590000,"average_time":24100,"percent":44.2}},{"from":"2019-10-16T09:40:00+00:00","to":"2019-10-16T10:40:00+00:00","values":{"total_time":1500000,"average_time":23200,"percent":41.7}},{"from":"2019-10-16T10:40:00+00:00","to":"2019-10-16T11:40:00+00:00","values":{"total_time":1250000,"average_time":20800,"percent":34.9}},{"from":"2019-10-16T11:40:00+00:00","to":"2019-10-16T12:40:00+00:00","values":{"total_time":1970000,"average_time":27700,"percent":54.9}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 516
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 4549
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:45:05 GMT
Etag: "eb12eee59f702e03eccfab6d4a769f61"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 7c817694ea13e56036ac77bb76901d22
X-Runtime: 0.053317
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:45:05+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:42:00+00:00","to":"2019-10-15T08:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T08:42:00+00:00","to":"2019-10-15T09:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T09:42:00+00:00","to":"2019-10-15T10:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T10:42:00+00:00","to":"2019-10-15T11:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T11:42:00+00:00","to":"2019-10-15T12:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T12:42:00+00:00","to":"2019-10-15T13:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T13:42:00+00:00","to":"2019-10-15T14:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T14:42:00+00:00","to":"2019-10-15T15:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T15:42:00+00:00","to":"2019-10-15T16:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T16:42:00+00:00","to":"2019-10-15T17:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T17:42:00+00:00","to":"2019-10-15T18:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T18:42:00+00:00","to":"2019-10-15T19:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T19:42:00+00:00","to":"2019-10-15T20:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T20:42:00+00:00","to":"2019-10-15T21:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T21:42:00+00:00","to":"2019-10-15T22:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T22:42:00+00:00","to":"2019-10-15T23:42:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T23:42:00+00:00","to":"2019-10-16T00:42:00+00:00","values":{"used_bytes_by_host":4190000000,"used_mb_by_host":3990,"total_used_mb":662000}},{"from":"2019-10-16T00:42:00+00:00","to":"2019-10-16T01:42:00+00:00","values":{"used_bytes_by_host":4220000000,"used_mb_by_host":4030,"total_used_mb":2870000}},{"from":"2019-10-16T01:42:00+00:00","to":"2019-10-16T02:42:00+00:00","values":{"used_bytes_by_host":4240000000,"used_mb_by_host":4050,"total_used_mb":2910000}},{"from":"2019-10-16T02:42:00+00:00","to":"2019-10-16T03:42:00+00:00","values":{"used_bytes_by_host":4250000000,"used_mb_by_host":4060,"total_used_mb":2920000}},{"from":"2019-10-16T03:42:00+00:00","to":"2019-10-16T04:42:00+00:00","values":{"used_bytes_by_host":4260000000,"used_mb_by_host":4060,"total_used_mb":2920000}},{"from":"2019-10-16T04:42:00+00:00","to":"2019-10-16T05:42:00+00:00","values":{"used_bytes_by_host":4260000000,"used_mb_by_host":4070,"total_used_mb":2930000}},{"from":"2019-10-16T05:42:00+00:00","to":"2019-10-16T06:42:00+00:00","values":{"used_bytes_by_host":4270000000,"used_mb_by_host":4070,"total_used_mb":2930000}},{"from":"2019-10-16T06:42:00+00:00","to":"2019-10-16T07:42:00+00:00","values":{"used_bytes_by_host":4270000000,"used_mb_by_host":4070,"total_used_mb":2930000}},{"from":"2019-10-16T07:42:00+00:00","to":"2019-10-16T08:42:00+00:00","values":{"used_bytes_by_host":4270000000,"used_mb_by_host":4080,"total_used_mb":2930000}},{"from":"2019-10-16T08:42:00+00:00","to":"2019-10-16T09:42:00+00:00","values":{"used_bytes_by_host":4260000000,"used_mb_by_host":4060,"total_used_mb":3250000}},{"from":"2019-10-16T09:42:00+00:00","to":"2019-10-16T10:42:00+00:00","values":{"used_bytes_by_host":4240000000,"used_mb_by_host":4040,"total_used_mb":3130000}},{"from":"2019-10-16T10:42:00+00:00","to":"2019-10-16T11:42:00+00:00","values":{"used_bytes_by_host":4240000000,"used_mb_by_host":4050,"total_used_mb":2930000}},{"from":"2019-10-16T11:42:00+00:00","to":"2019-10-16T12:42:00+00:00","values":{"used_bytes_by_host":4220000000,"used_mb_by_host":4020,"total_used_mb":3470000}}]}]}}
DEV-process-engine
299767888
curl -X GET "https://api.newrelic.com/v2/applications/299767888/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767888/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 885
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 4549
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:48:52 GMT
Etag: "8d7f4710fe5b226e941f87840e4356d2"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 26b44587215e85d720302c7cbcbb8b43
X-Runtime: 0.099548
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:48:52+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:45:00+00:00","to":"2019-10-15T08:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T08:45:00+00:00","to":"2019-10-15T09:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T09:45:00+00:00","to":"2019-10-15T10:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T10:45:00+00:00","to":"2019-10-15T11:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T11:45:00+00:00","to":"2019-10-15T12:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T12:45:00+00:00","to":"2019-10-15T13:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T13:45:00+00:00","to":"2019-10-15T14:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T14:45:00+00:00","to":"2019-10-15T15:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T15:45:00+00:00","to":"2019-10-15T16:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T16:45:00+00:00","to":"2019-10-15T17:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T17:45:00+00:00","to":"2019-10-15T18:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T18:45:00+00:00","to":"2019-10-15T19:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T19:45:00+00:00","to":"2019-10-15T20:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T20:45:00+00:00","to":"2019-10-15T21:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T21:45:00+00:00","to":"2019-10-15T22:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T22:45:00+00:00","to":"2019-10-15T23:45:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T23:45:00+00:00","to":"2019-10-16T00:45:00+00:00","values":{"used_bytes_by_host":4490000000,"used_mb_by_host":4280,"total_used_mb":812000}},{"from":"2019-10-16T00:45:00+00:00","to":"2019-10-16T01:45:00+00:00","values":{"used_bytes_by_host":4420000000,"used_mb_by_host":4220,"total_used_mb":3010000}},{"from":"2019-10-16T01:45:00+00:00","to":"2019-10-16T02:45:00+00:00","values":{"used_bytes_by_host":4440000000,"used_mb_by_host":4240,"total_used_mb":3030000}},{"from":"2019-10-16T02:45:00+00:00","to":"2019-10-16T03:45:00+00:00","values":{"used_bytes_by_host":4450000000,"used_mb_by_host":4250,"total_used_mb":3050000}},{"from":"2019-10-16T03:45:00+00:00","to":"2019-10-16T04:45:00+00:00","values":{"used_bytes_by_host":4460000000,"used_mb_by_host":4250,"total_used_mb":3050000}},{"from":"2019-10-16T04:45:00+00:00","to":"2019-10-16T05:45:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":3060000}},{"from":"2019-10-16T05:45:00+00:00","to":"2019-10-16T06:45:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":3040000}},{"from":"2019-10-16T06:45:00+00:00","to":"2019-10-16T07:45:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4270,"total_used_mb":2840000}},{"from":"2019-10-16T07:45:00+00:00","to":"2019-10-16T08:45:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":2990000}},{"from":"2019-10-16T08:45:00+00:00","to":"2019-10-16T09:45:00+00:00","values":{"used_bytes_by_host":4490000000,"used_mb_by_host":4280,"total_used_mb":3060000}},{"from":"2019-10-16T09:45:00+00:00","to":"2019-10-16T10:45:00+00:00","values":{"used_bytes_by_host":4490000000,"used_mb_by_host":4280,"total_used_mb":3250000}},{"from":"2019-10-16T10:45:00+00:00","to":"2019-10-16T11:45:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4280,"total_used_mb":2970000}},{"from":"2019-10-16T11:45:00+00:00","to":"2019-10-16T12:45:00+00:00","values":{"used_bytes_by_host":4490000000,"used_mb_by_host":4280,"total_used_mb":3460000}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/299767888/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767888/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 1129
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3978
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:50:38 GMT
Etag: "fe9becb0f0f52c6472066486889f376f"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 8b84971af6fe5f280c1356472f71f87b
X-Runtime: 0.119315
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:50:38+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:47:00+00:00","to":"2019-10-15T08:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T08:47:00+00:00","to":"2019-10-15T09:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T09:47:00+00:00","to":"2019-10-15T10:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T10:47:00+00:00","to":"2019-10-15T11:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T11:47:00+00:00","to":"2019-10-15T12:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T12:47:00+00:00","to":"2019-10-15T13:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T13:47:00+00:00","to":"2019-10-15T14:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T14:47:00+00:00","to":"2019-10-15T15:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T15:47:00+00:00","to":"2019-10-15T16:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T16:47:00+00:00","to":"2019-10-15T17:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T17:47:00+00:00","to":"2019-10-15T18:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T18:47:00+00:00","to":"2019-10-15T19:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T19:47:00+00:00","to":"2019-10-15T20:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T20:47:00+00:00","to":"2019-10-15T21:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T21:47:00+00:00","to":"2019-10-15T22:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T22:47:00+00:00","to":"2019-10-15T23:47:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T23:47:00+00:00","to":"2019-10-16T00:47:00+00:00","values":{"total_time":1460000,"average_time":84200,"percent":40.5}},{"from":"2019-10-16T00:47:00+00:00","to":"2019-10-16T01:47:00+00:00","values":{"total_time":4330000,"average_time":72100,"percent":120}},{"from":"2019-10-16T01:47:00+00:00","to":"2019-10-16T02:47:00+00:00","values":{"total_time":4040000,"average_time":67400,"percent":112}},{"from":"2019-10-16T02:47:00+00:00","to":"2019-10-16T03:47:00+00:00","values":{"total_time":3870000,"average_time":64400,"percent":107}},{"from":"2019-10-16T03:47:00+00:00","to":"2019-10-16T04:47:00+00:00","values":{"total_time":3910000,"average_time":65200,"percent":109}},{"from":"2019-10-16T04:47:00+00:00","to":"2019-10-16T05:47:00+00:00","values":{"total_time":3940000,"average_time":65700,"percent":109}},{"from":"2019-10-16T05:47:00+00:00","to":"2019-10-16T06:47:00+00:00","values":{"total_time":4640000,"average_time":77300,"percent":129}},{"from":"2019-10-16T06:47:00+00:00","to":"2019-10-16T07:47:00+00:00","values":{"total_time":6140000,"average_time":102000,"percent":171}},{"from":"2019-10-16T07:47:00+00:00","to":"2019-10-16T08:47:00+00:00","values":{"total_time":3950000,"average_time":65800,"percent":110}},{"from":"2019-10-16T08:47:00+00:00","to":"2019-10-16T09:47:00+00:00","values":{"total_time":2950000,"average_time":49100,"percent":81.8}},{"from":"2019-10-16T09:47:00+00:00","to":"2019-10-16T10:47:00+00:00","values":{"total_time":5870000,"average_time":87700,"percent":163}},{"from":"2019-10-16T10:47:00+00:00","to":"2019-10-16T11:47:00+00:00","values":{"total_time":5460000,"average_time":90300,"percent":152}},{"from":"2019-10-16T11:47:00+00:00","to":"2019-10-16T12:47:00+00:00","values":{"total_time":5400000,"average_time":80600,"percent":150}}]}]}}
DEV-jobs:
299767611
curl -X GET "https://api.newrelic.com/v2/applications/299767611/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767611/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 2230
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3980
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:57:48 GMT
Etag: "fed6d5f7b4a4ac727c4489eb3083e029"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 812ffb20184ad840c6f4869783ac0b5b
X-Runtime: 0.110714
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:57:48+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-15T07:54:00+00:00","to":"2019-10-15T08:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T08:54:00+00:00","to":"2019-10-15T09:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T09:54:00+00:00","to":"2019-10-15T10:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T10:54:00+00:00","to":"2019-10-15T11:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T11:54:00+00:00","to":"2019-10-15T12:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T12:54:00+00:00","to":"2019-10-15T13:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T13:54:00+00:00","to":"2019-10-15T14:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T14:54:00+00:00","to":"2019-10-15T15:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T15:54:00+00:00","to":"2019-10-15T16:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T16:54:00+00:00","to":"2019-10-15T17:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T17:54:00+00:00","to":"2019-10-15T18:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T18:54:00+00:00","to":"2019-10-15T19:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T19:54:00+00:00","to":"2019-10-15T20:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T20:54:00+00:00","to":"2019-10-15T21:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T21:54:00+00:00","to":"2019-10-15T22:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T22:54:00+00:00","to":"2019-10-15T23:54:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T23:54:00+00:00","to":"2019-10-16T00:54:00+00:00","values":{"total_time":991000,"average_time":39500,"percent":27.5}},{"from":"2019-10-16T00:54:00+00:00","to":"2019-10-16T01:54:00+00:00","values":{"total_time":1070000,"average_time":17800,"percent":29.7}},{"from":"2019-10-16T01:54:00+00:00","to":"2019-10-16T02:54:00+00:00","values":{"total_time":843000,"average_time":14000,"percent":23.4}},{"from":"2019-10-16T02:54:00+00:00","to":"2019-10-16T03:54:00+00:00","values":{"total_time":816000,"average_time":13600,"percent":22.7}},{"from":"2019-10-16T03:54:00+00:00","to":"2019-10-16T04:54:00+00:00","values":{"total_time":820000,"average_time":13700,"percent":22.8}},{"from":"2019-10-16T04:54:00+00:00","to":"2019-10-16T05:54:00+00:00","values":{"total_time":823000,"average_time":13700,"percent":22.9}},{"from":"2019-10-16T05:54:00+00:00","to":"2019-10-16T06:54:00+00:00","values":{"total_time":903000,"average_time":15000,"percent":25.1}},{"from":"2019-10-16T06:54:00+00:00","to":"2019-10-16T07:54:00+00:00","values":{"total_time":940000,"average_time":15700,"percent":26.1}},{"from":"2019-10-16T07:54:00+00:00","to":"2019-10-16T08:54:00+00:00","values":{"total_time":981000,"average_time":16300,"percent":27.2}},{"from":"2019-10-16T08:54:00+00:00","to":"2019-10-16T09:54:00+00:00","values":{"total_time":1410000,"average_time":22300,"percent":39.1}},{"from":"2019-10-16T09:54:00+00:00","to":"2019-10-16T10:54:00+00:00","values":{"total_time":1320000,"average_time":20600,"percent":36.6}},{"from":"2019-10-16T10:54:00+00:00","to":"2019-10-16T11:54:00+00:00","values":{"total_time":1640000,"average_time":24700,"percent":45.6}},{"from":"2019-10-16T11:54:00+00:00","to":"2019-10-16T12:54:00+00:00","values":{"total_time":1020000,"average_time":16800,"percent":28.4}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications/299767611/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/299767611/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=Memory/Physical&from="2019-10-15T07:27:00+00:00&to="2019-10-15T07:27:00+00:00&period=1800"
[1] 2496
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 4550
Content-Type: application/json
Date: Wed, 16 Oct 2019 12:58:58 GMT
Etag: "a5dc91e26a7891b4a0fa3b0ea768b948"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 2521135a6109e181eef094c3dec14188
X-Runtime: 0.120044
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-15T07:27:00+00:00","to":"2019-10-16T12:58:58+00:00","metrics_not_found":[],"metrics_found":["Memory/Physical"],"metrics":[{"name":"Memory/Physical","timeslices":[{"from":"2019-10-15T07:55:00+00:00","to":"2019-10-15T08:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T08:55:00+00:00","to":"2019-10-15T09:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T09:55:00+00:00","to":"2019-10-15T10:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T10:55:00+00:00","to":"2019-10-15T11:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T11:55:00+00:00","to":"2019-10-15T12:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T12:55:00+00:00","to":"2019-10-15T13:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T13:55:00+00:00","to":"2019-10-15T14:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T14:55:00+00:00","to":"2019-10-15T15:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T15:55:00+00:00","to":"2019-10-15T16:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T16:55:00+00:00","to":"2019-10-15T17:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T17:55:00+00:00","to":"2019-10-15T18:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T18:55:00+00:00","to":"2019-10-15T19:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T19:55:00+00:00","to":"2019-10-15T20:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T20:55:00+00:00","to":"2019-10-15T21:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T21:55:00+00:00","to":"2019-10-15T22:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T22:55:00+00:00","to":"2019-10-15T23:55:00+00:00","values":{"used_bytes_by_host":0,"used_mb_by_host":0,"total_used_mb":0}},{"from":"2019-10-15T23:55:00+00:00","to":"2019-10-16T00:55:00+00:00","values":{"used_bytes_by_host":4460000000,"used_mb_by_host":4250,"total_used_mb":1360000}},{"from":"2019-10-16T00:55:00+00:00","to":"2019-10-16T01:55:00+00:00","values":{"used_bytes_by_host":4430000000,"used_mb_by_host":4230,"total_used_mb":3040000}},{"from":"2019-10-16T01:55:00+00:00","to":"2019-10-16T02:55:00+00:00","values":{"used_bytes_by_host":4450000000,"used_mb_by_host":4240,"total_used_mb":3050000}},{"from":"2019-10-16T02:55:00+00:00","to":"2019-10-16T03:55:00+00:00","values":{"used_bytes_by_host":4450000000,"used_mb_by_host":4240,"total_used_mb":3060000}},{"from":"2019-10-16T03:55:00+00:00","to":"2019-10-16T04:55:00+00:00","values":{"used_bytes_by_host":4460000000,"used_mb_by_host":4250,"total_used_mb":3060000}},{"from":"2019-10-16T04:55:00+00:00","to":"2019-10-16T05:55:00+00:00","values":{"used_bytes_by_host":4460000000,"used_mb_by_host":4260,"total_used_mb":3060000}},{"from":"2019-10-16T05:55:00+00:00","to":"2019-10-16T06:55:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":3060000}},{"from":"2019-10-16T06:55:00+00:00","to":"2019-10-16T07:55:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":3060000}},{"from":"2019-10-16T07:55:00+00:00","to":"2019-10-16T08:55:00+00:00","values":{"used_bytes_by_host":4480000000,"used_mb_by_host":4270,"total_used_mb":3080000}},{"from":"2019-10-16T08:55:00+00:00","to":"2019-10-16T09:55:00+00:00","values":{"used_bytes_by_host":4490000000,"used_mb_by_host":4290,"total_used_mb":3330000}},{"from":"2019-10-16T09:55:00+00:00","to":"2019-10-16T10:55:00+00:00","values":{"used_bytes_by_host":4450000000,"used_mb_by_host":4250,"total_used_mb":3200000}},{"from":"2019-10-16T10:55:00+00:00","to":"2019-10-16T11:55:00+00:00","values":{"used_bytes_by_host":4500000000,"used_mb_by_host":4290,"total_used_mb":3490000}},{"from":"2019-10-16T11:55:00+00:00","to":"2019-10-16T12:55:00+00:00","values":{"used_bytes_by_host":4470000000,"used_mb_by_host":4260,"total_used_mb":3070000}}]}]}}
TESTFW-REPLAY-environment-testResultId-testframework-stats_all
testfw-replay-dev-5da6d0922e33270ea037c24b-cpu-utilization
tf_perf_metrics_snapshot_executions
tf_perf_metrics_cpu-utilization_snapshots_001_v1
line 97 -128
PMQueryUtils.java
{
ID
_index
application
hostname
FROM
TO
TOTAL TIME
AVERAGE TIME
PERCENT
}
"_index" : "testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization",
"_type" : "system",
"_id" : "AW3KWYqDwEcMd9IvtQI1",
"_score" : 1.0,
"_source" : {
"application" : "test-framework-minion",
"user_p" : 0.416666666666667,
"hostname" : "10.31.33.197",
"@timestamp" : "2019-10-14T12:56:00+00:00"
}
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts/241341144/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd"
-i -d"names[]=CPU/User+Time&from="2019-10-12T07:27:00+00:00&to="2019-10-22T07:27:00+00:00&period=1800"
[1] 14530
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 12082
Content-Type: application/json
Date: Thu, 24 Oct 2019 06:17:59 GMT
Etag: "45dd6aa79f01e673cc51a2580e795c66"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 891d05f775afd3fa8c307b878386e66e
X-Runtime: 0.170481
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-12T07:27:00+00:00","to":"2019-10-24T06:17:59+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-12T09:14:00+00:00","to":"2019-10-12T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-12T12:14:00+00:00","to":"2019-10-12T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-12T15:14:00+00:00","to":"2019-10-12T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-12T18:14:00+00:00","to":"2019-10-12T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-12T21:14:00+00:00","to":"2019-10-13T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T00:14:00+00:00","to":"2019-10-13T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T03:14:00+00:00","to":"2019-10-13T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T06:14:00+00:00","to":"2019-10-13T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T09:14:00+00:00","to":"2019-10-13T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T12:14:00+00:00","to":"2019-10-13T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T15:14:00+00:00","to":"2019-10-13T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T18:14:00+00:00","to":"2019-10-13T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-13T21:14:00+00:00","to":"2019-10-14T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T00:14:00+00:00","to":"2019-10-14T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T03:14:00+00:00","to":"2019-10-14T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T06:14:00+00:00","to":"2019-10-14T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T09:14:00+00:00","to":"2019-10-14T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T12:14:00+00:00","to":"2019-10-14T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T15:14:00+00:00","to":"2019-10-14T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T18:14:00+00:00","to":"2019-10-14T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-14T21:14:00+00:00","to":"2019-10-15T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T00:14:00+00:00","to":"2019-10-15T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T03:14:00+00:00","to":"2019-10-15T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T06:14:00+00:00","to":"2019-10-15T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T09:14:00+00:00","to":"2019-10-15T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T12:14:00+00:00","to":"2019-10-15T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T15:14:00+00:00","to":"2019-10-15T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T18:14:00+00:00","to":"2019-10-15T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-15T21:14:00+00:00","to":"2019-10-16T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T00:14:00+00:00","to":"2019-10-16T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T03:14:00+00:00","to":"2019-10-16T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T06:14:00+00:00","to":"2019-10-16T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T09:14:00+00:00","to":"2019-10-16T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T12:14:00+00:00","to":"2019-10-16T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T15:14:00+00:00","to":"2019-10-16T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T18:14:00+00:00","to":"2019-10-16T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-16T21:14:00+00:00","to":"2019-10-17T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T00:14:00+00:00","to":"2019-10-17T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T03:14:00+00:00","to":"2019-10-17T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T06:14:00+00:00","to":"2019-10-17T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T09:14:00+00:00","to":"2019-10-17T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T12:14:00+00:00","to":"2019-10-17T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T15:14:00+00:00","to":"2019-10-17T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T18:14:00+00:00","to":"2019-10-17T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-17T21:14:00+00:00","to":"2019-10-18T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T00:14:00+00:00","to":"2019-10-18T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T03:14:00+00:00","to":"2019-10-18T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T06:14:00+00:00","to":"2019-10-18T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T09:14:00+00:00","to":"2019-10-18T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T12:14:00+00:00","to":"2019-10-18T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T15:14:00+00:00","to":"2019-10-18T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T18:14:00+00:00","to":"2019-10-18T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-18T21:14:00+00:00","to":"2019-10-19T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T00:14:00+00:00","to":"2019-10-19T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T03:14:00+00:00","to":"2019-10-19T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T06:14:00+00:00","to":"2019-10-19T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T09:14:00+00:00","to":"2019-10-19T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T12:14:00+00:00","to":"2019-10-19T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T15:14:00+00:00","to":"2019-10-19T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T18:14:00+00:00","to":"2019-10-19T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-19T21:14:00+00:00","to":"2019-10-20T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T00:14:00+00:00","to":"2019-10-20T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T03:14:00+00:00","to":"2019-10-20T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T06:14:00+00:00","to":"2019-10-20T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T09:14:00+00:00","to":"2019-10-20T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T12:14:00+00:00","to":"2019-10-20T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T15:14:00+00:00","to":"2019-10-20T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T18:14:00+00:00","to":"2019-10-20T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-20T21:14:00+00:00","to":"2019-10-21T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T00:14:00+00:00","to":"2019-10-21T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T03:14:00+00:00","to":"2019-10-21T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T06:14:00+00:00","to":"2019-10-21T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T09:14:00+00:00","to":"2019-10-21T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T12:14:00+00:00","to":"2019-10-21T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T15:14:00+00:00","to":"2019-10-21T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T18:14:00+00:00","to":"2019-10-21T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-21T21:14:00+00:00","to":"2019-10-22T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T00:14:00+00:00","to":"2019-10-22T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T03:14:00+00:00","to":"2019-10-22T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T06:14:00+00:00","to":"2019-10-22T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T09:14:00+00:00","to":"2019-10-22T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T12:14:00+00:00","to":"2019-10-22T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T15:14:00+00:00","to":"2019-10-22T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T18:14:00+00:00","to":"2019-10-22T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-22T21:14:00+00:00","to":"2019-10-23T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T00:14:00+00:00","to":"2019-10-23T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T03:14:00+00:00","to":"2019-10-23T06:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T06:14:00+00:00","to":"2019-10-23T09:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T09:14:00+00:00","to":"2019-10-23T12:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T12:14:00+00:00","to":"2019-10-23T15:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T15:14:00+00:00","to":"2019-10-23T18:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T18:14:00+00:00","to":"2019-10-23T21:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-23T21:14:00+00:00","to":"2019-10-24T00:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-24T00:14:00+00:00","to":"2019-10-24T03:14:00+00:00","values":{"total_time":0,"average_time":0,"percent":0}},{"from":"2019-10-24T03:14:00+00:00","to":"2019-10-24T06:14:00+00:00","values":{"total_time":3110000,"average_time":24800,"percent":28.8}}]}]}}
bucket :ghx-deployment
owner :gss-releaseengineers@ghx.com
service :gss
bucket :ghx-corex-testdocs
owner :mjaiswal@ghx.com
service :corex-post
dev-minion-jtl-logs_all
testresultsjtl
testresultsjmxjtl
{"bool": {"must": {"match": { "label": "Test_CXTF_1434_1_110_0_SNAPSHOT_2019_11_18T10_56_57_169Z_TC_1_FaNYR"}}}}
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/dev-minion-jtl-logs_all/_search?pretty" -H 'Content-Type: application/json' -d'
{"query":{"bool": {"must": {"match": { "label": "Test_CXTF_1434_1_110_0_SNAPSHOT_2019_11_18T10_56_57_169Z_TC_1_FaNYR"}}}}
}'
var message = localization.get('testframework.build.discrepancy') + '\n\n' + localization.get('testframework.running.scenario');
message = $filter('nl2br')(message);
var notificationMessage = $sce.trustAsHtml(localization.get('testframework.build.discrepancy') + '</br></br>' +
localization.get('testframework.running.scenario'));
Types of request params:
https://www.baeldung.com/spring-request-param
/*var checkDeploymentDetails = function () {
var deferred = $q.defer();
$scope.releaseVersion = {};
versionRest.getReleaseVersion().then(function (data) {
gruStackService.checkDeploymentDetails(data).then(function (response) {
$scope.getResponse = response.requireRestart;
alert("data>>>>>>>"+data);
alert("response>>>>>>>>"+$scope.getResponse);
if($scope.getResponse === "true"){
$scope.notificationMessage = $sce.trustAsHtml('Build Discrepency detected and restarting gru </br></br>' +
'Note:Running Scenarios will Get Terminated. ');
modalsService.notification($scope.notificationMessage);
deferred.resolve($scope.getResponse);
return deferred.promise;
}
});
}).catch(function (error) {
showError(error);
}).finally(function () {
$scope.loading = false;
});
};*/
public void deleteAndStartGRU() throws TestFWResourceNotFoundException, TestFWServerException, InterruptedException {
final String branch = webApplicationStatusService.getManifestData().getBranch();
List<String> testResultIds = Lists.newArrayList();
System.out.println(">>>>branch"+branch);
try {
List<TestResult> testRun = testResultService.getPendingTestRunDetails(branch);
System.out.println(">>>>testRun"+testRun);
testRun.stream().forEach(run -> {
testResultIds.add(run.getId().toString());
});
} catch(TestFWResourceNotFoundException e) {
LOGGER.warn("Pending TestRun Empty");
} finally {
testStackService.deleteRestartGru(testResultIds,false);
testStackService.createOrUpdateGruStack();
}
/* String userName = null;
try {
userName = DAOUtil.getContext().getActingUser().getUserName();
} catch (Throwable e) {
LOGGER.warn("Can't retrieve user name from authenticationService.", e);
}
System.out.println(">>>>>userName"+userName);
testStackService.deleteRestartGru(testResultIds,false);
testStackService.deleteActiveStack();
testStackService.createOrUpdateGruStack();*/
}
/**
* This method used to get the master engine status whether it is up or down return
* engineStatusMap
* @throws Exception
*/
@RequestMapping(value = "/checkDeploymentDetails", method = RequestMethod.POST)
@ResponseStatus(HttpStatus.OK)
@AccessControl(area = TEST_FRAMEWORK, controlType = ControlType.READ)
public Map<String, Object> checkDeploymentDetails(@RequestBody DeploymentDetail deploymentDetail) throws Exception {
/* try {
if(testStackService.checkDeploymentDetails(deploymentDetail)) {
System.out.println(">>>>deploymentDetail"+deploymentDetail);
System.out.println(">>>>>>>>>userName"+userName);
List<String> testResultIds = Lists.newArrayList();
final String branch = webApplicationStatusService.getManifestData().getBranch();
System.out.println(">>>>branch"+branch);
List<TestResult> testRun = testResultService.getPendingTestRunDetails(branch);
System.out.println(">>>>testRun"+testRun);
testRun.stream().forEach(run -> {
testResultIds.add(run.getId().toString());
});
testResultIds.add("5a28cdee374ec31c24ef097a");
System.out.println(">>>>testRunIds"+testResultIds);
testStackService.deleteRestartGru(testResultIds, false, null);
testStackService.deleteRestartGru(testResultIds, false, userName);
testStackService.deleteGruForBuildNumberChange(testResultIds, userName);
createAndUpdateStack();
Map<String, Object> stackCreatedStatusMap = new HashMap<String, Object>();
stackCreatedStatusMap.put("check", "done");
return stackCreatedStatusMap;
}
} catch (TestFWResourceNotFoundException e) {
System.out.println("Exception in getPendingTestRunDetails"+e);
} catch (TestFWServerException e) {
System.out.println("Exception in restartTestEngine"+e);
}*/
Map<String, Object> stackCreatedStatusMap = new HashMap<String, Object>();
boolean requireRestart = testStackService.checkDeploymentDetails(deploymentDetail);
stackCreatedStatusMap.put("requireRestart", Boolean.toString(requireRestart));
return stackCreatedStatusMap;
}
/*public void deleteGruForBuildNumberChange(List<String> testResultIds, String userName) throws TestFWServerException, TestFWResourceNotFoundException, InterruptedException{
testResultIds.parallelStream().forEach(resultId ->
{
try {
testResultService.deleteTestRunInstance(resultId);
} catch (TestFWServerException e) {
LOGGER.error("Error Occured while deleting cluster with Test Result ID:{}", resultId,e);
}
}
);
deleteRestartGru(testResultIds,false);
deleteActiveStack();
final ExecutorService stopGruExecutorService = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder()
.setNameFormat("DeleteGRU-%d")
.build());
CompletableFuture.runAsync(() -> {
try {
deleteRestartGru(testResultIds, false, userName);
} catch (Exception e) {
LOGGER.error("Exception during GRU stopping. Error: {} ", e.getMessage(), e);
}
}, stopGruExecutorService)
.exceptionally(throwable -> {
LOGGER.error("Unhandled exception during GRU stopping. Error: {} ", throwable.getMessage(), throwable);
return null;
})
.thenRun(stopGruExecutorService::shutdown);
Map<String, Object> stackDeleteStatusMap = new HashMap<String, Object>();
String stackDeleteStatus = TestFrameworkStatus.DELETE_INITIATED.getValue();
stackDeleteStatusMap.put(STATUS, stackDeleteStatus);
TestStack stackInfo = testStackDAO.findRecentStackInfo();
stackInfo.setStatus(stackDeleteStatus);
testStackDAO.update(stackInfo);
}*/
@Override
public Boolean checkDeploymentDetails(DeploymentDetail deploymentDetail) {
LOGGER.info("Inside checkDeploymentDetails, deploymentDetail {}", deploymentDetail);
String bambooVersion = webApplicationStatusService.getManifestData().getBambooVersion().trim();
System.out.println("bambooVersion>>>>>>>>>>"+bambooVersion);
System.out.println("deploymentDetails>>>>>>>>>>"+deploymentDetail);
System.out.println("deploymentDetails.getBambooVersion()>>>>>>>>>>"+deploymentDetail.getBambooVersion());
String currentBranch = webApplicationStatusService.getManifestData().getBranch().trim();
DeploymentDetail existingdeploymentDetail = deploymentDetailDAO.getDeploymentDetailByBranch(currentBranch);
System.out.println("check both version"+deploymentDetail.getBambooVersion().equalsIgnoreCase(existingdeploymentDetail.getBambooVersion()));
if(deploymentDetail.getBambooVersion().equalsIgnoreCase(existingdeploymentDetail.getBambooVersion())) {
System.out.println("Both are same");
return false;
}
System.out.println("Both are different");
return true;
}
$scope.runCustomScenario = function (testScenario) {
$scope.releaseVersion = {};
versionRest.getReleaseVersion().then(function (data) {
gruStackService.checkDeploymentDetails(data).then(function (response) {
var getResponse = response.requireRestart;
if (getResponse === true) {
var notificationMessage = $sce.trustAsHtml(localization.get('testframework.build.discrepancy') + '</br></br>' +
localization.get('testframework.running.scenario'));
modalsService.notification(notificationMessage);
$scope.loading = true;
}
scenario.runScenario(testScenario.testRunConfigName, getResponse).then(function (testRun) {
mercuryDashboard.setTestRun(testRun);
mercuryDashboard.setBackPath('testFramework/home/' + selectedTab);
$location.path('/testFramework/dashboard');
}, showError);
});
}).catch(function (error) {
showError(error);
}).finally(function () {
$scope.loading = false;
});
};
$scope.runReplayScenario = function (testScenario) {
$scope.releaseVersion = {};
versionRest.getReleaseVersion().then(function (data) {
gruStackService.checkDeploymentDetails(data).then(function (response) {
var getResponse = response.requireRestart;
if (getResponse === true) {
var notificationMessage = $sce.trustAsHtml(localization.get('testframework.build.discrepancy') + '</br></br>' +
localization.get('testframework.running.scenario'));
modalsService.notification(notificationMessage);
$scope.loading = true;
}
if (testScenario.replayOnNewEnvironment) {
$scope.testScenarioConfig = {
deleteCluster: true,
deleteDtsDpUeStacks: true,
rdsDbSnapshotChk: false,
};
$scope.currentTestScenario = testScenario;
$uibModal.open({
templateUrl: 'heimdall/testFramework/popups/runTestReplayConfigurationModal.html',
size: 'lg',
backdrop: true,
scope: $scope,
keyboard: false,
}).result.then(function (runConfig) {
$scope.loadingReplayScenarios = true;
replay.runScenario(testScenario.id, getResponse, runConfig).then(function (testRun) {
$scope.loadingReplayScenarios = false;
mercuryDashboard.setTestRun(testRun);
mercuryDashboard.setBackPath('testFramework/home/' + selectedTab);
$location.path('/testFramework/dashboard');
}, showError);
});
} else {
replay.runScenario(testScenario.id, getResponse).then(function (testRun) {
mercuryDashboard.setTestRun(testRun);
mercuryDashboard.setBackPath('testFramework/home/' + selectedTab);
$location.path('/testFramework/dashboard');
}, showError);
}
});
}).catch(function (error) {
showError(error);
}).finally(function () {
$scope.loading = false;
});
};
$scope.runMirrorScenario = function (scenario) {
$scope.releaseVersion = {};
versionRest.getReleaseVersion().then(function (data) {
gruStackService.checkDeploymentDetails(data).then(function (response) {
var requireRestart = response.requireRestart;
if ( requireRestart === true ) {
var notificationMessage = $sce.trustAsHtml(localization.get('testframework.build.discrepancy') + '</br></br>' +
localization.get('testframework.running.scenario'));
modalsService.notification(notificationMessage);
$scope.loading = true;
}
mirrorCreateScenario.runScenario(scenario.id, requireRestart).then(function (testRun) {
mercuryDashboard.setTestRun(testRun);
mercuryDashboard.setBackPath('testFramework/home/' + selectedTab);
$location.path('/testFramework/dashboard');
$scope.loading = false;
}, showError);
});
}).catch(function (error) {
showError(error);
}).finally(function () {
$scope.loading = false;
});
};
Criteria criteria = Criteria.criteria(Field.field("testRunConfigId").eq(scenarioId));
criteria.criteria(Field.field("updated.on").desc());
List<TestResult> testresult = testResultDAO.findBy(criteria);
git stash pop id
1289
1275
db.getCollection('MinionProperties').find({},{"testResultName":1}).sort({"updated.on":-1}).limit(100)https://corex-dev.awsdsi.ghx.com/rest/testframework/testscenario/Test_sample1?isDuplicateScenario=true
GET
param
isDuplicateScenario: true
<Scenario>
<id>5db7c17a88660c0e9c5b828f</id>
<testRunConfigName>DUP_Test_sample1_2m</testRunConfigName>
<minionsCount>1</minionsCount>
<duration>10</duration>
<durationType>minute(s)</durationType>
<rampup>2</rampup>
<rampupType>minute(s)</rampupType>
<testScenarioDescription/>
<testCases>
<testCases>
<id/>
<name>TC_1</name>
<description/>
<connection>
<id>5b555e74f427250be28dabed</id>
<name>Https_Adapter</name>
<connectionType>com.ghx.adapter.outbound.HttpGeneralAdapter</connectionType>
<dataType>
<headers>
Authorization=Basic UUFSZWdyZXNzUHJvdjIzNTpRQVJlZ3Jlc3NQcm92MjM1|filename={Context.OutboundFileName}
</headers>
<baseUrl>
https://corex-dev-ue.awsdsi.ghx.com/engine/test/document/{Context.OutboundFileName}
</baseUrl>
<authenticateClient>false</authenticateClient>
<allowPostRedirect>false</allowPostRedirect>
<sendAttachmentOnly>false</sendAttachmentOnly>
</dataType>
<created>
<by>akkrishnakumar@ghx.com</by>
<on>1532321396820</on>
</created>
<updated>
<by>akkrishnakumar@ghx.com</by>
<on>1532321396824</on>
</updated>
</connection>
<numberOfFiles>3</numberOfFiles>
<order>0</order>
<ready>true</ready>
<documentId>
<documentId>
<id>5ad7239febff480c54741414</id>
<name>Abi_dev_850</name>
<docSubType>850</docSubType>
<docType>EDI</docType>
<version>004010</version>
<messageStoreID>
<uri>
securemsgstore:AWS_S3:ghx-corex-testdocs:DEV18531018032018/b3b347bf-7e64-41f9-9cad-25088970aad3-Abi_850.edi
</uri>
<messageDigestAlgorithm>MD5</messageDigestAlgorithm>
<encryptDecryptData>false</encryptDecryptData>
<calculateChecksumAndLengthOnIncomingStream>true</calculateChecksumAndLengthOnIncomingStream>
<calculateChecksumOnStoringStream>true</calculateChecksumOnStoringStream>
<incomingStreamStats>
<checksum>NOn1Ru+9cr3rkFCxynd8Xg==</checksum>
<streamSize>1213</streamSize>
</incomingStreamStats>
<storedStreamStats>
<checksum/>
<streamSize>1213</streamSize>
<resourceUri>
DEV18531018032018/b3b347bf-7e64-41f9-9cad-25088970aad3-Abi_850.edi
</resourceUri>
<storedUsingLargeFileHandling>true</storedUsingLargeFileHandling>
</storedStreamStats>
<fileName>Abi_850.edi</fileName>
<encryptionUsed>01</encryptionUsed>
<encoding>UTF-8</encoding>
</messageStoreID>
<template>false</template>
<overridden>false</overridden>
<validDocument>true</validDocument>
<size>1213</size>
<created>
<by>mkumar</by>
<on>1524048799923</on>
</created>
<updated>
<by>mkumar</by>
<on>1524048799923</on>
</updated>
</documentId>
</documentId>
<created/>
<updated/>
</testCases>
</testCases>
<ready>true</ready>
<created>
<by>spkannan</by>
<on>1572323706170</on>
</created>
<updated>
<by>spkannan</by>
<on>1572323714333</on>
</updated>
</Scenario>
equest URL:https://corex-dev.awsdsi.ghx.com/rest/config/ui/classModel?classPath=com.ghx.testframework.api.entity.Scenario
Request method:GET
params:
com.ghx.testframework.api.entity.Scenario
response
{"root":{"divClass":null,"name":null,"header":null,"tooltip":null,"collapsible":false,"collapsed":false,"arrangement":"block","remoteValidator":null,"order":1,"divs":[{"divClass":"com.ghx.uiconfig.impl.div.BaseBlockDiv","name":"com.ghx.uiconfig.impl.div.BaseBlockDiv","header":null,"tooltip":null,"collapsible":false,"collapsed":false,"arrangement":"block","remoteValidator":null,"order":1,"divs":[{"divClass":"com.ghx.testframework.api.uiconfig.group.Group3","name":"com.ghx.testframework.api.uiconfig.group.Group3","header":null,"tooltip":null,"collapsible":false,"collapsed":false,"arrangement":"inline","remoteValidator":null,"order":1,"elements":[{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"input","name":"testRunConfigName","label":"Scenario Name","unit":"","mask":"","tooltip":"","value":null,"valueParam":null,"populator":null,"remoteValidator":{"url":"/scenario/validate/testrunconfigname","params":[{"key":"testRunConfigName","value":"testRunConfigName","scope":"CLASS"}]},"behaviors":[],"required":true,"order":1,"classLevel":0,"parameters":[],"disabled":false},{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"input","name":"minionsCount","label":"Minions Count","unit":"","mask":"","tooltip":"","value":0,"valueParam":null,"populator":null,"remoteValidator":null,"behaviors":[{"type":"hide","conditions":[{"field":"minionsCount","values":["0"],"operation":"IN"}]},{"type":"readonly","conditions":[{"field":"minionsCount","values":["0"],"operation":"NOT_IN"}]}],"required":false,"order":2,"classLevel":0,"parameters":[],"disabled":false}]},{"divClass":"com.ghx.testframework.api.uiconfig.panel.InlinePanel","name":"com.ghx.testframework.api.uiconfig.panel.InlinePanel","header":null,"tooltip":null,"collapsible":false,"collapsed":false,"arrangement":"inline","remoteValidator":{"url":"/scenario/panelwithvalue/baseblockdiv/order/1/andvalidatorvalidationnotrequired/groupwithvalue/inlinepanel/order/1/andvalidatorrampupdurationvalidator/validate","params":[{"key":"duration","value":"duration","scope":"CLASS"},{"key":"durationType","value":"durationType","scope":"CLASS"},{"key":"rampup","value":"rampup","scope":"CLASS"},{"key":"rampupType","value":"rampupType","scope":"CLASS"}]},"order":1,"elements":[{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"number","name":"duration","label":"Duration","unit":"","mask":"","tooltip":"","value":30,"valueParam":null,"populator":null,"remoteValidator":{"url":"/scenario/validate/duration","params":[{"key":"duration","value":"duration","scope":"CLASS"}]},"behaviors":[],"required":true,"order":3,"classLevel":0,"parameters":[],"disabled":false},{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"listOneOfMany","name":"durationType","label":"Measurement","unit":"","mask":"","tooltip":"","value":"minute(s)","valueParam":null,"populator":{"url":"/scenario/populate/durationtype","params":[{"key":"scenarioName","value":"testRunConfigName","scope":"CLASS"}],"dataKey":null,"data":null},"remoteValidator":null,"behaviors":[],"required":true,"order":4,"classLevel":0,"parameters":[],"disabled":false},{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"number","name":"rampup","label":"RampUp Duration","unit":"","mask":"","tooltip":"","value":0,"valueParam":null,"populator":null,"remoteValidator":{"url":"/scenario/validate/rampup","params":[{"key":"rampup","value":"rampup","scope":"CLASS"}]},"behaviors":[],"required":false,"order":5,"classLevel":0,"parameters":[],"disabled":false},{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"listOneOfMany","name":"rampupType","label":"Measurement","unit":"","mask":"","tooltip":"","value":"minute(s)","valueParam":null,"populator":{"url":"/scenario/populate/rampuptype","params":[{"key":"scenarioName","value":"testRunConfigName","scope":"CLASS"}],"dataKey":null,"data":null},"remoteValidator":null,"behaviors":[{"type":"disable","conditions":[{"field":"rampup","values":["0"],"operation":"IN"}]}],"required":true,"order":6,"classLevel":0,"parameters":[],"disabled":false}]},{"divClass":"com.ghx.uiconfig.impl.div.BaseBlockDiv","name":"com.ghx.uiconfig.impl.div.BaseBlockDiv","header":null,"tooltip":null,"collapsible":false,"collapsed":false,"arrangement":"block","remoteValidator":null,"order":1,"elements":[{"componentClass":"com.ghx.testframework.api.entity.Scenario","type":"textarea","name":"testScenarioDescription","label":"Scenario Description","unit":"","mask":"","tooltip":"","value":null,"valueParam":null,"populator":null,"remoteValidator":null,"behaviors":[],"required":false,"order":7,"classLevel":0,"parameters":[],"disabled":false}]}]}]},"populationData":{},"metadata":{"__CLASSPATH__":"com.ghx.testframework.api.entity.Scenario"}}
https://corex-dev.awsdsi.ghx.com/scenario/validate/testrunconfigname
Request method:POSThttps://corex-dev.awsdsi.ghx.com/scenario/validate/testrunconfigname
Request method:POST
testRunConfigName: DUP_Test_sample1_aW
{"errorMessage":null,"valid":true}
https://corex-dev.awsdsi.ghx.com/scenario/panelwithvalue/baseblockdiv/order/1/andvalidatorvalidationnotrequired/groupwithvalue/inlinepanel/order/1/andvalidatorrampupdurationvalidator/validate
Request method:POST
{"Form data":{"duration":"10","durationType":"minute(s)","rampup":"2","rampupType":"minute(s)"}}
{"errorMessage":null,"valid":true}
https://corex-dev.awsdsi.ghx.com/scenario/validate/duration
Request method:POST
duration: 10
{"errorMessage":null,"valid":true}
L:https://corex-dev.awsdsi.ghx.com/scenario/validate/rampup
Request method:POST
rampup: 2
{"errorMessage":null,"valid":true}
Request URL:https://corex-dev.awsdsi.ghx.com/scenario/populate/durationtype
Request method:POST
scenarioName: DUP_Test_sample1_aW
[{"value":"second(s)","label":"second(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"minute(s)","label":"minute(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"hour(s)","label":"hour(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"day(s)","label":"day(s)","tooltip":null,"groupLabel":null,"disabled":false}]
:https://corex-dev.awsdsi.ghx.com/scenario/populate/rampuptype
Request method:POST
scenarioName: DUP_Test_sample1_aW
[{"value":"second(s)","label":"second(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"minute(s)","label":"minute(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"hour(s)","label":"hour(s)","tooltip":null,"groupLabel":null,"disabled":false},{"value":"day(s)","label":"day(s)","tooltip":null,"groupLabel":null,"disabled":false}]
$elvapr1yaKannan
spalanichamy
TestingAbc123457#
curl -X GET "https://api.newrelic.com/v2/applications/${appId}/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-21T13:20:21+00:00&to="2019-10-21T13:42:05+00:00&filter[name]=dev" -i
2019-10-21 13:42:05
curl -X GET "https://api.newrelic.com/v2//applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[name]=dev" -i
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2//applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[name]=dev" -i
HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 8504
Content-Type: application/json
Date: Mon, 21 Oct 2019 09:31:17 GMT
Etag: "2b831aaf2666a3765b42faa3931020cc"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 72bb1469bcdb63dd8bf28c626b96eae1
X-Runtime: 5.435892
X-Ua-Compatible: IE=Edge,chrome=1
{"applications":[{"id":213934416,"name":"connectplus-api-DEV","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:28:52+00:00","application_summary":{"response_time":4.89,"throughput":71.7,"error_rate":0.0233,"apdex_target":0.5,"apdex_score":0.98,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302908321],"servers":[],"application_hosts":[218453874]}},{"id":272171087,"name":"connectplus-api-DEVINT","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:29:23+00:00","application_summary":{"response_time":22.3,"throughput":4.33,"error_rate":0.0769,"apdex_target":0.5,"apdex_score":0.92,"host_count":2,"instance_count":2},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[272308573,272317535],"servers":[],"application_hosts":[205425282,272317534]}},{"id":213929155,"name":"connectplus-fleet-DEV","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:29:23+00:00","application_summary":{"response_time":5.72,"throughput":7.33,"error_rate":0.455,"apdex_target":0.5,"apdex_score":0.55,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[301288735],"servers":[],"application_hosts":[217637530]}},{"id":272257402,"name":"connectplus-fleet-DEVINT","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:29:24+00:00","application_summary":{"response_time":5.1,"throughput":6.67,"error_rate":0.2,"apdex_target":0.5,"apdex_score":0.8,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[272257403],"servers":[],"application_hosts":[202849634]}},{"id":299767980,"name":"DEV-data-poller","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:29:27+00:00","application_summary":{"response_time":1.36,"throughput":4.0,"error_rate":0.0,"apdex_target":0.5,"apdex_score":1.0,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302930614],"servers":[],"application_hosts":[228266769]}},{"id":181703790,"name":"DEV-io-engine","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:28:43+00:00","application_summary":{"response_time":1.7,"throughput":22.0,"error_rate":0.0,"apdex_target":0.5,"apdex_score":1.0,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302930077],"servers":[],"application_hosts":[222760184]}},{"id":299767611,"name":"DEV-jobs","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:29:38+00:00","application_summary":{"response_time":1.32,"throughput":4.0,"error_rate":0.0,"apdex_target":0.5,"apdex_score":1.0,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302930717],"servers":[],"application_hosts":[212928884]}},{"id":299767888,"name":"DEV-processing-engine","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T09:28:54+00:00","application_summary":{"response_time":1.73,"throughput":4.0,"error_rate":0.0,"apdex_target":0.5,"apdex_score":1.0,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302930754],"servers":[],"application_hosts":[205298470]}},{"id":126419871,"name":"DEV-ui-mex","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":138830856,"name":"DEV2-grs-catalog","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":135865090,"name":"DEV2-grs-posu","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":135678450,"name":"DEV2-grs-ui","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":83812995,"name":"DEVINT-identity-service","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":106111994,"name":"DEVINT-io-engine","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":106112109,"name":"DEVINT-processing-engine","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":34607064,"name":"DEVINT-regapi-ws","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":34606481,"name":"DEVINT-ui-heimdall","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":97116442,"name":"DEVINT-ui-mex","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":34607048,"name":"DEVINT-universal-engine","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}},{"id":176903016,"name":"EUDEV-docstore-engine","language":"java","health_status":"gray","reporting":false,"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[],"servers":[],"application_hosts":[]}}],"links":{"application.servers":"/v2/servers?ids={server_ids}","application.server":"/v2/servers/{server_id}","application.application_hosts":"/v2/application/{application_id}/hosts?ids={host_ids}","application.application_host":"/v2/application/{application_id}/hosts/{host_id}","application.application_instances":"/v2/application/{application_id}/instances?ids={instance_ids}","application.application_instance":"/v2/application/{application_id}/instances/{instance_id}"}}(
$scope.form.Data.testCases[6].numberOfFiles$scope.form.Data.testCases[6].numberOfFiles
curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-21T07:20:21+00:00&to="2019-10-21T07:42:05+00:00" -i
181703790
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications/181703790/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d"names[]=CPU/User+Time&from="2019-10-21T07:20:21+00:00&to="2019-10-21T07:42:05+00:00"
[1] 22748
(base) sys-user@SMI-243:~$ HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 22769
Content-Type: application/json
Date: Mon, 21 Oct 2019 10:06:36 GMT
Etag: "47a19ff1c5fe6bebef158ccc9227e0ad"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 1e616c2935dddf85cdb7f03fb1bb576e
X-Runtime: 0.079903
X-Ua-Compatible: IE=Edge,chrome=1
{"metric_data":{"from":"2019-10-21T07:20:21+00:00","to":"2019-10-21T10:06:36+00:00","metrics_not_found":[],"metrics_found":["CPU/User Time"],"metrics":[{"name":"CPU/User Time","timeslices":[{"from":"2019-10-21T07:17:00+00:00","to":"2019-10-21T07:18:00+00:00","values":{"total_time":20100,"average_time":20100,"percent":33.5}},{"from":"2019-10-21T07:18:00+00:00","to":"2019-10-21T07:19:00+00:00","values":{"total_time":20300,"average_time":20300,"percent":33.8}},{"from":"2019-10-21T07:19:00+00:00","to":"2019-10-21T07:20:00+00:00","values":{"total_time":19500,"average_time":19500,"percent":32.6}},{"from":"2019-10-21T07:20:00+00:00","to":"2019-10-21T07:21:00+00:00","values":{"total_time":19000,"average_time":19000,"percent":31.7}},{"from":"2019-10-21T07:21:00+00:00","to":"2019-10-21T07:22:00+00:00","values":{"total_time":20000,"average_time":20000,"percent":33.3}},{"from":"2019-10-21T07:22:00+00:00","to":"2019-10-21T07:23:00+00:00","values":{"total_time":20200,"average_time":20000,"percent":33.7}},{"from":"2019-10-21T07:23:00+00:00","to":"2019-10-21T07:24:00+00:00","values":{"total_time":20000,"average_time":20100,"percent":33.3}},{"from":"2019-10-21T07:24:00+00:00","to":"2019-10-21T07:25:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.3}},{"from":"2019-10-21T07:25:00+00:00","to":"2019-10-21T07:26:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:26:00+00:00","to":"2019-10-21T07:27:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.1}},{"from":"2019-10-21T07:27:00+00:00","to":"2019-10-21T07:28:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.1}},{"from":"2019-10-21T07:28:00+00:00","to":"2019-10-21T07:29:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.0}},{"from":"2019-10-21T07:29:00+00:00","to":"2019-10-21T07:30:00+00:00","values":{"total_time":23500,"average_time":23500,"percent":39.1}},{"from":"2019-10-21T07:30:00+00:00","to":"2019-10-21T07:31:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.4}},{"from":"2019-10-21T07:31:00+00:00","to":"2019-10-21T07:32:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.0}},{"from":"2019-10-21T07:32:00+00:00","to":"2019-10-21T07:33:00+00:00","values":{"total_time":20500,"average_time":20500,"percent":34.1}},{"from":"2019-10-21T07:33:00+00:00","to":"2019-10-21T07:34:00+00:00","values":{"total_time":20700,"average_time":20700,"percent":34.5}},{"from":"2019-10-21T07:34:00+00:00","to":"2019-10-21T07:35:00+00:00","values":{"total_time":20700,"average_time":20700,"percent":34.5}},{"from":"2019-10-21T07:35:00+00:00","to":"2019-10-21T07:36:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:36:00+00:00","to":"2019-10-21T07:37:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.0}},{"from":"2019-10-21T07:37:00+00:00","to":"2019-10-21T07:38:00+00:00","values":{"total_time":19800,"average_time":19800,"percent":33.1}},{"from":"2019-10-21T07:38:00+00:00","to":"2019-10-21T07:39:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:39:00+00:00","to":"2019-10-21T07:40:00+00:00","values":{"total_time":19900,"average_time":19900,"percent":33.2}},{"from":"2019-10-21T07:40:00+00:00","to":"2019-10-21T07:41:00+00:00","values":{"total_time":19400,"average_time":19400,"percent":32.4}},{"from":"2019-10-21T07:41:00+00:00","to":"2019-10-21T07:42:00+00:00","values":{"total_time":19900,"average_time":19900,"percent":33.1}},{"from":"2019-10-21T07:42:00+00:00","to":"2019-10-21T07:43:00+00:00","values":{"total_time":20000,"average_time":20000,"percent":33.4}},{"from":"2019-10-21T07:43:00+00:00","to":"2019-10-21T07:44:00+00:00","values":{"total_time":20100,"average_time":20100,"percent":33.4}},{"from":"2019-10-21T07:44:00+00:00","to":"2019-10-21T07:45:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:45:00+00:00","to":"2019-10-21T07:46:00+00:00","values":{"total_time":19600,"average_time":19700,"percent":32.6}},{"from":"2019-10-21T07:46:00+00:00","to":"2019-10-21T07:47:00+00:00","values":{"total_time":20000,"average_time":19800,"percent":33.4}},{"from":"2019-10-21T07:47:00+00:00","to":"2019-10-21T07:48:00+00:00","values":{"total_time":20300,"average_time":20400,"percent":33.8}},{"from":"2019-10-21T07:48:00+00:00","to":"2019-10-21T07:49:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:49:00+00:00","to":"2019-10-21T07:50:00+00:00","values":{"total_time":20600,"average_time":20600,"percent":34.3}},{"from":"2019-10-21T07:50:00+00:00","to":"2019-10-21T07:51:00+00:00","values":{"total_time":22700,"average_time":22700,"percent":37.9}},{"from":"2019-10-21T07:51:00+00:00","to":"2019-10-21T07:52:00+00:00","values":{"total_time":21300,"average_time":21300,"percent":35.5}},{"from":"2019-10-21T07:52:00+00:00","to":"2019-10-21T07:53:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:53:00+00:00","to":"2019-10-21T07:54:00+00:00","values":{"total_time":20000,"average_time":20000,"percent":33.4}},{"from":"2019-10-21T07:54:00+00:00","to":"2019-10-21T07:55:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.6}},{"from":"2019-10-21T07:55:00+00:00","to":"2019-10-21T07:56:00+00:00","values":{"total_time":19700,"average_time":19500,"percent":32.9}},{"from":"2019-10-21T07:56:00+00:00","to":"2019-10-21T07:57:00+00:00","values":{"total_time":19800,"average_time":19900,"percent":33.0}},{"from":"2019-10-21T07:57:00+00:00","to":"2019-10-21T07:58:00+00:00","values":{"total_time":20200,"average_time":20200,"percent":33.7}},{"from":"2019-10-21T07:58:00+00:00","to":"2019-10-21T07:59:00+00:00","values":{"total_time":21000,"average_time":21000,"percent":35.0}},{"from":"2019-10-21T07:59:00+00:00","to":"2019-10-21T08:00:00+00:00","values":{"total_time":58400,"average_time":51700,"percent":97.3}},{"from":"2019-10-21T08:00:00+00:00","to":"2019-10-21T08:01:00+00:00","values":{"total_time":126000,"average_time":92100,"percent":210}},{"from":"2019-10-21T08:01:00+00:00","to":"2019-10-21T08:02:00+00:00","values":{"total_time":126000,"average_time":92100,"percent":210}},{"from":"2019-10-21T08:02:00+00:00","to":"2019-10-21T08:03:00+00:00","values":{"total_time":113000,"average_time":85400,"percent":188}},{"from":"2019-10-21T08:03:00+00:00","to":"2019-10-21T08:04:00+00:00","values":{"total_time":113000,"average_time":44700,"percent":188}},{"from":"2019-10-21T08:04:00+00:00","to":"2019-10-21T08:05:00+00:00","values":{"total_time":56400,"average_time":27500,"percent":94.0}},{"from":"2019-10-21T08:05:00+00:00","to":"2019-10-21T08:06:00+00:00","values":{"total_time":53800,"average_time":26800,"percent":89.6}},{"from":"2019-10-21T08:06:00+00:00","to":"2019-10-21T08:07:00+00:00","values":{"total_time":51400,"average_time":25700,"percent":85.7}},{"from":"2019-10-21T08:07:00+00:00","to":"2019-10-21T08:08:00+00:00","values":{"total_time":48100,"average_time":24000,"percent":80.1}},{"from":"2019-10-21T08:08:00+00:00","to":"2019-10-21T08:09:00+00:00","values":{"total_time":45300,"average_time":22600,"percent":75.4}},{"from":"2019-10-21T08:09:00+00:00","to":"2019-10-21T08:10:00+00:00","values":{"total_time":48900,"average_time":24400,"percent":81.5}},{"from":"2019-10-21T08:10:00+00:00","to":"2019-10-21T08:11:00+00:00","values":{"total_time":45800,"average_time":23100,"percent":76.3}},{"from":"2019-10-21T08:11:00+00:00","to":"2019-10-21T08:12:00+00:00","values":{"total_time":31200,"average_time":23100,"percent":52.0}},{"from":"2019-10-21T08:12:00+00:00","to":"2019-10-21T08:13:00+00:00","values":{"total_time":23400,"average_time":23400,"percent":39.1}},{"from":"2019-10-21T08:13:00+00:00","to":"2019-10-21T08:14:00+00:00","values":{"total_time":24200,"average_time":24200,"percent":40.3}},{"from":"2019-10-21T08:14:00+00:00","to":"2019-10-21T08:15:00+00:00","values":{"total_time":35000,"average_time":35400,"percent":58.3}},{"from":"2019-10-21T08:15:00+00:00","to":"2019-10-21T08:16:00+00:00","values":{"total_time":28400,"average_time":28300,"percent":47.4}},{"from":"2019-10-21T08:16:00+00:00","to":"2019-10-21T08:17:00+00:00","values":{"total_time":25200,"average_time":25100,"percent":42.0}},{"from":"2019-10-21T08:17:00+00:00","to":"2019-10-21T08:18:00+00:00","values":{"total_time":24100,"average_time":24100,"percent":40.1}},{"from":"2019-10-21T08:18:00+00:00","to":"2019-10-21T08:19:00+00:00","values":{"total_time":24000,"average_time":24000,"percent":40.0}},{"from":"2019-10-21T08:19:00+00:00","to":"2019-10-21T08:20:00+00:00","values":{"total_time":24400,"average_time":24400,"percent":40.6}},{"from":"2019-10-21T08:20:00+00:00","to":"2019-10-21T08:21:00+00:00","values":{"total_time":24600,"average_time":24600,"percent":41.0}},{"from":"2019-10-21T08:21:00+00:00","to":"2019-10-21T08:22:00+00:00","values":{"total_time":25400,"average_time":25300,"percent":42.3}},{"from":"2019-10-21T08:22:00+00:00","to":"2019-10-21T08:23:00+00:00","values":{"total_time":24000,"average_time":24100,"percent":40.0}},{"from":"2019-10-21T08:23:00+00:00","to":"2019-10-21T08:24:00+00:00","values":{"total_time":23500,"average_time":23500,"percent":39.1}},{"from":"2019-10-21T08:24:00+00:00","to":"2019-10-21T08:25:00+00:00","values":{"total_time":24300,"average_time":24200,"percent":40.4}},{"from":"2019-10-21T08:25:00+00:00","to":"2019-10-21T08:26:00+00:00","values":{"total_time":23800,"average_time":23800,"percent":39.6}},{"from":"2019-10-21T08:26:00+00:00","to":"2019-10-21T08:27:00+00:00","values":{"total_time":22900,"average_time":22900,"percent":38.1}},{"from":"2019-10-21T08:27:00+00:00","to":"2019-10-21T08:28:00+00:00","values":{"total_time":22300,"average_time":22300,"percent":37.1}},{"from":"2019-10-21T08:28:00+00:00","to":"2019-10-21T08:29:00+00:00","values":{"total_time":22800,"average_time":22800,"percent":38.1}},{"from":"2019-10-21T08:29:00+00:00","to":"2019-10-21T08:30:00+00:00","values":{"total_time":24700,"average_time":24700,"percent":41.2}},{"from":"2019-10-21T08:30:00+00:00","to":"2019-10-21T08:31:00+00:00","values":{"total_time":22500,"average_time":22500,"percent":37.6}},{"from":"2019-10-21T08:31:00+00:00","to":"2019-10-21T08:32:00+00:00","values":{"total_time":23500,"average_time":23500,"percent":39.1}},{"from":"2019-10-21T08:32:00+00:00","to":"2019-10-21T08:33:00+00:00","values":{"total_time":22500,"average_time":22500,"percent":37.4}},{"from":"2019-10-21T08:33:00+00:00","to":"2019-10-21T08:34:00+00:00","values":{"total_time":22100,"average_time":22100,"percent":36.9}},{"from":"2019-10-21T08:34:00+00:00","to":"2019-10-21T08:35:00+00:00","values":{"total_time":24000,"average_time":24000,"percent":39.9}},{"from":"2019-10-21T08:35:00+00:00","to":"2019-10-21T08:36:00+00:00","values":{"total_time":22400,"average_time":22400,"percent":37.4}},{"from":"2019-10-21T08:36:00+00:00","to":"2019-10-21T08:37:00+00:00","values":{"total_time":22500,"average_time":22500,"percent":37.5}},{"from":"2019-10-21T08:37:00+00:00","to":"2019-10-21T08:38:00+00:00","values":{"total_time":23400,"average_time":23400,"percent":39.0}},{"from":"2019-10-21T08:38:00+00:00","to":"2019-10-21T08:39:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.3}},{"from":"2019-10-21T08:39:00+00:00","to":"2019-10-21T08:40:00+00:00","values":{"total_time":24000,"average_time":24000,"percent":40.0}},{"from":"2019-10-21T08:40:00+00:00","to":"2019-10-21T08:41:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.6}},{"from":"2019-10-21T08:41:00+00:00","to":"2019-10-21T08:42:00+00:00","values":{"total_time":21900,"average_time":21900,"percent":36.5}},{"from":"2019-10-21T08:42:00+00:00","to":"2019-10-21T08:43:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.6}},{"from":"2019-10-21T08:43:00+00:00","to":"2019-10-21T08:44:00+00:00","values":{"total_time":22200,"average_time":22200,"percent":37.0}},{"from":"2019-10-21T08:44:00+00:00","to":"2019-10-21T08:45:00+00:00","values":{"total_time":24300,"average_time":24300,"percent":40.5}},{"from":"2019-10-21T08:45:00+00:00","to":"2019-10-21T08:46:00+00:00","values":{"total_time":21600,"average_time":21600,"percent":35.9}},{"from":"2019-10-21T08:46:00+00:00","to":"2019-10-21T08:47:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.7}},{"from":"2019-10-21T08:47:00+00:00","to":"2019-10-21T08:48:00+00:00","values":{"total_time":22900,"average_time":22900,"percent":38.2}},{"from":"2019-10-21T08:48:00+00:00","to":"2019-10-21T08:49:00+00:00","values":{"total_time":23100,"average_time":23100,"percent":38.4}},{"from":"2019-10-21T08:49:00+00:00","to":"2019-10-21T08:50:00+00:00","values":{"total_time":22400,"average_time":22400,"percent":37.4}},{"from":"2019-10-21T08:50:00+00:00","to":"2019-10-21T08:51:00+00:00","values":{"total_time":20800,"average_time":20800,"percent":34.7}},{"from":"2019-10-21T08:51:00+00:00","to":"2019-10-21T08:52:00+00:00","values":{"total_time":21000,"average_time":21000,"percent":35.1}},{"from":"2019-10-21T08:52:00+00:00","to":"2019-10-21T08:53:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.4}},{"from":"2019-10-21T08:53:00+00:00","to":"2019-10-21T08:54:00+00:00","values":{"total_time":22800,"average_time":22700,"percent":38.0}},{"from":"2019-10-21T08:54:00+00:00","to":"2019-10-21T08:55:00+00:00","values":{"total_time":24200,"average_time":24300,"percent":40.4}},{"from":"2019-10-21T08:55:00+00:00","to":"2019-10-21T08:56:00+00:00","values":{"total_time":21800,"average_time":21900,"percent":36.4}},{"from":"2019-10-21T08:56:00+00:00","to":"2019-10-21T08:57:00+00:00","values":{"total_time":21500,"average_time":21500,"percent":35.9}},{"from":"2019-10-21T08:57:00+00:00","to":"2019-10-21T08:58:00+00:00","values":{"total_time":22200,"average_time":22200,"percent":37.0}},{"from":"2019-10-21T08:58:00+00:00","to":"2019-10-21T08:59:00+00:00","values":{"total_time":21900,"average_time":21900,"percent":36.6}},{"from":"2019-10-21T08:59:00+00:00","to":"2019-10-21T09:00:00+00:00","values":{"total_time":23900,"average_time":23900,"percent":39.8}},{"from":"2019-10-21T09:00:00+00:00","to":"2019-10-21T09:01:00+00:00","values":{"total_time":22800,"average_time":22800,"percent":38.0}},{"from":"2019-10-21T09:01:00+00:00","to":"2019-10-21T09:02:00+00:00","values":{"total_time":21600,"average_time":21600,"percent":36.1}},{"from":"2019-10-21T09:02:00+00:00","to":"2019-10-21T09:03:00+00:00","values":{"total_time":22400,"average_time":22400,"percent":37.3}},{"from":"2019-10-21T09:03:00+00:00","to":"2019-10-21T09:04:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.3}},{"from":"2019-10-21T09:04:00+00:00","to":"2019-10-21T09:05:00+00:00","values":{"total_time":22500,"average_time":22500,"percent":37.5}},{"from":"2019-10-21T09:05:00+00:00","to":"2019-10-21T09:06:00+00:00","values":{"total_time":22700,"average_time":22700,"percent":37.8}},{"from":"2019-10-21T09:06:00+00:00","to":"2019-10-21T09:07:00+00:00","values":{"total_time":23000,"average_time":23000,"percent":38.3}},{"from":"2019-10-21T09:07:00+00:00","to":"2019-10-21T09:08:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.6}},{"from":"2019-10-21T09:08:00+00:00","to":"2019-10-21T09:09:00+00:00","values":{"total_time":20600,"average_time":20600,"percent":34.4}},{"from":"2019-10-21T09:09:00+00:00","to":"2019-10-21T09:10:00+00:00","values":{"total_time":20900,"average_time":20900,"percent":34.9}},{"from":"2019-10-21T09:10:00+00:00","to":"2019-10-21T09:11:00+00:00","values":{"total_time":20600,"average_time":20600,"percent":34.3}},{"from":"2019-10-21T09:11:00+00:00","to":"2019-10-21T09:12:00+00:00","values":{"total_time":22000,"average_time":22000,"percent":36.6}},{"from":"2019-10-21T09:12:00+00:00","to":"2019-10-21T09:13:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.7}},{"from":"2019-10-21T09:13:00+00:00","to":"2019-10-21T09:14:00+00:00","values":{"total_time":21500,"average_time":21500,"percent":35.9}},{"from":"2019-10-21T09:14:00+00:00","to":"2019-10-21T09:15:00+00:00","values":{"total_time":22000,"average_time":22000,"percent":36.6}},{"from":"2019-10-21T09:15:00+00:00","to":"2019-10-21T09:16:00+00:00","values":{"total_time":21300,"average_time":21300,"percent":35.4}},{"from":"2019-10-21T09:16:00+00:00","to":"2019-10-21T09:17:00+00:00","values":{"total_time":21000,"average_time":21000,"percent":35.1}},{"from":"2019-10-21T09:17:00+00:00","to":"2019-10-21T09:18:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.7}},{"from":"2019-10-21T09:18:00+00:00","to":"2019-10-21T09:19:00+00:00","values":{"total_time":21300,"average_time":21300,"percent":35.5}},{"from":"2019-10-21T09:19:00+00:00","to":"2019-10-21T09:20:00+00:00","values":{"total_time":21700,"average_time":21700,"percent":36.2}},{"from":"2019-10-21T09:20:00+00:00","to":"2019-10-21T09:21:00+00:00","values":{"total_time":21600,"average_time":21600,"percent":36.0}},{"from":"2019-10-21T09:21:00+00:00","to":"2019-10-21T09:22:00+00:00","values":{"total_time":21600,"average_time":21600,"percent":36.0}},{"from":"2019-10-21T09:22:00+00:00","to":"2019-10-21T09:23:00+00:00","values":{"total_time":21500,"average_time":21500,"percent":35.9}},{"from":"2019-10-21T09:23:00+00:00","to":"2019-10-21T09:24:00+00:00","values":{"total_time":21400,"average_time":21400,"percent":35.6}},{"from":"2019-10-21T09:24:00+00:00","to":"2019-10-21T09:25:00+00:00","values":{"total_time":20900,"average_time":20900,"percent":34.8}},{"from":"2019-10-21T09:25:00+00:00","to":"2019-10-21T09:26:00+00:00","values":{"total_time":21100,"average_time":21100,"percent":35.2}},{"from":"2019-10-21T09:26:00+00:00","to":"2019-10-21T09:27:00+00:00","values":{"total_time":21100,"average_time":21100,"percent":35.1}},{"from":"2019-10-21T09:27:00+00:00","to":"2019-10-21T09:28:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.0}},{"from":"2019-10-21T09:28:00+00:00","to":"2019-10-21T09:29:00+00:00","values":{"total_time":20700,"average_time":20700,"percent":34.5}},{"from":"2019-10-21T09:29:00+00:00","to":"2019-10-21T09:30:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.3}},{"from":"2019-10-21T09:30:00+00:00","to":"2019-10-21T09:31:00+00:00","values":{"total_time":20600,"average_time":20600,"percent":34.3}},{"from":"2019-10-21T09:31:00+00:00","to":"2019-10-21T09:32:00+00:00","values":{"total_time":25000,"average_time":25000,"percent":41.6}},{"from":"2019-10-21T09:32:00+00:00","to":"2019-10-21T09:33:00+00:00","values":{"total_time":21500,"average_time":21500,"percent":35.8}},{"from":"2019-10-21T09:33:00+00:00","to":"2019-10-21T09:34:00+00:00","values":{"total_time":20900,"average_time":20900,"percent":34.8}},{"from":"2019-10-21T09:34:00+00:00","to":"2019-10-21T09:35:00+00:00","values":{"total_time":21500,"average_time":21500,"percent":35.9}},{"from":"2019-10-21T09:35:00+00:00","to":"2019-10-21T09:36:00+00:00","values":{"total_time":20700,"average_time":20700,"percent":34.5}},{"from":"2019-10-21T09:36:00+00:00","to":"2019-10-21T09:37:00+00:00","values":{"total_time":21100,"average_time":21100,"percent":35.2}},{"from":"2019-10-21T09:37:00+00:00","to":"2019-10-21T09:38:00+00:00","values":{"total_time":21000,"average_time":21000,"percent":35.0}},{"from":"2019-10-21T09:38:00+00:00","to":"2019-10-21T09:39:00+00:00","values":{"total_time":20900,"average_time":20900,"percent":34.8}},{"from":"2019-10-21T09:39:00+00:00","to":"2019-10-21T09:40:00+00:00","values":{"total_time":21100,"average_time":21100,"percent":35.1}},{"from":"2019-10-21T09:40:00+00:00","to":"2019-10-21T09:41:00+00:00","values":{"total_time":20400,"average_time":20400,"percent":34.0}},{"from":"2019-10-21T09:41:00+00:00","to":"2019-10-21T09:42:00+00:00","values":{"total_time":20800,"average_time":20800,"percent":34.6}},{"from":"2019-10-21T09:42:00+00:00","to":"2019-10-21T09:43:00+00:00","values":{"total_time":20600,"average_time":20600,"percent":34.3}},{"from":"2019-10-21T09:43:00+00:00","to":"2019-10-21T09:44:00+00:00","values":{"total_time":20500,"average_time":20500,"percent":34.2}},{"from":"2019-10-21T09:44:00+00:00","to":"2019-10-21T09:45:00+00:00","values":{"total_time":22900,"average_time":22900,"percent":38.1}},{"from":"2019-10-21T09:45:00+00:00","to":"2019-10-21T09:46:00+00:00","values":{"total_time":20500,"average_time":20500,"percent":34.2}},{"from":"2019-10-21T09:46:00+00:00","to":"2019-10-21T09:47:00+00:00","values":{"total_time":20500,"average_time":20500,"percent":34.2}},{"from":"2019-10-21T09:47:00+00:00","to":"2019-10-21T09:48:00+00:00","values":{"total_time":21100,"average_time":21100,"percent":35.2}},{"from":"2019-10-21T09:48:00+00:00","to":"2019-10-21T09:49:00+00:00","values":{"total_time":21000,"average_time":21000,"percent":34.9}},{"from":"2019-10-21T09:49:00+00:00","to":"2019-10-21T09:50:00+00:00","values":{"total_time":21200,"average_time":21200,"percent":35.4}},{"from":"2019-10-21T09:50:00+00:00","to":"2019-10-21T09:51:00+00:00","values":{"total_time":20500,"average_time":20500,"percent":34.2}},{"from":"2019-10-21T09:51:00+00:00","to":"2019-10-21T09:52:00+00:00","values":{"total_time":74000,"average_time":62400,"percent":123}},{"from":"2019-10-21T09:52:00+00:00","to":"2019-10-21T09:53:00+00:00","values":{"total_time":124000,"average_time":90900,"percent":206}},{"from":"2019-10-21T09:53:00+00:00","to":"2019-10-21T09:54:00+00:00","values":{"total_time":124000,"average_time":91100,"percent":206}},{"from":"2019-10-21T09:54:00+00:00","to":"2019-10-21T09:55:00+00:00","values":{"total_time":110000,"average_time":79000,"percent":183}},{"from":"2019-10-21T09:55:00+00:00","to":"2019-10-21T09:56:00+00:00","values":{"total_time":101000,"average_time":39800,"percent":169}},{"from":"2019-10-21T09:56:00+00:00","to":"2019-10-21T09:57:00+00:00","values":{"total_time":57800,"average_time":28400,"percent":96.3}},{"from":"2019-10-21T09:57:00+00:00","to":"2019-10-21T09:58:00+00:00","values":{"total_time":51500,"average_time":25600,"percent":85.9}},{"from":"2019-10-21T09:58:00+00:00","to":"2019-10-21T09:59:00+00:00","values":{"total_time":48400,"average_time":24200,"percent":80.6}},{"from":"2019-10-21T09:59:00+00:00","to":"2019-10-21T10:00:00+00:00","values":{"total_time":50400,"average_time":25200,"percent":84.0}},{"from":"2019-10-21T10:00:00+00:00","to":"2019-10-21T10:01:00+00:00","values":{"total_time":58200,"average_time":29000,"percent":96.9}},{"from":"2019-10-21T10:01:00+00:00","to":"2019-10-21T10:02:00+00:00","values":{"total_time":49500,"average_time":24800,"percent":82.5}},{"from":"2019-10-21T10:02:00+00:00","to":"2019-10-21T10:03:00+00:00","values":{"total_time":49500,"average_time":24700,"percent":82.4}}]}]}}
curl -X GET "https://api.newrelic.com/v2/applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[ids]=181703790"
(base) sys-user@SMI-243:~$ curl -X GET "https://api.newrelic.com/v2/applications.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "filter[ids]=181703790"
HTTP/1.1 200 OK
Proxied-By: Service Gateway
Content-Security-Policy: frame-ancestors *.newrelic.com
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 1048
Content-Type: application/json
Date: Mon, 21 Oct 2019 10:26:12 GMT
Etag: "460a38ba10e5ed4945999533116fb0fe"
Server: nginx
Status: 200 OK
X-Rack-Cache: miss
X-Request-Id: 46dd62d7633d5fd9a550345d39da3cbb
X-Runtime: 0.258735
X-Ua-Compatible: IE=Edge,chrome=1
{"applications":[{"id":181703790,"name":"DEV-io-engine","language":"java","health_status":"unknown","reporting":true,"last_reported_at":"2019-10-21T10:24:43+00:00","application_summary":{"response_time":2.89,"throughput":22.3,"error_rate":0.0,"apdex_target":0.5,"apdex_score":1.0,"host_count":1,"instance_count":1},"settings":{"app_apdex_threshold":0.5,"end_user_apdex_threshold":7.0,"enable_real_user_monitoring":true,"use_server_side_config":false},"links":{"application_instances":[302930077,302972782,302973301],"servers":[],"application_hosts":[222760184,208158474]}}],"links":{"application.servers":"/v2/servers?ids={server_ids}","application.server":"/v2/servers/{server_id}","application.application_hosts":"/v2/application/{application_id}/hosts?ids={host_ids}","application.application_host":"/v2/application/{application_id}/hosts/{host_id}","application.application_instances":"/v2/application/{application_id}/instances?ids={instance_ids}","application.application_instance":"/v2/application/{application_id}/instances/{instance_id}"}}(base)
curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts/222760184/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd}" -i -d "names[]=CPU/User+Time&values[]=percent&summarize=true"
curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts/222760184/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "names[]=CPU/User+Time&values[]=percent&summarize=true"
curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts/208158474/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "names[]=CPU/User+Time&values[]=percent&from=2019-10-21T11:53:00+00:00&to=2019-10-21T22:52:00+00:00&summarize=true"
curl -X GET "https://api.newrelic.com/v2/applications/181703790/hosts/208158474/metrics/data.json" -H "X-Api-Key:ae2038c8d2d472afe7d2da62603f7e814c05b5ad05ec5dd" -i -d "names[]=CPU/User+Time&values[]=percent&from=2019-10-21T13:17:32:00+00&to=2019-10-21T14:17:32:00+00&summarize=true"
2019-10-21T13:17:32:00+00
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5dadafec8d60da1053708924-cpu-utilization/_search?pretty=true" -d'{"from" : 0, "size" : 100}, "query" : {"term" : { "hostname" : "10.31.59.132" }}'
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5da46c9c775d67100d04215f-cpu-utilization/_search?pretty=true"
curl -X GET "https://search-test-framework-es2-rh4ypdodfobsgmd54nfsnphatm.us-west-2.es.amazonaws.com/testfw-replay-dev-5dadafec8d60da1053708924-cpu-utilization/_search?pretty=true"
$scope.updateScenario = function (event, item, valid) {
if (event.keyCode === 13 && event.target.value !== '' && $scope.numberOfFilesValid) {
$scope.loading = true;
$scope.form.Data.testCases = $scope.testCaseList;
console.log(">>"+$scope.form.Data.testCases[0].name);
//scenario.saveHeaderInfo($scope.jsonParams($scope.form.Data));
//$scope.updateTestCase()
/*
scenario.saveGeneralInfo($scope.scenarioName, $scope.generalForm.Data);
scenario.saveDocumentInfo($scope.scenarioName, $scope.testCaseName, $scope.documentForm.Data);*/
//scenario.updateHeaderInfo($scope.scenarioName, $scope.form.Data, false);
/* scenario.saveHeaderInfo($scope.jsonParams($scope.form.Data));
*//* scenario.saveGeneralInfo($scope.scenarioName, $scope.generalForm.Data);*/
/* scenario.getGeneralInfo($scope.scenarioName, $scope.testCaseName).then(function (response) {
$scope.generalFormData = response;
rulesService.getActionDataModel('com.ghx.testframework.api.uiconfig.pages.GeneralInfoPage').then(function (response) {
$scope.generalForm.DataModel = response;
$timeout(function () {
$scope.generalForm.Data = $scope.generalFormData;
});
$scope.wizard.activeStep = 0;
});
});
scenario.saveGeneralInfo($scope.scenarioName, $scope.generalForm.Data);*/
$scope.loading = false;
item.editing = false;
} else if (!$scope.numberOfFilesValid && event.keyCode === 13) {
showError(localization.get('testFramework.custom.editScenario.provideValidTimeToSend'));
}
};
Haripriya2001
Haripriya2001
Pr1yaK@nnan
public void triggerTestScenarioExecution() {
String executorIP = EC2Utils.determineInstanceIpAddress();
String testRunInstanceId = minionProperties.getTestResultInstanceId();
LOGGER.info("Triggering test scenario execution for minion property: {}", minionProperties.asString());
try {
final Date startDate = new Date();
// display time and date
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("JMeter Test Automation Start Time: " + startDate.toString());
}
preProcessTestExecution();
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.INPROGRESS.getValue(),
String.format("%s %s", executorIP, " has started test execution"));
// Load the jmeterconfig.properties file values
processExecutionProperties(minionProperties);
toCleanDir();
/*
* To generate required source files and corresponding MetaData file based on the
* property file, testCaseName, srcPath and totalNOFiles value resply.
*/
generateSRCFilesAndMetaDataFromMap(minionProperties);
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.INPROGRESS.getValue(),
String.format("%s %s", executorIP, " is ready to upload document(s)"));
runGatheringResults(minionProperties.getTestResultName(), testEngineRequestUrlGenerator.getGRUPostProcessorUrl(), false);
final Date jmeterStartDate = new Date();
executeJMeterTestRun(minionProperties);
final Date jmeterEndDate = new Date();
LOGGER.info("jmeter start time : {} | end time : {} | total duration in sec : {} | IpAddress : {}", jmeterStartDate.getTime(),
jmeterEndDate.getTime(), (jmeterEndDate.getTime() - jmeterStartDate.getTime()) / 1000, executorIP);
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.INPROGRESS.getValue(),
String.format("%s %s", executorIP, " has started upload document(s)"));
if (LOGGER.isDebugEnabled()) {
final Date endDate = new Date();
// display time and date
LOGGER.debug("JMeter Test Automation End Time: " + endDate.toString());
LOGGER.debug("JMeter Test Automation Total Time In Sec: " + (endDate.getTime() - startDate.getTime()) / 1000);
}
runGatheringResults(minionProperties.getTestResultName(), testEngineRequestUrlGenerator.getGRUPostProcessorUrl(), true);
} catch (Throwable ex) {
if (ex instanceof InterruptedException) {
LOGGER.error("Test scenario has been interrupted during execution");
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.FAILED.getValue(), "Test scenario has been interrupted");
}
LOGGER.error("Error in TestScenarioExecutor with IP: {}", executorIP, ex);
final String originalErrorMessage = ExceptionUtils.getMessage(ex);
final String errorRootCauseMessage = ExceptionUtils.getRootCauseMessage(ex);
final String errorMsg = String.format("%s Error occurred in test scenario execution: \"%s\" because of \"%s\"", executorIP,
originalErrorMessage, errorRootCauseMessage);
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.FAILED.getValue(), errorMsg);
} finally {
try {
postProcessTestExecution();
} catch (TestFWServerException ex) {
LOGGER.error("Error occurred in postProcessTestExecution in TestScenarioExecutor {}", ex.getMessage(), ex);
final String originalErrorMessage = ExceptionUtils.getMessage(ex);
final String errorRootCauseMessage = ExceptionUtils.getRootCauseMessage(ex);
final String errorMsg = String.format("%s Error occurred in test scenario post process execution: \"%s\" because of \"%s\"",
executorIP, originalErrorMessage, errorRootCauseMessage);
ExecutionUtility.updateTestRunStatus(testRunInstanceId, TestFrameworkStatus.FAILED.getValue(), errorMsg);
}
}
}
CustomTestScenarioExecutor
constructFilePath
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:050190852521:domain/test-framework-es2/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"52.32.51.200",
"182.73.138.9",
"182.73.138.8",
"10.0.0.0/16",
"183.83.154.253",
"72.13.124.3",
"52.13.163.43",
"72.13.124.2",
"10.31.33.182",
"72.13.124.3"
]
}
}
}
]
}
10.31.33.143
52.32.51.200 - unused eip
182.73.138.9 - public Ip of some sys
182.73.138.8 - public Ip of smi sys
10.0.0.0/16
183.83.154.253
72.13.124.3 - CXTF1383 gru
52.13.163.43 - our vpc-> Nat -> eip
72.13.124.2 - gru public ip
10.31.33.182
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:050190852521:domain/test-framework-es2/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"10.31.0.0/16",
"52.13.163.43",
"10.31.0.0/23",
"72.0.0.0/8"
]
}
}
}
]
}
arn:aws:iam::050190852521:role/lambda_elasticsearch_execution-flowlogs
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::050190852521:role/lambda_elasticsearch_execution-flowlogs"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:050190852521:domain/test-framework-es7/*"
},
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-2:050190852521:domain/test-framework-es7/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"52.13.163.43",
"72.13.124.2",
"72.13.124.3",
"72.13.124.4",
"182.73.138.8",
"182.73.138.7",
"157.51.195.47",
"10.31.35.153",
"157.51.248.100",
"10.32.33.184",
"10.0.0.0/8",
"71.218.73.13",
"49.207.129.3",
"49.207.143.21",
"49.207.140.70",
"49.205.77.58",
"157.50.33.146",
"49.207.143.219",
"34.211.219.156"
]
}
}
}
]
}
http://us-west-2-testframework-es.awsdsi.ghx.com
search-test-framework-es7-5r3n4oyw2kddzfmns4oo4okr7m.us-west-2.es.amazonaws.com
curl -H "Content-Type: application/json" -XGET 'http://us-west-2-testframework-es.awsdsi.ghx.com:80/dev-aws-dynamodb-metrics/_search?pretty' -d '{
"from" : 0, "size" : 5,
"query" : {
"match" : {"metricsType" : "conditionalCheckFailed"}
},
"sort" : {
"@timestamp": {"order": "desc"}
}
}'
https://vpc-clincx-dev-stg-mchaj27zvw3igoq5ticezxf5py.us-west-2.es.amazonaws.com
GET /_cat/indices/my-index-*?v&s=index
curl -X GET "https://vpc-clincx-dev-stg-mchaj27zvw3igoq5ticezxf5py.us-west-2.es.amazonaws.com/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
clincx-es-dev.awsdsi.ghx.com
curl -X GET "http://clincx-es-dev.awsdsi.ghx.com/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
curl -X GET "https://search-test-framework-es7-5r3n4oyw2kddzfmns4oo4okr7m.us-west-2.es.amazonaws.com/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
curl -X GET "http://us-west-2-testframework-es.awsdsi.ghx.com/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
https://us-east-1-testframework-es.awsdsi.ghx.com/
curl -X GET "https://us-east-1-testframework-es.awsdsi.ghx.com/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
[2020-10-30T16:58:10,660][ERROR][c.g.t.u.h.RequestToGRUHelper] [HeimdallResultsAggregator-TestRunName-Test_1699_1_121_0_SNAPSHOT_2020_10_30T16_52_31_084Z-thr-0est_thread_info] Failed to execute POST call to ResultsAggregator for testRunName=Test_1699_1_121_0_SNAPSHOT_2020_10_30T16_52_31_084Z using URL: "https://internal-TestFW-GRU-DEV-develop-ELB-1928875696.us-west-2.elb.amazonaws.com///gru/resultsaggregator/Test_1699_1_121_0_SNAPSHOT_2020_10_30T16_52_31_084Z/start?deleteStack=false"
java.util.concurrent.CompletionException: org.springframework.web.client.HttpClientErrorException: 417 Expectation Failed
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_242]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_242]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1643) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: org.springframework.web.client.HttpClientErrorException: 417 Expectation Failed
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:63) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:700) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:653) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
at com.ghx.testframework.utils.helpers.RequestToGRUHelper.lambda$sendResultsAggregatePost$0(RequestToGRUHelper.java:27) ~[test-framework-utils-1.121.0-SNAPSHOT.jar:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_242]
... 3 more
[2020-10-30T16:58:10,757][INFO ][o.a.j.t.JMeterThread ] [ 1-1est_thread_info] Thread started: 1-1
[2020-10-30T16:58:10,761][INFO ][o.a.j.s.FileServer ] [ 1-1est_thread_info] Stored: /install/testresults
HI
we where using the Elasticsearch Service Endpoint: https://search-test-framework-es7-5r3n4oyw2kddzfmns4oo4okr7m.us-west-2.es.amazonaws.com
we used "http://us-west-2-testframework-es.awsdsi.ghx.com" Record Name of Route53 to route to the above Elasticsearch service endpoint, but last 2 days "http://us-west-2-testframework-es.awsdsi.ghx.com" is not working. ROuting to Elasticsearch Service Endpoint not happening.
tfw_url = configuration['testFrameWorkURL']
54.245.86.70
54.214.51.67
34.208.145.96
34.208.214.209
34.211.164.180
34.211.200.26
34.211.219.156
34.215.105.86
34.218.145.183
35.155.147.203
35.160.107.113
35.162.155.206
35.163.246.253
35.164.213.53
35.165.245.118
50.112.59.178
52.13.163.43
52.26.206.178
52.26.60.124
52.32.51.200
52.33.193.174
52.33.61.8
52.34.34.248
52.34.76.36
52.35.244.71
52.37.217.197
52.39.131.50
52.39.235.91
52.41.45.39
52.42.8.167
52.43.205.111
54.189.197.249
54.191.135.253
54.191.174.27
54.191.193.59
54.212.201.85
54.214.95.151
54.245.141.160
54.245.36.80
sample_test.jmx:
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2 r1790748">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="sample Test" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="TestPlan.user_define_classpath"></stringProp>
</TestPlan>
<hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Users" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<longProp name="ThreadGroup.start_time">1537159363000</longProp>
<longProp name="ThreadGroup.end_time">1537159363000</longProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Visit TutorialsPoint Home Page" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">www.tutorialspoint.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree/>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>true</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<sentBytes>true</sentBytes>
<threadCounts>true</threadCounts>
<idleTime>true</idleTime>
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
</hashTree>
<WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="WorkBench" enabled="true">
<boolProp name="WorkBench.save">true</boolProp>
</WorkBench>
<hashTree/>
</hashTree>
</jmeterTestPlan>
Comments
Post a Comment