Class: Google::Apis::WebmastersV3::UrlCrawlErrorCount

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

An entry in a URL crawl errors time series.

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) ⇒ UrlCrawlErrorCount

Returns a new instance of UrlCrawlErrorCount



287
288
289
# File 'generated/google/apis/webmasters_v3/classes.rb', line 287

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

Instance Attribute Details

#countFixnum

The error count at the given timestamp. Corresponds to the JSON property count

Returns:

  • (Fixnum)


280
281
282
# File 'generated/google/apis/webmasters_v3/classes.rb', line 280

def count
  @count
end

#timestampDateTime

The date and time when the crawl attempt took place, in RFC 3339 format. Corresponds to the JSON property timestamp

Returns:

  • (DateTime)


285
286
287
# File 'generated/google/apis/webmasters_v3/classes.rb', line 285

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
# File 'generated/google/apis/webmasters_v3/classes.rb', line 292

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end