1.2.0 (latest) 1.1.0 1.0.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::DiscoveredApiObservation.

Respresents an API Observation observed in one of the sources.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api_operation_count

    def api_operation_count() -> ::Integer

**Returns**

- (::Integer) --- Optional. The number of observed API Operations.

### #api_operation_count=

    def api_operation_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. The number of observed API Operations.
**Returns**

- (::Integer) --- Optional. The number of observed API Operations.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Create time stamp of the observation in API Hub.

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- Optional. The hostname of requests processed for this Observation.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The hostname of requests processed for this Observation.
**Returns**

- (::String) --- Optional. The hostname of requests processed for this Observation.

### #known_operations_count

    def known_operations_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of known API Operations.

### #last_event_detected_time

    def last_event_detected_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Last event detected time stamp

### #last_event_detected_time=

    def last_event_detected_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Last event detected time stamp
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Last event detected time stamp

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the discovered API Observation.

  Format:
  `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the discovered API Observation.


  Format:
  `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
**Returns**

- (::String) --- Identifier. The name of the discovered API Observation.

  Format:
  `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`

### #origin

    def origin() -> ::String

**Returns**

- (::String) --- Optional. For an observation pushed from a gcp resource, this would be the gcp project id.

### #origin=

    def origin=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. For an observation pushed from a gcp resource, this would be the gcp project id.
**Returns**

- (::String) --- Optional. For an observation pushed from a gcp resource, this would be the gcp project id.

### #server_ips

    def server_ips() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. 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"`.

### #server_ips=

    def server_ips=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. 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"`.
**Returns**

- (::Array\<::String\>) --- Optional. 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"`.

### #source_locations

    def source_locations() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. The location of the observation source.

### #source_locations=

    def source_locations=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. The location of the observation source.
**Returns**

- (::Array\<::String\>) --- Optional. The location of the observation source.

### #source_metadata

    def source_metadata() -> ::Google::Cloud::ApiHub::V1::SourceMetadata

**Returns**

- ([::Google::Cloud::ApiHub::V1::SourceMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-SourceMetadata)) --- Output only. The metadata of the source from which the observation was collected.

### #source_types

    def source_types() -> ::Array<::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType>

**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-SourceType)\>) --- Optional. The type of the source from which the observation was collected.

### #source_types=

    def source_types=(value) -> ::Array<::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-SourceType)\>) --- Optional. The type of the source from which the observation was collected.
**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-SourceType)\>) --- Optional. The type of the source from which the observation was collected.

### #style

    def style() -> ::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style

**Returns**

- ([::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-Style)) --- Optional. Style of ApiObservation

### #style=

    def style=(value) -> ::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-Style)) --- Optional. Style of ApiObservation
**Returns**

- ([::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DiscoveredApiObservation-Style)) --- Optional. Style of ApiObservation

### #unknown_operations_count

    def unknown_operations_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of unknown API Operations.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Update time stamp of the observation in API Hub.