get_metrics
imerit_ango.sdk.SDK.
get_metrics(project_id, metric)
Retrieves specified metrics for a project.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projects
function.
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
A dictionary containing the result of the operation.
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