google_api_logging v0.0.1 GoogleApi.Logging.V2.Api.Entries View Source

API calls for all endpoints tagged Entries.

Link to this section Summary

Functions

Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs

Writes log entries to Stackdriver Logging

Link to this section Functions

Link to this function logging_entries_list(connection, opts \\ []) View Source
logging_entries_list(Tesla.Env.client, keyword) ::
  {:ok, GoogleApi.Logging.V2.Model.ListLogEntriesResponse.t} |
  {:error, Tesla.Env.t}

Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.

Parameters

  • connection (GoogleApi.Logging.V2.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :access_token (String): OAuth access token.
    • :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :pp (Boolean): Pretty-print response.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :bearer_token (String): OAuth bearer token.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :callback (String): JSONP
    • :__/xgafv (String): V1 error format.
    • :alt (String): Data format for response.
    • :body (ListLogEntriesRequest):

Returns

{:ok, %GoogleApi.Logging.V2.Model.ListLogEntriesResponse{}} on success {:error, info} on failure

Link to this function logging_entries_write(connection, opts \\ []) View Source
logging_entries_write(Tesla.Env.client, keyword) ::
  {:ok, GoogleApi.Logging.V2.Model.WriteLogEntriesResponse.t} |
  {:error, Tesla.Env.t}

Writes log entries to Stackdriver Logging.

Parameters

  • connection (GoogleApi.Logging.V2.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :access_token (String): OAuth access token.
    • :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :pp (Boolean): Pretty-print response.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :bearer_token (String): OAuth bearer token.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :callback (String): JSONP
    • :__/xgafv (String): V1 error format.
    • :alt (String): Data format for response.
    • :body (WriteLogEntriesRequest):

Returns

{:ok, %GoogleApi.Logging.V2.Model.WriteLogEntriesResponse{}} on success {:error, info} on failure