def make_https(url):
    if getattr(settings, 'USE_SSL', False):
        return 'https://{}{}'.format(
            Site.objects.get_current().domain, url,
        )
    else:
        current_full = 'http://{}{}'.format(
            Site.objects.get_current().domain, url,
        )
        response = requests.post(
            'https://www.googleapis.com/urlshortener/v1/url',
            data=json.dumps({'longUrl': current_full}),
            headers={
                'Content-type': 'application/json',
                'Accept': 'text/plain',
            },
        )
        return response.json()['id'].replace('http://', 'https://')
Add the data points for Component/Network
dataset/ETHPy150Open nvbn/coviolations_web/tools/short.py/make_https--crossover with--dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/plugins/elasticsearch.py/ElasticSearch.add_network_datapoints