Stackdriver Monitoring V3 Client - Class ListAlertPoliciesResponse (1.11.1)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ alert_policies array<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
Type Description
Google\Protobuf\Internal\RepeatedField

setAlertPolicies

The returned alert policies.

Parameter
Name Description
var array<AlertPolicy>
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this