get_metrics

imerit_ango.sdk.SDK.

get_metrics(project_id, metric)

Retrieves specified metrics for a project.

Parameters

  • project_id: string

  • metric: imerit_ango.sdk.Metrics

    • The metric you wish to obtain, from:

      • imerit_ango.sdk.Metrics

        • LabelStageGroups

        • TimePerTask

        • AnnotationStatus

        • AnswerDistribution

        • ConsensusRanges

        • AssetSize

Returns:

  • output: dict

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
from imerit_ango.sdk import Metrics

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

output = ango_sdk.get_metrics(project_id=project_id, metric=Metrics.TimePerTask)

Last updated