Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Request message for CrawlRateManagementService.SetDedicatedCrawlRate method. The user can set the crawl rate for a crawl_rate_scope they own. They can set up an overall crawl rate, or set up a user-triggered crawl rate and a auto- refresh crawl rate separately. If an overall crawl rate is set, Vertex AI will automatically splits crawl_rate into user-triggered and auto-refresh.
Instance Attribute Summary collapse
-
#crawl_rate ⇒ Fixnum
Optional.
-
#crawl_rate_scope ⇒ String
Required.
-
#crawl_type ⇒ String
Optional.
-
#mode ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest.
17171 17172 17173 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crawl_rate ⇒ Fixnum
Optional. The crawl QPS set by the user. It is not guaranteed that Vertex
crawl bot will crawl at this QPS. If the crawl rate is too high, the real QPS
may be lower than the value set by the user to avoid overloading the user's
website.
Corresponds to the JSON property crawlRate
17151 17152 17153 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17151 def crawl_rate @crawl_rate end |
#crawl_rate_scope ⇒ String
Required. The scope of the crawl rate that the user wants to config. Currently,
only domain and host name are supported. A domain name example: abc.com
. A
host name example: www.abc.com
. Please do not include /
in the domain or
host name.
Corresponds to the JSON property crawlRateScope
17159 17160 17161 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17159 def crawl_rate_scope @crawl_rate_scope end |
#crawl_type ⇒ String
Optional. Whether it’s the crawl rate of user-triggered or auto-refresh.
Corresponds to the JSON property crawlType
17164 17165 17166 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17164 def crawl_type @crawl_type end |
#mode ⇒ String
Optional. Whether the rate is explicitly set by users, or set by vertex AI.
Corresponds to the JSON property mode
17169 17170 17171 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17169 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17176 17177 17178 17179 17180 17181 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 17176 def update!(**args) @crawl_rate = args[:crawl_rate] if args.key?(:crawl_rate) @crawl_rate_scope = args[:crawl_rate_scope] if args.key?(:crawl_rate_scope) @crawl_type = args[:crawl_type] if args.key?(:crawl_type) @mode = args[:mode] if args.key?(:mode) end |