def _create_scheduled_query(self, query, change, scope_unit, scope_count):
query_data = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:name>': '<STR_LIT>',<EOL>'<STR_LIT>': query,<EOL>'<STR_LIT>': '<STR_LIT:%>',<EOL>'<STR_LIT>': change,<EOL>'<STR_LIT>': scope_unit.title(),<EOL>'<STR_LIT>': scope_count,<EOL>}<EOL>}<EOL>query_url = '<STR_LIT>'<EOL>return self._api_post(<EOL>url=query_url.format(account_id=self.account_id),<EOL>data=json.dumps(query_data, sort_keys=True)<EOL>)<EOL>
Create the scheduled query