Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.
getServiceType
The type of service that this basic service defines, e.g.
APP_ENGINE service type.
Documentation and valid values
here.
Returns
Type
Description
string
setServiceType
The type of service that this basic service defines, e.g.
APP_ENGINE service type.
Documentation and valid values
here.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceLabels
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this Service.
Documentation and valid values for given service types
here.
[[["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 BasicService (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.Service.BasicService)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.Service.BasicService)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.Service.BasicService)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.Service.BasicService)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.Service.BasicService)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.Service.BasicService)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.Service.BasicService)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.Service.BasicService)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.Service.BasicService)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.Service.BasicService)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.Service.BasicService)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.Service.BasicService)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.Service.BasicService)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.Service.BasicService) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class BasicService.\n\nA well-known service type, defined by its service type and service labels.\n\nDocumentation and examples\n[here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).\n\nGenerated from protobuf message `google.monitoring.v3.Service.BasicService`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3 \\\\ Service\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getServiceType\n\nThe type of service that this basic service defines, e.g.\n\nAPP_ENGINE service type.\nDocumentation and valid values\n[here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).\n\n### setServiceType\n\nThe type of service that this basic service defines, e.g.\n\nAPP_ENGINE service type.\nDocumentation and valid values\n[here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).\n\n### getServiceLabels\n\nLabels that specify the resource that emits the monitoring data which\nis used for SLO reporting of this `Service`.\n\nDocumentation and valid values for given service types\n[here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).\n\n### setServiceLabels\n\nLabels that specify the resource that emits the monitoring data which\nis used for SLO reporting of this `Service`.\n\nDocumentation and valid values for given service types\n[here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli)."]]