v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1333131212.7 KB
services

Create a ServiceLevelObjective for the given Service.

post/v3/{+parent}/serviceLevelObjectives

Path parameters

parentstring required

Required. Resource name of the parent Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

Query parameters

serviceLevelObjectiveIdstring

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-_:.]+$

Request body

namestring

Identifier. Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

displayNamestring

Name used for UI elements listing this SLO.

userLabelsobject

Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.

calendarPeriod'CALENDAR_PERIOD_UNSPECIFIED' | 'DAY' | 'WEEK' | 'FORTNIGHT' | 'MONTH' | 'QUARTER' | 'HALF' | 'YEAR'

A calendar period, semantically "since the start of the current ". At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.

rollingPeriodstring google-duration

A rolling time period, semantically "in the past ". Must be an integer multiple of 1 day no larger than 30 days.

goalnumber double

The fraction of service that must be good in order for this objective to be met. 0 < goal <= 0.9999.

Response

Successful response