Class: ContextDev::Models::MonitorGetLimitsResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/monitor_get_limits_response.rb,
sig/context_dev/models/monitor_get_limits_response.rbs

Overview

See Also:

  • ContextDev::Resources::Monitors#get_limits

Defined Under Namespace

Modules: Plan

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(monitors_limit:, monitors_used:, plan:) ⇒ Object

Some parameter documentations has been truncated, see ContextDev::Models::MonitorGetLimitsResponse for more details.

Parameters:

  • monitors_limit (Integer)

    Maximum number of monitors allowed for the account. Defaults to the plan allowan

  • monitors_used (Integer)

    Number of monitors the account currently has.

  • plan (Symbol, ContextDev::Models::MonitorGetLimitsResponse::Plan)

    The plan tier the limit was resolved from.



# File 'lib/context_dev/models/monitor_get_limits_response.rb', line 26

Instance Attribute Details

#monitors_limitInteger

Maximum number of monitors allowed for the account. Defaults to the plan allowance unless a custom limit is set for the organization.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


12
# File 'lib/context_dev/models/monitor_get_limits_response.rb', line 12

required :monitors_limit, Integer

#monitors_usedInteger

Number of monitors the account currently has.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


18
# File 'lib/context_dev/models/monitor_get_limits_response.rb', line 18

required :monitors_used, Integer

#planSymbol, ContextDev::Models::MonitorGetLimitsResponse::Plan

The plan tier the limit was resolved from.

Parameters:

  • value (ContextDev::Models::MonitorGetLimitsResponse::plan)

Returns:



24
# File 'lib/context_dev/models/monitor_get_limits_response.rb', line 24

required :plan, enum: -> { ContextDev::Models::MonitorGetLimitsResponse::Plan }

Instance Method Details

#to_hash{

Returns:

  • ({)


23
# File 'sig/context_dev/models/monitor_get_limits_response.rbs', line 23

def to_hash: -> {