Did I find the right examples for you? yes no

All Samples(5)  |  Call(1)  |  Derive(0)  |  Import(4)

src/g/r/graphite-alerter-HEAD/utils.py   graphite-alerter(Download)
 
import config
from models import Metric, Target, Plugin
 
 
        points = []
    value, timestamp = len(points) > 0 and points[-1] or (None, None)
    return Metric(name, value, timestamp)
 
 

src/d/j/django-dev-dashboard-HEAD/dashboard/admin.py   django-dev-dashboard(Download)
from __future__ import absolute_import
 
from django.contrib import admin
from .models import Category, Metric, Datum
 

src/d/j/django-dev-dashboard-HEAD/dashboard/management/commands/update_metrics.py   django-dev-dashboard(Download)
from __future__ import absolute_import, print_function
 
from django.core.management.base import NoArgsCommand
from ...models import Metric
 

src/d/j/django-dev-dashboard-HEAD/dashboard/views.py   django-dev-dashboard(Download)
from django.forms.models import model_to_dict
from django.views.decorators.cache import cache_page
from .models import Metric
 
TEN_MINUTES = 60 * 10