# Miscellaneous metrics for Alert Production
# In the future, these might be placed in task-specific pipelines (for debugging)
# or grouped by their datasets (to optimize expensive Butler reads)

description: Miscelaneous AP Pipeline metrics
tasks:
    numNewDiaObjects:
        class: lsst.ap.association.metrics.NumberNewDiaObjectsMetricTask
        config:
            connections.labelName: diaPipe  # partial name of metadata dataset
    numUnassociatedDiaObjects:
        class: lsst.ap.association.metrics.NumberUnassociatedDiaObjectsMetricTask
        config:
            connections.labelName: diaPipe
    fracUpdatedDiaObjects:
        class: lsst.ap.association.metrics.FractionUpdatedDiaObjectsMetricTask
        config:
            connections.labelName: diaPipe
    totalUnassociatedDiaObjects:
        class: lsst.ap.association.metrics.TotalUnassociatedDiaObjectsMetricTask
    numSciSources:
        class: lsst.ip.diffim.metrics.NumberSciSourcesMetricTask
    fracDiaSourcesToSciSources:
        class: lsst.ip.diffim.metrics.FractionDiaSourcesToSciSourcesMetricTask
