Method: AEMO::MSATS.system_status

Defined in:
lib/aemo/msats.rb

.system_status(options = {}) ⇒ Hash

Participant System Status /ParticipantSystemStatus/PARTICIPANT_IDENTIFIER?transactionId=XXX

Returns:

  • (Hash)

    The report results from the Participant System Status web service query

Since:

  • 0.1.0

[View source]

234
235
236
237
238
239
240
241
242
243
244
245
# File 'lib/aemo/msats.rb', line 234

def system_status(options = {})
  query = {
    transactionId: transaction_id
  }
  response = get("/ParticipantSystemStatus/#{@participant_id}", basic_auth: @auth, headers: HEADERS,
                                                                query:, verify: (options[:verify_ssl] != false))
  if response.response.code == '200'
    response.parsed_response['aseXML']['Transactions']['Transaction']['ReportResponse']['ReportResults']
  else
    response
  end
end