Module Import alias Import alias Import alias ImportFrom alias alias alias Assign NameStore NameLoad Expr Call NameLoad NameLoad Str Str keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str keyword NameLoad Expr Call NameLoad NameLoad Str Str keyword Num keyword NameLoad keyword Num keyword Num Expr Call NameLoad NameLoad Str Str keyword Str Expr Call NameLoad NameLoad Str Str keyword NameLoad Expr Call NameLoad NameLoad Str Str keyword Num keyword NameLoad keyword Num keyword Num Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareLt Call AttributeLoad NameLoad attr Str Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list
N/A N/A re N/A urllib2 N/A cookielib scalyr_agent ScalyrMonitor define_config_option define_log_field N/A __monitor__ __name__ N/A N/A define_config_option __monitor__ module Always ``scalyr_agent.builtin_monitors.url_monitor`` required_option True convert_to str N/A N/A define_config_option __monitor__ id Included in each log message generated by this monitor, as a field named ``instance``. Allows you to distinguish between values recorded by different monitors. N/A N/A define_config_option __monitor__ url The URL to fetch. Must be an http or https URL. required_option True N/A N/A define_config_option __monitor__ timeout Optional (defaults to 10): the maximum amount of time, in seconds, to wait for the URL to load. default 10 convert_to float min_value 0 max_value 30 N/A N/A define_config_option __monitor__ extract Optional: a regular expression to apply to the command output. If defined, this expression must contain a matching group (i.e. a subexpression enclosed in parentheses). The monitor will record only the content of that matching group. This allows you to discard unnecessary portions of the command output and extract the information you need. default N/A N/A define_config_option __monitor__ log_all_lines Optional (defaults to false). If true, the monitor will record the entire command output; otherwise, it only records the first line. default False N/A N/A define_config_option __monitor__ max_characters Optional (defaults to 200). At most this many characters of output are recorded. You may specify a value up to 10000, but the Scalyr server currently truncates all fields to 3500 characters. default 200 convert_to int min_value 0 max_value 10000 N/A N/A define_log_field __monitor__ monitor Always ``url_monitor``. N/A N/A define_log_field __monitor__ instance The ``id`` value from the monitor configuration, e.g. ``instance-type``. N/A N/A define_log_field __monitor__ url The URL that was retrieved, e.g. ``http:/^^^/169.254.169.254/latest/meta-data/instance-type``. N/A N/A define_log_field __monitor__ metric Always ``response``. N/A N/A define_log_field __monitor__ status The HTTP response code, e.g. 200 or 404. N/A N/A define_log_field __monitor__ length The length of the HTTP response. N/A N/A define_log_field __monitor__ value The body of the HTTP response. N/A first_line_pattern N/A N/A re compile [^
]+ NoRedirection N/A N/A urllib2 HTTPErrorProcessor N/A __init__ N/A N/A self N/A N/A N/A N/A http_response N/A N/A self request response N/A N/A N/A response N/A N/A https_response http_response N/A UrlMonitor N/A ScalyrMonitor N/A N/A A Scalyr agent monitor which retrieves a specified URL, and records the response status and body.
     _initialize N/A N/A self N/A N/A N/A N/A self url N/A N/A N/A self _config get url N/A N/A self timeout N/A N/A N/A self _config get timeout N/A N/A self max_characters N/A N/A N/A self _config get max_characters N/A N/A self log_all_lines N/A N/A N/A self _config get log_all_lines N/A extract_expression N/A N/A N/A self _config get extract N/A extract_expression N/A N/A N/A self extractor N/A N/A re compile extract_expression N/A N/A N/A N/A extract_expression find ( 0 N/A N/A N/A Exception N/A extract expression [%s] must contain a matching group extract_expression N/A N/A N/A self extractor None N/A gather_sample N/A N/A self N/A N/A N/A N/A N/A opener N/A N/A urllib2 build_opener NoRedirection N/A N/A urllib2 HTTPCookieProcessor N/A N/A cookielib CookieJar N/A response N/A N/A opener open N/A self url None N/A self timeout N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A N/A N/A self _logger error N/A HTTPError retrieving %s: %s N/A N/A self url e N/A N/A N/A N/A urllib2 URLError N/A e N/A N/A N/A N/A N/A self _logger error N/A URLError retrieving %s: %s N/A N/A self url e N/A N/A response_body N/A N/A response read N/A N/A N/A response close N/A N/A N/A self extractor None N/A N/A match N/A N/A N/A self extractor search response_body N/A N/A match None N/A N/A response_body N/A N/A match group 1 N/A N/A self log_all_lines N/A N/A s response_body N/A N/A first_line N/A N/A first_line_pattern search response_body N/A s N/A N/A first_line None N/A N/A s N/A N/A N/A N/A first_line group strip N/A N/A N/A len s N/A self max_characters N/A N/A s N/A N/A s N/A N/A self max_characters ... N/A N/A N/A N/A self _logger emit_value response s extra_fields N/A url status length N/A self url N/A N/A response getcode N/A len response_body N/A N/A