Reference documentation and code samples for the Stackdriver Monitoring V3 Client class CreateServiceRequest.
The CreateService request.
Generated from protobuf message google.monitoring.v3.CreateServiceRequest
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Resource name of the parent workspace. The format is: projects/[PROJECT_ID_OR_NUMBER] |
↳ service_id |
string
Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern |
↳ service |
Google\Cloud\Monitoring\V3\Service
Required. The |
getParent
Required. Resource name of the parent workspace. The format is: projects/[PROJECT_ID_OR_NUMBER]
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Resource name of the parent workspace. The format is: projects/[PROJECT_ID_OR_NUMBER]
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceId
Optional. The Service id to use for this Service. If omitted, an id will be
generated instead. Must match the pattern [a-z0-9\-]+
Generated from protobuf field string service_id = 3;
| Returns | |
|---|---|
| Type | Description |
string |
|
setServiceId
Optional. The Service id to use for this Service. If omitted, an id will be
generated instead. Must match the pattern [a-z0-9\-]+
Generated from protobuf field string service_id = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getService
Required. The Service to create.
Generated from protobuf field .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Monitoring\V3\Service|null |
|
hasService
clearService
setService
Required. The Service to create.
Generated from protobuf field .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Monitoring\V3\Service
|
| Returns | |
|---|---|
| Type | Description |
$this |
|