Gets details about all user-defined Segments for a given model.
Input Parameter | Type | Default | Required | Description |
---|---|---|---|---|
project_id | string | Yes | The unique identifier for the project | |
model_id | string | Yes | The unique identifier for the model | |
limit | Optional[int] | 300 | No | Maximum number of items to return |
offset | Optional[int] | 0 | No | Number of items to skip before returning |
PROJECT_ID = 'my_project'
MODEL_ID = 'my_model'
custom_metrics = client.get_segments(
project_id=PROJECT_ID,
model_id=MODEL_ID
)
Return Type | Description |
---|---|
List[fdl.Segment] | List of segment objects for the given model |