Class: Google::Apis::WebmastersV3::UrlCrawlErrorCountsPerType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/webmasters_v3/classes.rb,
generated/google/apis/webmasters_v3/representations.rb,
generated/google/apis/webmasters_v3/representations.rb

Overview

Number of errors per day for a specific error type (defined by platform and category).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UrlCrawlErrorCountsPerType

Returns a new instance of UrlCrawlErrorCountsPerType.


319
320
321
# File 'generated/google/apis/webmasters_v3/classes.rb', line 319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryString

The crawl error type. Corresponds to the JSON property category

Returns:

  • (String)

306
307
308
# File 'generated/google/apis/webmasters_v3/classes.rb', line 306

def category
  @category
end

#entriesArray<Google::Apis::WebmastersV3::UrlCrawlErrorCount>

The error count entries time series. Corresponds to the JSON property entries


311
312
313
# File 'generated/google/apis/webmasters_v3/classes.rb', line 311

def entries
  @entries
end

#platformString

The general type of Googlebot that made the request (see list of Googlebot user-agents for the user-agents used). Corresponds to the JSON property platform

Returns:

  • (String)

317
318
319
# File 'generated/google/apis/webmasters_v3/classes.rb', line 317

def platform
  @platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


324
325
326
327
328
# File 'generated/google/apis/webmasters_v3/classes.rb', line 324

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @entries = args[:entries] if args.key?(:entries)
  @platform = args[:platform] if args.key?(:platform)
end