Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ListServiceLevelObjectivesRequest.
The ListServiceLevelObjectives request.
Generated from protobuf message google.monitoring.v3.ListServiceLevelObjectivesRequest
Namespace
Google \ Cloud \ Monitoring \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
↳ filter
string
A filter specifying what ServiceLevelObjectives to return.
↳ page_size
int
A non-negative number that is the maximum number of results to return. When 0, use default page size.
↳ page_token
string
If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
↳ view
int
View of the ServiceLevelObjectives to return. If DEFAULT, return each ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed.
getParent
Required. Resource name of the parent containing the listed SLOs, either a
project or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
Returns
Type
Description
string
setParent
Required. Resource name of the parent containing the listed SLOs, either a
project or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
A filter specifying what ServiceLevelObjectives to return.
Returns
Type
Description
string
setFilter
A filter specifying what ServiceLevelObjectives to return.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
A non-negative number that is the maximum number of results to return.
When 0, use default page size.
Returns
Type
Description
int
setPageSize
A non-negative number that is the maximum number of results to return.
When 0, use default page size.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
If this field is not empty then it must contain the nextPageToken value
returned by a previous call to this method. Using this field causes the
method to return additional results from the previous method call.
Returns
Type
Description
string
setPageToken
If this field is not empty then it must contain the nextPageToken value
returned by a previous call to this method. Using this field causes the
method to return additional results from the previous method call.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getView
View of the ServiceLevelObjectives to return. If DEFAULT, return each
ServiceLevelObjective as originally defined. If EXPLICIT and the
ServiceLevelObjective is defined in terms of a BasicSli, replace the
BasicSli with a RequestBasedSli spelling out how the SLI is computed.
Returns
Type
Description
int
setView
View of the ServiceLevelObjectives to return. If DEFAULT, return each
ServiceLevelObjective as originally defined. If EXPLICIT and the
ServiceLevelObjective is defined in terms of a BasicSli, replace the
BasicSli with a RequestBasedSli spelling out how the SLI is computed.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. Resource name of the parent containing the listed SLOs, either a
project or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
Please see ServiceMonitoringServiceClient::serviceName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Monitoring V3 Client - Class ListServiceLevelObjectivesRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.ListServiceLevelObjectivesRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.ListServiceLevelObjectivesRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.ListServiceLevelObjectivesRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.ListServiceLevelObjectivesRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.ListServiceLevelObjectivesRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.ListServiceLevelObjectivesRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.ListServiceLevelObjectivesRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.ListServiceLevelObjectivesRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.ListServiceLevelObjectivesRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.ListServiceLevelObjectivesRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.ListServiceLevelObjectivesRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.ListServiceLevelObjectivesRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.ListServiceLevelObjectivesRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.ListServiceLevelObjectivesRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class ListServiceLevelObjectivesRequest.\n\nThe `ListServiceLevelObjectives` request.\n\nGenerated from protobuf message `google.monitoring.v3.ListServiceLevelObjectivesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Resource name of the parent containing the listed SLOs, either a\nproject or a Monitoring Metrics Scope. The formats are:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/services/\\[SERVICE_ID\\]\nworkspaces/\\[HOST_PROJECT_ID_OR_NUMBER\\]/services/-\n\n### setParent\n\nRequired. Resource name of the parent containing the listed SLOs, either a\nproject or a Monitoring Metrics Scope. The formats are:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/services/\\[SERVICE_ID\\]\nworkspaces/\\[HOST_PROJECT_ID_OR_NUMBER\\]/services/-\n\n### getFilter\n\nA filter specifying what `ServiceLevelObjective`s to return.\n\n### setFilter\n\nA filter specifying what `ServiceLevelObjective`s to return.\n\n### getPageSize\n\nA non-negative number that is the maximum number of results to return.\n\nWhen 0, use default page size.\n\n### setPageSize\n\nA non-negative number that is the maximum number of results to return.\n\nWhen 0, use default page size.\n\n### getPageToken\n\nIf this field is not empty then it must contain the `nextPageToken` value\nreturned by a previous call to this method. Using this field causes the\nmethod to return additional results from the previous method call.\n\n### setPageToken\n\nIf this field is not empty then it must contain the `nextPageToken` value\nreturned by a previous call to this method. Using this field causes the\nmethod to return additional results from the previous method call.\n\n### getView\n\nView of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each\n`ServiceLevelObjective` as originally defined. If `EXPLICIT` and the\n`ServiceLevelObjective` is defined in terms of a `BasicSli`, replace the\n`BasicSli` with a `RequestBasedSli` spelling out how the SLI is computed.\n\n### setView\n\nView of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each\n`ServiceLevelObjective` as originally defined. If `EXPLICIT` and the\n`ServiceLevelObjective` is defined in terms of a `BasicSli`, replace the\n`BasicSli` with a `RequestBasedSli` spelling out how the SLI is computed.\n\n### static::build"]]