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, 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.



179
180
181
# File 'lib/new_relic_api.rb', line 179

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

Instance Method Details

#query_paramsObject

:nodoc:



174
175
176
# File 'lib/new_relic_api.rb', line 174

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