Reference documentation and code samples for the Stackdriver Monitoring V3 Client class CreateServiceLevelObjectiveRequest.
The CreateServiceLevelObjective request.
Generated from protobuf message google.monitoring.v3.CreateServiceLevelObjectiveRequest
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 Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
↳ service_level_objective_id
string
Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern ^[a-zA-Z0-9-_:.]+$
Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.
getParent
Required. Resource name of the parent Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
Returns
Type
Description
string
setParent
Required. Resource name of the parent Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceLevelObjectiveId
Optional. The ServiceLevelObjective id to use for this
ServiceLevelObjective. If omitted, an id will be generated instead. Must
match the pattern ^[a-zA-Z0-9-_:.]+$
Returns
Type
Description
string
setServiceLevelObjectiveId
Optional. The ServiceLevelObjective id to use for this
ServiceLevelObjective. If omitted, an id will be generated instead. Must
match the pattern ^[a-zA-Z0-9-_:.]+$
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceLevelObjective
Required. The ServiceLevelObjective to create.
The provided name will be respected if no ServiceLevelObjective exists
with this name.
[[["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 CreateServiceLevelObjectiveRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.CreateServiceLevelObjectiveRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.CreateServiceLevelObjectiveRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.CreateServiceLevelObjectiveRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.CreateServiceLevelObjectiveRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.CreateServiceLevelObjectiveRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.CreateServiceLevelObjectiveRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.CreateServiceLevelObjectiveRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.CreateServiceLevelObjectiveRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.CreateServiceLevelObjectiveRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.CreateServiceLevelObjectiveRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.CreateServiceLevelObjectiveRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.CreateServiceLevelObjectiveRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.CreateServiceLevelObjectiveRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.CreateServiceLevelObjectiveRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class CreateServiceLevelObjectiveRequest.\n\nThe `CreateServiceLevelObjective` request.\n\nGenerated from protobuf message `google.monitoring.v3.CreateServiceLevelObjectiveRequest`\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 `Service`. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/services/\\[SERVICE_ID\\]\n\n### setParent\n\nRequired. Resource name of the parent `Service`. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/services/\\[SERVICE_ID\\]\n\n### getServiceLevelObjectiveId\n\nOptional. The ServiceLevelObjective id to use for this\nServiceLevelObjective. If omitted, an id will be generated instead. Must\nmatch the pattern `^[a-zA-Z0-9-_:.]+$`\n\n### setServiceLevelObjectiveId\n\nOptional. The ServiceLevelObjective id to use for this\nServiceLevelObjective. If omitted, an id will be generated instead. Must\nmatch the pattern `^[a-zA-Z0-9-_:.]+$`\n\n### getServiceLevelObjective\n\nRequired. The `ServiceLevelObjective` to create.\n\nThe provided `name` will be respected if no `ServiceLevelObjective` exists\nwith this name.\n\n### hasServiceLevelObjective\n\n### clearServiceLevelObjective\n\n### setServiceLevelObjective\n\nRequired. The `ServiceLevelObjective` to create.\n\nThe provided `name` will be respected if no `ServiceLevelObjective` exists\nwith this name.\n\n### static::build"]]