Stackdriver Monitoring V3 Client - Class ListSnoozesRequest (1.7.1)

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

The message definition for listing Snoozes associated with the given parent, satisfying the optional filter.

Generated from protobuf message google.monitoring.v3.ListSnoozesRequest

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]

↳ filter string

Optional. Optional filter to restrict results to the given criteria. The following fields are supported. * interval.start_time * interval.end_time For example: interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.end_time < "2022-03-12T00:00:00-08:00"

↳ page_size int

Optional. The maximum number of results to return for a single query. The server may further constrain the maximum number of results returned in a single page. The value should be in the range [1, 1000]. If the value given is outside this range, the server will decide the number of results to be returned.

↳ page_token string

Optional. The next_page_token from a previous call to ListSnoozesRequest to get the next page of results.

getParent

Required. The project whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]

Returns
TypeDescription
string

setParent

Required. The project whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

Optional. Optional filter to restrict results to the given criteria. The following fields are supported.

  • interval.start_time
    • interval.end_time For example: php interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.end_time < "2022-03-12T00:00:00-08:00"
Returns
TypeDescription
string

setFilter

Optional. Optional filter to restrict results to the given criteria. The following fields are supported.

  • interval.start_time
    • interval.end_time For example: php interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.end_time < "2022-03-12T00:00:00-08:00"
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Optional. The maximum number of results to return for a single query. The server may further constrain the maximum number of results returned in a single page. The value should be in the range [1, 1000]. If the value given is outside this range, the server will decide the number of results to be returned.

Returns
TypeDescription
int

setPageSize

Optional. The maximum number of results to return for a single query. The server may further constrain the maximum number of results returned in a single page. The value should be in the range [1, 1000]. If the value given is outside this range, the server will decide the number of results to be returned.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Optional. The next_page_token from a previous call to ListSnoozesRequest to get the next page of results.

Returns
TypeDescription
string

setPageToken

Optional. The next_page_token from a previous call to ListSnoozesRequest to get the next page of results.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The project whose Snoozes should be listed. The format is:

projects/[PROJECT_ID_OR_NUMBER] Please see Google\Cloud\Monitoring\V3\SnoozeServiceClient::workspaceName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\ListSnoozesRequest