Stackdriver Monitoring V3 Client - Class ListAlertPoliciesResponse (1.9.0)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ListAlertPoliciesResponse.

The protocol for the ListAlertPolicies response.

Generated from protobuf message google.monitoring.v3.ListAlertPoliciesResponse

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ alert_policies array<Google\Cloud\Monitoring\V3\AlertPolicy>

The returned alert policies.

↳ next_page_token string

If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

↳ total_size int

The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158

getAlertPolicies

The returned alert policies.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAlertPolicies

The returned alert policies.

Parameter
NameDescription
var array<Google\Cloud\Monitoring\V3\AlertPolicy>
Returns
TypeDescription
$this

getNextPageToken

If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

Returns
TypeDescription
string

setNextPageToken

If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTotalSize

The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158

Returns
TypeDescription
int

setTotalSize

The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158

Parameter
NameDescription
var int
Returns
TypeDescription
$this