Method: ATSD::EntityGroupsService#update

Defined in:
lib/atsd/services/entity_groups_service.rb

#update(entity_group) ⇒ self

Note:

Properties and tags that are not specified are left unchanged.

Update specified properties and tags for the given entity group. This method updates specified properties and tags for an existing entity group.

Parameters:

Returns:

  • (self)

Raises:



61
62
63
64
65
# File 'lib/atsd/services/entity_groups_service.rb', line 61

def update(entity_group)
  entity_group = EntityGroup.new(entity_group) if entity_group.is_a? Hash
  @client.entity_groups_update(entity_group.name, entity_group.to_request_hash)
  self
end