Reference documentation and code samples for the Stackdriver Monitoring V3 Client class RowCountTest.
A test that checks if the number of rows in the result set violates some threshold.
Generated from protobuf message google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest
Namespace
Google \ Cloud \ Monitoring \ V3 \ AlertPolicy \ Condition \ SqlConditionMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ comparison |
int
Required. The comparison to apply between the number of rows returned by the query and the threshold. |
↳ threshold |
int|string
Required. The value against which to compare the row count. |
getComparison
Required. The comparison to apply between the number of rows returned by the query and the threshold.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ComparisonType. |
setComparison
Required. The comparison to apply between the number of rows returned by the query and the threshold.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ComparisonType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getThreshold
Required. The value against which to compare the row count.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setThreshold
Required. The value against which to compare the row count.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|