Method: AEMO::MSATS.system_status
- Defined in:
- lib/aemo/msats.rb
permalink .system_status(options = {}) ⇒ Hash
Participant System Status /ParticipantSystemStatus/PARTICIPANT_IDENTIFIER?transactionId=XXX
234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/aemo/msats.rb', line 234 def system_status( = {}) query = { transactionId: transaction_id } response = get("/ParticipantSystemStatus/#{@participant_id}", basic_auth: @auth, headers: HEADERS, query:, verify: ([:verify_ssl] != false)) if response.response.code == '200' response.parsed_response['aseXML']['Transactions']['Transaction']['ReportResponse']['ReportResults'] else response end end |