Resource
ModelOutage
Resource name with pattern
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelOutages/{model_outage}Time interval in which the parent ModelLine cannot be used to generate sketches.If a report spans across one or more ModelOutages, the whole report must be generated using the parent ModelLine’s
holdback_model_line.This field is immutable after creation.State of this ModelOutage.Enum values:
STATE_UNSPECIFIED: Default value, should never be usedACTIVE: The ModelOutage has been createdDELETED: The ModelOutage has been deleted (terminal state). ModelOutages with state equal to DELETED must not be considered to determine what ModelLine must be used to generate reports
When the ModelOutage was created
When the ModelOutage was deleted
Methods
CreateModelOutage
Creates a newModelOutage. A ModelOutage can be created only for a ModelLine with type equal to PROD. Furthermore, the ModelLine.holdback_model_line needs to be already specified.
Resource name of the parent ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The ModelOutage to create. The
name field will be ignored, and the system will assign an ID.Required fields:outage_interval: Time interval for the outage
ModelOutage resource.
Example Request
ListModelOutages
ListsModelOutage resources for a ModelLine.
Resource name of the parent ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The maximum number of ModelOutages to return. The service may return fewer than this value.
- If unspecified, at most 50 ModelOutages will be returned
- Maximum value is 1000; values above 1000 will be coerced to 1000
A page token received from a previous
ListModelOutages call. Provide this to retrieve the subsequent page.When paginating, all other parameters must match the call that provided the page token.Whether to include ModelOutages in the DELETED state or not.
Structured filter criteria.
Matches against the
outage_interval of the ModelOutage.List of ModelOutage resources
A token that can be sent as
page_token to retrieve the next page. If omitted, there are no subsequent pages.DeleteModelOutage
Deletes an existingModelOutage. ModelOutage will transition to a DELETED state. This action is irreversible. Results in a NOT_FOUND error if the specified ModelOutage does not exist or it has been already deleted.
This is a soft delete as defined by https://google.aip.dev/216.
The name of the ModelOutage to delete.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelOutages/{model_outage}ModelOutage resource in DELETED state.
Example Request
