Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

mention scalyr-functions #141

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/user/check-ref/scalyr_wrapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ For ``minutes`` and ``end`` you can also specify absolute times like "2017-10-11
This method is used to retrieve the most common values for a field.


.. py:method:: function(function, query, minutes=5, end=0)
pitr marked this conversation as resolved.
Show resolved Hide resolved

This method is used to apply the given `function` on the results of `query`. For available functions see graphFunctions:https://app.scalyr.com/help/query-language#graphFunctions. Internally this method uses timeseriesQuery:https://app.scalyr.com/help/api#timeseriesQuery


.. py:method:: logs(query, max_count=100, minutes=5, continuation_token=None, columns=None, end=0)

Runs a query against Scalyr and returns logs that match the query. At most ``max_count`` log lines will be returned.
Expand Down