<commit_before>FIXME<commit_msg>Python dashboard update example.<commit_after>from dogapi import dog_http_api as api

api.api_key = 'apikey_2'
api.application_key = '01a39483d351f4f827571cb7091a39e82f86edcc'
api.api_host = 'https://app.datad0g.com'

dash_id = 1588
title = "My Dashboard"
description = "A new and improved dashboard!"
graphs =  [{
    "definition": {
        "events": [],
        "requests": [
            {"q": "avg:system.mem.free{*} by {host}"}
        ],
    "viz": "timeseries"
    },
    "title": "Average Memory Free By Host"
}]

print api.update_dashboard(dash_id, title, description, graphs)
{'fraction_non_alphanumeric': 0.1393841166936791, 'fraction_numerical': 0.05348460291734198, 'mean_word_length': 3.828125, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7643351', 'n_tokens_mistral': 238, 'n_tokens_neox': 216, 'n_words': 47}