# Network Security V1beta1 API - Class Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector.

A DNS threat detector sends DNS query logs to a *provider* that then
analyzes the logs to identify threat events in the DNS queries.
By default, all VPC networks in your projects are included. You can exclude
specific networks by supplying `excluded_networks`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. Create time stamp.

### #excluded_networks

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

**Returns**

- (::Array\<::String\>) --- Optional. A list of network resource names which aren't monitored by this DnsThreatDetector.

  Example:
  `projects/PROJECT_ID/global/networks/NETWORK_NAME`.

### #excluded_networks=

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

**Parameter**

- **value** (::Array\<::String\>) --- Optional. A list of network resource names which aren't monitored by this DnsThreatDetector.


  Example:
  `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
**Returns**

- (::Array\<::String\>) --- Optional. A list of network resource names which aren't monitored by this DnsThreatDetector.

  Example:
  `projects/PROJECT_ID/global/networks/NETWORK_NAME`.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. Identifier. Name of the DnsThreatDetector resource.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Identifier. Name of the DnsThreatDetector resource.
**Returns**

- (::String) --- Immutable. Identifier. Name of the DnsThreatDetector resource.

### #provider

    def provider() -> ::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector::Provider

**Returns**

- ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector-Provider)) --- Required. The provider used for DNS threat analysis.

### #provider=

    def provider=(value) -> ::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector::Provider

**Parameter**

- **value** ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector-Provider)) --- Required. The provider used for DNS threat analysis.
**Returns**

- ([::Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetector::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Cloud-NetworkSecurity-V1beta1-DnsThreatDetector-Provider)) --- Required. The provider used for DNS threat analysis.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_security-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. Update time stamp.