Class: NewRelicApi::Account

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/new_relic_api.rb

Overview

An account contains your basic account information.

Accounts have many

applications

the applications contained within the account

Find Accounts

NewRelicApi::Account.find(:first) # find account associated with the api key
NewRelicApi::Account.find(44)     # find individual account by ID

Defined Under Namespace

Classes: AccountUsage, AccountView

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseResource

headers, inherited, proxy, reset!, site_url

Class Method Details

.application_health(type = :first) ⇒ Object

Returns an account including all of its applications and the threshold values for each application.



187
188
189
# File 'lib/new_relic_api.rb', line 187

def self.application_health(type = :first)
  find(type, :params => {:include => :application_health})
end

Instance Method Details

#query_paramsObject

:nodoc:



182
183
184
# File 'lib/new_relic_api.rb', line 182

def query_params #:nodoc:
  {:account_id => id}
end