Resource
ModelLine
Resource name with pattern
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}Human-readable display name for this ModelLine
Human-readable string to describe the usage of this model line
The start of the time range when this ModelLine is active (available for labeling), inclusive.This field is immutable after creation.
The end of the time range when this ModelLine is active (available for labeling), exclusive.When specified in a request, this must be sufficiently in the future to allow for EDPs to sync with the Kingdom. If not specified, there is no end to the active time range.
Type of this ModelLine. DataProviders must label events using all available ModelLines independently of their type.Enum values:
TYPE_UNSPECIFIED: Default value, should not be usedDEV: Used to test new ModelReleases. Not available to all MeasurementConsumers when generating reportsPROD: Default ModelLine that must be used to generate reports for MeasurementConsumersHOLDBACK: (Deprecated) Used to generate reports in case of PROD ModelLine outages
(Deprecated) The holdback ModelLine that must be used to generate reports in case this ModelLine presents outages.May only be set if
type is PROD. Format: modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}When the ModelLine was created
When the ModelLine was last updated
Methods
CreateModelLine
Creates a newModelLine.
Resource name of the parent ModelSuite.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}The ModelLine to create. The
name field will be ignored, and the system will assign an ID.Required fields:active_start_time: Start of the active time rangetype: Type of the model line
ModelLine resource.
Example Request
GetModelLine
Get aModelLine.
Resource name of the ModelLine to retrieve.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}ModelLine resource.
Example Request
ListModelLines
ListsModelLine resources for the parent ModelSuite.
Resource name of the parent ModelSuite.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}The wildcard ID (-) may be used in place of the ModelSuite ID to list across every ModelSuite in the ancestor ModelProvider. If this is done, then the wildcard ID may also be used in place of the ModelProvider ID to list across all ancestors.Structured filter criteria. Each field represents a term in a conjunction.
Set of ModelLine.Type values which ModelLine.type must be in.
Time interval which must be fully contained by the interval specified by ModelLine.active_start_time and ModelLine.active_end_time.
The maximum number of ModelLines to return. The service may return fewer than this value.
- If unspecified, at most 50 ModelLines will be returned
- Maximum value is 1000; values above 1000 will be coerced to 1000
A page token received from a previous
ListModelLines call. Provide this to retrieve the subsequent page.When paginating, all other parameters must match the call that provided the page token.List of ModelLine resources
A token that can be sent as
page_token to retrieve the next page. If omitted, there are no subsequent pages.SetModelLineHoldbackModelLine
(Deprecated) Sets theholdback_model_line for a ModelLine.
Resource name of the ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The holdback model line resource name. If not specified, the field will be cleared.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}ModelLine resource.
SetModelLineActiveEndTime
Sets theactive_end_time for a ModelLine.
Resource name of the ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The active_end_time value to be set.
ModelLine resource.
Example Request
SetModelLineType
Sets thetype field of a ModelLine.
Resource name of the ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}Type value to be set.The deprecated
HOLDBACK type may not be used.ModelLine resource.
Example Request
EnumerateValidModelLines
Enumerates the ModelLines which are available across all specified DataProviders for the specified time interval. Results are ordered bytype from PROD to HOLDBACK to DEV, then by active_start_time descending.
Resource name of the parent ModelSuite.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}The wildcard ID (-) may be used in place of the ModelSuite ID to list across every ModelSuite in the ancestor ModelProvider. If this is done, then the wildcard ID may also be used in place of the ModelProvider ID to list across all ancestors.The time interval for which all data_providers must have data available for a ModelLine to be included in the response.
The resource names of the DataProviders which must have data available for a ModelLine to be included in the response.Format:
dataProviders/{data_provider}List of ModelLine.Type values to consider. Defaults to
PROD.The ModelLines that met all the criteria
