# Stackdriver Monitoring V3 Client - Class IstioCanonicalService (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class IstioCanonicalService.

Canonical service scoped to an Istio mesh. Anthos clusters running ASM \>=
1.6.8 will have their services ingested as this type.

Generated from protobuf message `google.monitoring.v3.Service.IstioCanonicalService`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3 \\ Service

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ mesh_uid` | `string` Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the `mesh_uid` metric label in [Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio). |
| `↳ canonical_service_namespace` | `string` The namespace of the canonical service underlying this service. Corresponds to the `destination_canonical_service_namespace` metric label in [Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio). |
| `↳ canonical_service` | `string` The name of the canonical service underlying this service. Corresponds to the `destination_canonical_service_name` metric label in label in [Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio). |

### getMeshUid

Identifier for the Istio mesh in which this canonical service is defined.

Corresponds to the `mesh_uid` metric label in
[Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMeshUid

Identifier for the Istio mesh in which this canonical service is defined.

Corresponds to the `mesh_uid` metric label in
[Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCanonicalServiceNamespace

The namespace of the canonical service underlying this service.

Corresponds to the `destination_canonical_service_namespace` metric
label in [Istio
metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCanonicalServiceNamespace

The namespace of the canonical service underlying this service.

Corresponds to the `destination_canonical_service_namespace` metric
label in [Istio
metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCanonicalService

The name of the canonical service underlying this service.

Corresponds to the `destination_canonical_service_name` metric label in
label in [Istio
metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCanonicalService

The name of the canonical service underlying this service.

Corresponds to the `destination_canonical_service_name` metric label in
label in [Istio
metrics](https://cloud.google.com/monitoring/api/metrics_istio).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |