class ESP::CustomSignature

Public Instance Methods

suppress(arguments = {}) click to toggle source

Create a suppression for this custom signature.

@param arguments [Hash] Required hash of signature suppression attributes

===== Valid Arguments

See {API documentation}[http://api-docs.evident.io?ruby#suppression-create] for valid arguments

@return [ESP::Suppression::Signature] @example

suppress(regions: ['us_east_1'], external_account_ids: [5], reason: 'My very good reason for creating this suppression')
# File lib/esp/resources/custom_signature.rb, line 30
def suppress(arguments = {})
  arguments = arguments.with_indifferent_access
  ESP::Suppression::Signature.create(custom_signature_ids: [id], regions: Array(arguments[:regions]), external_account_ids: Array(arguments[:external_account_ids]), reason: arguments[:reason])
end
teams() click to toggle source

The collection of teams that belong to the custom_signature.

@return [ActiveResource::PaginatedCollection<ESP::Team>]

# File lib/esp/resources/custom_signature.rb, line 16
def teams
  return attributes['teams'] if attributes['teams'].present?
  Team.where(custom_signatures_id_eq: id)
end