Class: NewRelicApi::Deployment

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

Overview

This model is used to mark production deployments in RPM Only create is supported.

Options

Exactly one of the following is required:

  • app_name: The value of app_name in the newrelic.yml file used by the application. This may be different than the label that appears in the RPM UI. You can find the app_name value in RPM by looking at the label settings for your application.

  • application_id: The application id, found in the URL when viewing the application in RPM.

Following are optional parameters:

  • description: Text annotation for the deployment — notes for you

  • changelog: A list of changes for this deployment

  • user: The name of the user/process that triggered this deployment

Example

NewRelicApi::Deployment.create :application_id => 11142007, :description => "Update production", :user => "Big Mike"

NewRelicApi::Deployment.create :app_name => "My Application", :description => "Update production", :user => "Big Mike"

Method Summary

Methods inherited from BaseResource

headers, inherited, proxy, reset!, site_url