Class: Google::Apis::ApimV1alpha::ApiObservation

Inherits:
Object
  • Object
show all
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

Overview

Message describing ApiObservation object

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countFixnum

The number of observed API Operations. Corresponds to the JSON property apiOperationCount

Returns:

  • (Fixnum)


32
33
34
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 32

def api_operation_count
  @api_operation_count
end

#create_timeString

Create time stamp Corresponds to the JSON property createTime

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 37

def create_time
  @create_time
end

#hostnameString

The hostname of requests processed for this Observation. Corresponds to the JSON property hostname

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 42

def hostname
  @hostname
end

#last_event_detected_timeString

Last event detected time stamp Corresponds to the JSON property lastEventDetectedTime

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 47

def last_event_detected_time
  @last_event_detected_time
end

#nameString

Identifier. Name of resource Corresponds to the JSON property name

Returns:

  • (String)


52
53
54
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 52

def name
  @name
end

#server_ipsArray<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

Returns:

  • (Array<String>)


59
60
61
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 59

def server_ips
  @server_ips
end

#source_locationsArray<String>

Location of the Observation Source, for example "us-central1" or "europe-west1. " Corresponds to the JSON property sourceLocations

Returns:

  • (Array<String>)


65
66
67
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 65

def source_locations
  @source_locations
end

#styleString

Style of ApiObservation Corresponds to the JSON property style

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 70

def style
  @style
end

#tagsArray<String>

User-defined tags to organize and sort Corresponds to the JSON property tags

Returns:

  • (Array<String>)


75
76
77
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 75

def tags
  @tags
end

#update_timeString

Update time stamp Corresponds to the JSON property updateTime

Returns:

  • (String)


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