google_api_cloud_trace v0.0.1 GoogleApi.CloudTrace.V2.Api.Projects View Source

API calls for all endpoints tagged Projects.

Link to this section Summary

Functions

Sends new spans to Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of spans

Returns of a list of traces that match the specified filter conditions

Link to this section Functions

Link to this function cloudtrace_projects_traces_batch_write(connection, projects_id, opts \\ []) View Source
cloudtrace_projects_traces_batch_write(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.Empty.t} |
  {:error, Tesla.Env.t}

Sends new spans to Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of spans.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String): Part of `name`. Required. Name of the project where the spans belong. The format is `projects/PROJECT_ID`.
  • opts (KeywordList): [optional] Optional parameters

    • :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").
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :access_token (String): OAuth access token.
    • :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.
    • :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.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :body (BatchWriteSpansRequest):

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.Empty{}} on success {:error, info} on failure

Link to this function cloudtrace_projects_traces_list(connection, projects_id, opts \\ []) View Source
cloudtrace_projects_traces_list(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.ListTracesResponse.t} |
  {:error, Tesla.Env.t}

Returns of a list of traces that match the specified filter conditions.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String): Part of `parent`. Required. The project where the trace data is stored. The format is `projects/PROJECT_ID`.
  • opts (KeywordList): [optional] Optional parameters

    • :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").
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :access_token (String): OAuth access token.
    • :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.
    • :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.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :filter (String): Opional. Return only traces that match this trace filter. Example: "label:/http/url root:/_ah/background my_label:17"
    • :end_time (String): Optional. Do not return traces whose start time is later than this time.
    • :page_token (String): Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call.
    • :start_time (String): Optional. Do not return traces whose end time is earlier than this time.
    • :page_size (Integer): Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `next_page_token` in the response indicates that more results might be available, even if fewer than the maximum number of results is returned by this request.
    • :order_by (String): Optional. A single field used to sort the returned traces. Only the following field names can be used: `trace_id`: the trace's ID field `name`: the root span's resource name `duration`: the difference between the root span's start time and end time `start`: the start time of the root span Sorting is in ascending order unless `desc` is appended to the sort field name. Example: `"name desc"`).

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.ListTracesResponse{}} on success {:error, info} on failure

Link to this function cloudtrace_projects_traces_list_spans(connection, projects_id, traces_id, opts \\ []) View Source
cloudtrace_projects_traces_list_spans(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.ListSpansResponse.t} |
  {:error, Tesla.Env.t}

Returns a list of spans within a trace.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String): Part of `parent`. Required: The resource name of the trace containing the spans to list. The format is `projects/PROJECT_ID/traces/TRACE_ID`.
  • traces_id (String): Part of `parent`. See documentation of `projectsId`.
  • opts (KeywordList): [optional] Optional parameters

    • :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").
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :access_token (String): OAuth access token.
    • :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.
    • :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.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :page_token (String): Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call.

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.ListSpansResponse{}} on success {:error, info} on failure

Link to this function cloudtrace_projects_traces_spans_create(connection, projects_id, traces_id, spans_id, opts \\ []) View Source
cloudtrace_projects_traces_spans_create(Tesla.Env.client, String.t, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudTrace.V2.Model.Span.t} |
  {:error, Tesla.Env.t}

Creates a new Span.

Parameters

  • connection (GoogleApi.CloudTrace.V2.Connection): Connection to server
  • projects_id (String): Part of `name`. The resource name of the span in the following format: projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project. [SPAN_ID] is a unique identifier for a span within a trace, assigned when the span is created.
  • traces_id (String): Part of `name`. See documentation of `projectsId`.
  • spans_id (String): Part of `name`. See documentation of `projectsId`.
  • opts (KeywordList): [optional] Optional parameters

    • :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").
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :access_token (String): OAuth access token.
    • :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.
    • :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.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :body (Span):

Returns

{:ok, %GoogleApi.CloudTrace.V2.Model.Span{}} on success {:error, info} on failure