Class: ContextDev::Models::MonitorCreateParams::Target::Extract

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

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

#initializeObject



256
# File 'sig/context_dev/models/monitor_create_params.rbs', line 256

def initialize: (

Instance Attribute Details

#follow_subdomainsBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


290
# File 'lib/context_dev/models/monitor_create_params.rb', line 290

optional :follow_subdomains, ContextDev::Internal::Type::Boolean

#instructionsString

Natural-language instructions guiding which pages and facts to track and which changes to report.

Parameters:

  • value (String)

Returns:

  • (String)


274
# File 'lib/context_dev/models/monitor_create_params.rb', line 274

required :instructions, String

#max_depthInteger?

Optional maximum link depth from the starting URL (0 = only the starting page).

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


296
# File 'lib/context_dev/models/monitor_create_params.rb', line 296

optional :max_depth, Integer

#max_pagesInteger?

Maximum number of pages to track.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


302
# File 'lib/context_dev/models/monitor_create_params.rb', line 302

optional :max_pages, Integer

#schemaHash{Symbol=>Object}?

JSON Schema describing the data you care about. It is used three ways: it guides which pages are selected for tracking, it gives the change judge extra context on which changes matter (alongside instructions), and it defines the shape of the baseline data snapshot on GET /monitors/monitor_id (refreshed at most about once a day). It is not a response format for changes: change events and webhook payloads always contain diffs, summaries, and evidence excerpts — never data in this schema's shape. If omitted, a default summary + key-points schema is used.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


315
# File 'lib/context_dev/models/monitor_create_params.rb', line 315

optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]

#typeSymbol, :extract

Parameters:

  • value (:extract)

Returns:

  • (Symbol, :extract)


279
# File 'lib/context_dev/models/monitor_create_params.rb', line 279

required :type, const: :extract

#urlString

Root URL to extract structured data from.

Parameters:

  • value (String)

Returns:

  • (String)


285
# File 'lib/context_dev/models/monitor_create_params.rb', line 285

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


266
# File 'sig/context_dev/models/monitor_create_params.rbs', line 266

def to_hash: -> {