Class: Google::Apis::ApimV1alpha::ApiObservation
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::ApiObservation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apim_v1alpha/classes.rb,
lib/google/apis/apim_v1alpha/representations.rb,
lib/google/apis/apim_v1alpha/representations.rb more...
Overview
Message describing ApiObservation object
Instance Attribute Summary collapse
-
#api_operation_count ⇒ Fixnum
The number of observed API Operations.
-
#create_time ⇒ String
Create time stamp Corresponds to the JSON property
createTime
. -
#hostname ⇒ String
The hostname of requests processed for this Observation.
-
#last_event_detected_time ⇒ String
Last event detected time stamp Corresponds to the JSON property
lastEventDetectedTime
. -
#name ⇒ String
Identifier.
-
#server_ips ⇒ Array<String>
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
-
#source_locations ⇒ Array<String>
Location of the Observation Source, for example "us-central1" or "europe-west1.
-
#style ⇒ String
Style of ApiObservation Corresponds to the JSON property
style
. -
#tags ⇒ Array<String>
User-defined tags to organize and sort Corresponds to the JSON property
tags
. -
#update_time ⇒ String
Update time stamp Corresponds to the JSON property
updateTime
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiObservation
constructor
A new instance of ApiObservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiObservation
Returns a new instance of ApiObservation.
82 83 84 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 82 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_operation_count ⇒ Fixnum
The number of observed API Operations.
Corresponds to the JSON property apiOperationCount
32 33 34 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 32 def api_operation_count @api_operation_count end |
#create_time ⇒ String
Create time stamp
Corresponds to the JSON property createTime
37 38 39 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 37 def create_time @create_time end |
#hostname ⇒ String
The hostname of requests processed for this Observation.
Corresponds to the JSON property hostname
42 43 44 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 42 def hostname @hostname end |
#last_event_detected_time ⇒ String
Last event detected time stamp
Corresponds to the JSON property lastEventDetectedTime
47 48 49 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 47 def last_event_detected_time @last_event_detected_time end |
#name ⇒ String
Identifier. Name of resource
Corresponds to the JSON property name
52 53 54 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 52 def name @name end |
#server_ips ⇒ Array<String>
The IP address (IPv4 or IPv6) of the origin server that the request was sent
to. This field can include port information. Examples: "192.168.1.1"
, "10.0.
0.1:80"
, "FE80::0202:B3FF:FE1E:8329"
.
Corresponds to the JSON property serverIps
59 60 61 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 59 def server_ips @server_ips end |
#source_locations ⇒ Array<String>
Location of the Observation Source, for example "us-central1" or "europe-west1.
"
Corresponds to the JSON property sourceLocations
65 66 67 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 65 def source_locations @source_locations end |
#style ⇒ String
Style of ApiObservation
Corresponds to the JSON property style
70 71 72 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 70 def style @style end |
#tags ⇒ Array<String>
User-defined tags to organize and sort
Corresponds to the JSON property tags
75 76 77 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 75 def @tags end |
#update_time ⇒ String
Update time stamp
Corresponds to the JSON property updateTime
80 81 82 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 80 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 87 def update!(**args) @api_operation_count = args[:api_operation_count] if args.key?(:api_operation_count) @create_time = args[:create_time] if args.key?(:create_time) @hostname = args[:hostname] if args.key?(:hostname) @last_event_detected_time = args[:last_event_detected_time] if args.key?(:last_event_detected_time) @name = args[:name] if args.key?(:name) @server_ips = args[:server_ips] if args.key?(:server_ips) @source_locations = args[:source_locations] if args.key?(:source_locations) @style = args[:style] if args.key?(:style) @tags = args[:tags] if args.key?(:tags) @update_time = args[:update_time] if args.key?(:update_time) end |