# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::BasicSli (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.0 1.7.1 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.18.0 0.17.0 0.16.0 0.15.2 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.1 Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::BasicSli.

An SLI measuring performance on a well-known service type. Performance will
be computed on the basis of pre-defined metrics. The type of the
`service_resource` determines the metrics to use and the
`service_resource.labels` and `metric_labels` are used to construct a
monitoring filter to filter that metric down to just the data relevant to
this service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #availability

    def availability() -> ::Google::Cloud::Monitoring::V3::BasicSli::AvailabilityCriteria

**Returns**

- ([::Google::Cloud::Monitoring::V3::BasicSli::AvailabilityCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-AvailabilityCriteria)) --- Good service is defined to be the count of requests made to this service that return successfully.


  Note: The following fields are mutually exclusive: `availability`, `latency`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #availability=

    def availability=(value) -> ::Google::Cloud::Monitoring::V3::BasicSli::AvailabilityCriteria

**Parameter**

- **value** ([::Google::Cloud::Monitoring::V3::BasicSli::AvailabilityCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-AvailabilityCriteria)) --- Good service is defined to be the count of requests made to this service that return successfully.


  Note: The following fields are mutually exclusive: `availability`, `latency`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Monitoring::V3::BasicSli::AvailabilityCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-AvailabilityCriteria)) --- Good service is defined to be the count of requests made to this service that return successfully.


  Note: The following fields are mutually exclusive: `availability`, `latency`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #latency

    def latency() -> ::Google::Cloud::Monitoring::V3::BasicSli::LatencyCriteria

**Returns**

- ([::Google::Cloud::Monitoring::V3::BasicSli::LatencyCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-LatencyCriteria)) --- Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.


  Note: The following fields are mutually exclusive: `latency`, `availability`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #latency=

    def latency=(value) -> ::Google::Cloud::Monitoring::V3::BasicSli::LatencyCriteria

**Parameter**

- **value** ([::Google::Cloud::Monitoring::V3::BasicSli::LatencyCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-LatencyCriteria)) --- Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.


  Note: The following fields are mutually exclusive: `latency`, `availability`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Monitoring::V3::BasicSli::LatencyCriteria](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-BasicSli-LatencyCriteria)) --- Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.


  Note: The following fields are mutually exclusive: `latency`, `availability`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #location

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

**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error.

### #location=

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

**Parameter**

- **value** (::Array\<::String\>) --- OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error.
**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error.

### #method

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

**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error.

### #method=

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

**Parameter**

- **value** (::Array\<::String\>) --- OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error.
**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error.

### #version

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

**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error.

### #version=

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

**Parameter**

- **value** (::Array\<::String\>) --- OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error.
**Returns**

- (::Array\<::String\>) --- OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error.