1.2.0 (latest) 1.1.0 1.0.0

    public sealed class DiscoveredApiObservation : IMessage<DiscoveredApiObservation>, IEquatable<DiscoveredApiObservation>, IDeepCloneable<DiscoveredApiObservation>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class DiscoveredApiObservation.

Respresents an API Observation observed in one of the sources.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DiscoveredApiObservation

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### DiscoveredApiObservation()

    public DiscoveredApiObservation()

### DiscoveredApiObservation(DiscoveredApiObservation)

    public DiscoveredApiObservation(DiscoveredApiObservation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DiscoveredApiObservation` |

## Properties

### ApiOperationCount

    public long ApiOperationCount { get; set; }

Optional. The number of observed API Operations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Create time stamp of the observation in API Hub.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DiscoveredApiObservationName

    public DiscoveredApiObservationName DiscoveredApiObservationName { get; set; }

[DiscoveredApiObservationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt#Google_Cloud_ApiHub_V1_DiscoveredApiObservation_Name) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DiscoveredApiObservationName` |   |

### Hostname

    public string Hostname { get; set; }

Optional. The hostname of requests processed for this Observation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### KnownOperationsCount

    public long KnownOperationsCount { get; set; }

Output only. The number of known API Operations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### LastEventDetectedTime

    public Timestamp LastEventDetectedTime { get; set; }

Optional. Last event detected time stamp

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Name

    public string Name { get; set; }

Identifier. The name of the discovered API Observation.

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Origin

    public string Origin { get; set; }

Optional. For an observation pushed from a gcp resource, this would be the
gcp project id.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServerIps

    public RepeatedField<string> ServerIps { get; }

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"`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### SourceLocations

    public RepeatedField<string> SourceLocations { get; }

Optional. The location of the observation source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### SourceLocationsAsLocationNames

    public ResourceNameList<LocationName> SourceLocationsAsLocationNames { get; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [SourceLocations](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt#Google_Cloud_ApiHub_V1_DiscoveredApiObservation_SourceLocations) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceNameListLocationName` |   |

### SourceMetadata

    public SourceMetadata SourceMetadata { get; set; }

Output only. The metadata of the source from which the observation was
collected.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SourceMetadata` |   |

### SourceTypes

    public RepeatedField<DiscoveredApiObservation.Types.SourceType> SourceTypes { get; }

Optional. The type of the source from which the observation was collected.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldDiscoveredApiObservationTypesSourceType` |   |

### Style

    public DiscoveredApiObservation.Types.Style Style { get; set; }

Optional. Style of ApiObservation

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DiscoveredApiObservationTypesStyle` |   |

### UnknownOperationsCount

    public long UnknownOperationsCount { get; set; }

Output only. The number of unknown API Operations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Update time stamp of the observation in API Hub.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |