Module: ContextDev::Models::MonitorCreateParams::Target
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/context_dev/models/monitor_create_params.rb,
sig/context_dev/models/monitor_create_params.rbs
Overview
Discriminated union describing what the monitor watches.
Defined Under Namespace
Classes: Extract, Page, Sitemap
Instance Method Summary collapse
-
#initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) ⇒ Object
Watch a sitemap for URL additions and removals.
- #self?.variants ⇒ ::Array[ContextDev::Models::MonitorCreateParams::target]
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Instance Method Details
#initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) ⇒ Object
Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps.
|
|
# File 'lib/context_dev/models/monitor_create_params.rb', line 214
|
#self?.variants ⇒ ::Array[ContextDev::Models::MonitorCreateParams::target]
287 |
# File 'sig/context_dev/models/monitor_create_params.rbs', line 287
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::target]
|