Class: DatadogAPIClient::V2::UsageQuotaCreateAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/usage_quota_create_attributes.rb

Overview

Attributes for creating or updating a usage quota by scope.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



33
34
35
# File 'lib/datadog_api_client/v2/models/usage_quota_create_attributes.rb', line 33

def additional_properties
  @additional_properties
end

#enforcedObject

Whether to actively block usage above the limit instead of only tracking or alerting on it.



25
26
27
# File 'lib/datadog_api_client/v2/models/usage_quota_create_attributes.rb', line 25

def enforced
  @enforced
end

#scopeObject

A namespace-specific key and value identifying what the quota applies to within an organization. The object must contain exactly one entry. Use "*" as the value for the default quota applied to entities without a specific quota, or omit the scope for an organization-wide quota. A specific value must identify an existing user handle in the caller's organization when include_descendants is false. When include_descendants is true, the handle must exist in the caller's organization or in at least one targeted descendant organization; the quota is then applied only to the organizations where that handle exists, and the request fails only if the handle exists in none of them.



28
29
30
# File 'lib/datadog_api_client/v2/models/usage_quota_create_attributes.rb', line 28

def scope
  @scope
end

#usage_limitObject

The quota limit to set in the usage units defined by the quota namespace. For an organization-wide quota (scope omitted), the limit must be greater than the usage already recorded in the current period.



31
32
33
# File 'lib/datadog_api_client/v2/models/usage_quota_create_attributes.rb', line 31

def usage_limit
  @usage_limit
end