client.get_segments

Gets details about all user-defined Segments for a given model.

Input ParameterTypeDefaultRequiredDescription
project_idstringYesThe unique identifier for the project
model_idstringYesThe unique identifier for the model
limitOptional[int]300NoMaximum number of items to return
offsetOptional[int]0NoNumber 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 TypeDescription
List[fdl.Segment]List of segment objects for the given model