daytona_api_client 0.140.0 → 0.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +9 -0
- data/lib/daytona_api_client/api/organizations_api.rb +127 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +333 -0
- data/lib/daytona_api_client/models/log_entry.rb +405 -0
- data/lib/daytona_api_client/models/metric_data_point.rb +263 -0
- data/lib/daytona_api_client/models/metric_series.rb +265 -0
- data/lib/daytona_api_client/models/metrics_response.rb +238 -0
- data/lib/daytona_api_client/models/organization.rb +71 -5
- data/lib/daytona_api_client/models/otel_config.rb +251 -0
- data/lib/daytona_api_client/models/paginated_logs.rb +319 -0
- data/lib/daytona_api_client/models/paginated_traces.rb +319 -0
- data/lib/daytona_api_client/models/trace_span.rb +403 -0
- data/lib/daytona_api_client/models/trace_summary.rb +381 -0
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -5
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +9 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9e569124ad62d34ddf0b9d1a5cf28925d913a7e35e3d1cdd8fc8c353b907465
|
|
4
|
+
data.tar.gz: 1fed93930a6ee2e00d4d0b2b867067c0cb37cfa868b2d53ffb46c0d34035e6ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d16dc0c7dd869fbf2999b860a774815fe3642fb9c677034b9646f86b712d5ae9006a3b56a35f4ca96db6cc4d8654d0d7bb949e5e31bcc43a8621079f572a9064
|
|
7
|
+
data.tar.gz: 33af53823e7603391b35a30bfe20d1d46a003e43a770664d0a98c74d2be7ec79fb05dfc36830e6b5e58783c0ece93dbef617df3b358f1ae038f7b080113dd4f6
|
data/.openapi-generator/FILES
CHANGED
|
@@ -87,12 +87,16 @@ lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
|
87
87
|
lib/daytona_api_client/models/keyboard_press_request.rb
|
|
88
88
|
lib/daytona_api_client/models/keyboard_type_request.rb
|
|
89
89
|
lib/daytona_api_client/models/list_branch_response.rb
|
|
90
|
+
lib/daytona_api_client/models/log_entry.rb
|
|
90
91
|
lib/daytona_api_client/models/lsp_completion_params.rb
|
|
91
92
|
lib/daytona_api_client/models/lsp_document_request.rb
|
|
92
93
|
lib/daytona_api_client/models/lsp_location.rb
|
|
93
94
|
lib/daytona_api_client/models/lsp_server_request.rb
|
|
94
95
|
lib/daytona_api_client/models/lsp_symbol.rb
|
|
95
96
|
lib/daytona_api_client/models/match.rb
|
|
97
|
+
lib/daytona_api_client/models/metric_data_point.rb
|
|
98
|
+
lib/daytona_api_client/models/metric_series.rb
|
|
99
|
+
lib/daytona_api_client/models/metrics_response.rb
|
|
96
100
|
lib/daytona_api_client/models/mouse_click_request.rb
|
|
97
101
|
lib/daytona_api_client/models/mouse_click_response.rb
|
|
98
102
|
lib/daytona_api_client/models/mouse_drag_request.rb
|
|
@@ -110,10 +114,13 @@ lib/daytona_api_client/models/organization_sandbox_default_limited_network_egres
|
|
|
110
114
|
lib/daytona_api_client/models/organization_suspension.rb
|
|
111
115
|
lib/daytona_api_client/models/organization_usage_overview.rb
|
|
112
116
|
lib/daytona_api_client/models/organization_user.rb
|
|
117
|
+
lib/daytona_api_client/models/otel_config.rb
|
|
113
118
|
lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
114
119
|
lib/daytona_api_client/models/paginated_jobs.rb
|
|
120
|
+
lib/daytona_api_client/models/paginated_logs.rb
|
|
115
121
|
lib/daytona_api_client/models/paginated_sandboxes.rb
|
|
116
122
|
lib/daytona_api_client/models/paginated_snapshots.rb
|
|
123
|
+
lib/daytona_api_client/models/paginated_traces.rb
|
|
117
124
|
lib/daytona_api_client/models/poll_jobs_response.rb
|
|
118
125
|
lib/daytona_api_client/models/port_preview_url.rb
|
|
119
126
|
lib/daytona_api_client/models/position.rb
|
|
@@ -169,6 +176,8 @@ lib/daytona_api_client/models/ssh_access_dto.rb
|
|
|
169
176
|
lib/daytona_api_client/models/ssh_access_validation_dto.rb
|
|
170
177
|
lib/daytona_api_client/models/storage_access_dto.rb
|
|
171
178
|
lib/daytona_api_client/models/toolbox_proxy_url.rb
|
|
179
|
+
lib/daytona_api_client/models/trace_span.rb
|
|
180
|
+
lib/daytona_api_client/models/trace_summary.rb
|
|
172
181
|
lib/daytona_api_client/models/update_docker_registry.rb
|
|
173
182
|
lib/daytona_api_client/models/update_job_status.rb
|
|
174
183
|
lib/daytona_api_client/models/update_organization_default_region.rb
|
|
@@ -911,6 +911,67 @@ module DaytonaApiClient
|
|
|
911
911
|
return data, status_code, headers
|
|
912
912
|
end
|
|
913
913
|
|
|
914
|
+
# Get organization OTEL config by sandbox auth token
|
|
915
|
+
# @param auth_token [String] Sandbox Auth Token
|
|
916
|
+
# @param [Hash] opts the optional parameters
|
|
917
|
+
# @return [OtelConfig]
|
|
918
|
+
def get_organization_otel_config_by_sandbox_auth_token(auth_token, opts = {})
|
|
919
|
+
data, _status_code, _headers = get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts)
|
|
920
|
+
data
|
|
921
|
+
end
|
|
922
|
+
|
|
923
|
+
# Get organization OTEL config by sandbox auth token
|
|
924
|
+
# @param auth_token [String] Sandbox Auth Token
|
|
925
|
+
# @param [Hash] opts the optional parameters
|
|
926
|
+
# @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
|
|
927
|
+
def get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts = {})
|
|
928
|
+
if @api_client.config.debugging
|
|
929
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token ...'
|
|
930
|
+
end
|
|
931
|
+
# verify the required parameter 'auth_token' is set
|
|
932
|
+
if @api_client.config.client_side_validation && auth_token.nil?
|
|
933
|
+
fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token"
|
|
934
|
+
end
|
|
935
|
+
# resource path
|
|
936
|
+
local_var_path = '/organizations/otel-config/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
|
|
937
|
+
|
|
938
|
+
# query parameters
|
|
939
|
+
query_params = opts[:query_params] || {}
|
|
940
|
+
|
|
941
|
+
# header parameters
|
|
942
|
+
header_params = opts[:header_params] || {}
|
|
943
|
+
# HTTP header 'Accept' (if needed)
|
|
944
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
945
|
+
|
|
946
|
+
# form parameters
|
|
947
|
+
form_params = opts[:form_params] || {}
|
|
948
|
+
|
|
949
|
+
# http body (model)
|
|
950
|
+
post_body = opts[:debug_body]
|
|
951
|
+
|
|
952
|
+
# return_type
|
|
953
|
+
return_type = opts[:debug_return_type] || 'OtelConfig'
|
|
954
|
+
|
|
955
|
+
# auth_names
|
|
956
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
957
|
+
|
|
958
|
+
new_options = opts.merge(
|
|
959
|
+
:operation => :"OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token",
|
|
960
|
+
:header_params => header_params,
|
|
961
|
+
:query_params => query_params,
|
|
962
|
+
:form_params => form_params,
|
|
963
|
+
:body => post_body,
|
|
964
|
+
:auth_names => auth_names,
|
|
965
|
+
:return_type => return_type
|
|
966
|
+
)
|
|
967
|
+
|
|
968
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
969
|
+
if @api_client.config.debugging
|
|
970
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config_by_sandbox_auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
971
|
+
end
|
|
972
|
+
return data, status_code, headers
|
|
973
|
+
end
|
|
974
|
+
|
|
914
975
|
# Get organization current usage overview
|
|
915
976
|
# @param organization_id [String] Organization ID
|
|
916
977
|
# @param [Hash] opts the optional parameters
|
|
@@ -1972,6 +2033,72 @@ module DaytonaApiClient
|
|
|
1972
2033
|
return data, status_code, headers
|
|
1973
2034
|
end
|
|
1974
2035
|
|
|
2036
|
+
# Update experimental configuration
|
|
2037
|
+
# @param organization_id [String] Organization ID
|
|
2038
|
+
# @param [Hash] opts the optional parameters
|
|
2039
|
+
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2040
|
+
# @return [nil]
|
|
2041
|
+
def update_experimental_config(organization_id, opts = {})
|
|
2042
|
+
update_experimental_config_with_http_info(organization_id, opts)
|
|
2043
|
+
nil
|
|
2044
|
+
end
|
|
2045
|
+
|
|
2046
|
+
# Update experimental configuration
|
|
2047
|
+
# @param organization_id [String] Organization ID
|
|
2048
|
+
# @param [Hash] opts the optional parameters
|
|
2049
|
+
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2050
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2051
|
+
def update_experimental_config_with_http_info(organization_id, opts = {})
|
|
2052
|
+
if @api_client.config.debugging
|
|
2053
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
|
|
2054
|
+
end
|
|
2055
|
+
# verify the required parameter 'organization_id' is set
|
|
2056
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2057
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
|
|
2058
|
+
end
|
|
2059
|
+
# resource path
|
|
2060
|
+
local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2061
|
+
|
|
2062
|
+
# query parameters
|
|
2063
|
+
query_params = opts[:query_params] || {}
|
|
2064
|
+
|
|
2065
|
+
# header parameters
|
|
2066
|
+
header_params = opts[:header_params] || {}
|
|
2067
|
+
# HTTP header 'Content-Type'
|
|
2068
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2069
|
+
if !content_type.nil?
|
|
2070
|
+
header_params['Content-Type'] = content_type
|
|
2071
|
+
end
|
|
2072
|
+
|
|
2073
|
+
# form parameters
|
|
2074
|
+
form_params = opts[:form_params] || {}
|
|
2075
|
+
|
|
2076
|
+
# http body (model)
|
|
2077
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
2078
|
+
|
|
2079
|
+
# return_type
|
|
2080
|
+
return_type = opts[:debug_return_type]
|
|
2081
|
+
|
|
2082
|
+
# auth_names
|
|
2083
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2084
|
+
|
|
2085
|
+
new_options = opts.merge(
|
|
2086
|
+
:operation => :"OrganizationsApi.update_experimental_config",
|
|
2087
|
+
:header_params => header_params,
|
|
2088
|
+
:query_params => query_params,
|
|
2089
|
+
:form_params => form_params,
|
|
2090
|
+
:body => post_body,
|
|
2091
|
+
:auth_names => auth_names,
|
|
2092
|
+
:return_type => return_type
|
|
2093
|
+
)
|
|
2094
|
+
|
|
2095
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2096
|
+
if @api_client.config.debugging
|
|
2097
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2098
|
+
end
|
|
2099
|
+
return data, status_code, headers
|
|
2100
|
+
end
|
|
2101
|
+
|
|
1975
2102
|
# Update organization invitation
|
|
1976
2103
|
# @param organization_id [String] Organization ID
|
|
1977
2104
|
# @param invitation_id [String] Invitation ID
|
|
@@ -689,6 +689,339 @@ module DaytonaApiClient
|
|
|
689
689
|
return data, status_code, headers
|
|
690
690
|
end
|
|
691
691
|
|
|
692
|
+
# Get sandbox logs
|
|
693
|
+
# Retrieve OTEL logs for a sandbox within a time range
|
|
694
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
695
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
696
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
697
|
+
# @param [Hash] opts the optional parameters
|
|
698
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
699
|
+
# @option opts [Float] :page Page number (1-indexed) (default to 1)
|
|
700
|
+
# @option opts [Float] :limit Number of items per page (default to 100)
|
|
701
|
+
# @option opts [Array<String>] :severities Filter by severity levels (DEBUG, INFO, WARN, ERROR)
|
|
702
|
+
# @option opts [String] :search Search in log body
|
|
703
|
+
# @return [PaginatedLogs]
|
|
704
|
+
def get_sandbox_logs(sandbox_id, from, to, opts = {})
|
|
705
|
+
data, _status_code, _headers = get_sandbox_logs_with_http_info(sandbox_id, from, to, opts)
|
|
706
|
+
data
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# Get sandbox logs
|
|
710
|
+
# Retrieve OTEL logs for a sandbox within a time range
|
|
711
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
712
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
713
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
714
|
+
# @param [Hash] opts the optional parameters
|
|
715
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
716
|
+
# @option opts [Float] :page Page number (1-indexed) (default to 1)
|
|
717
|
+
# @option opts [Float] :limit Number of items per page (default to 100)
|
|
718
|
+
# @option opts [Array<String>] :severities Filter by severity levels (DEBUG, INFO, WARN, ERROR)
|
|
719
|
+
# @option opts [String] :search Search in log body
|
|
720
|
+
# @return [Array<(PaginatedLogs, Integer, Hash)>] PaginatedLogs data, response status code and response headers
|
|
721
|
+
def get_sandbox_logs_with_http_info(sandbox_id, from, to, opts = {})
|
|
722
|
+
if @api_client.config.debugging
|
|
723
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_logs ...'
|
|
724
|
+
end
|
|
725
|
+
# verify the required parameter 'sandbox_id' is set
|
|
726
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
727
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_logs"
|
|
728
|
+
end
|
|
729
|
+
# verify the required parameter 'from' is set
|
|
730
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
731
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_logs"
|
|
732
|
+
end
|
|
733
|
+
# verify the required parameter 'to' is set
|
|
734
|
+
if @api_client.config.client_side_validation && to.nil?
|
|
735
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_logs"
|
|
736
|
+
end
|
|
737
|
+
# resource path
|
|
738
|
+
local_var_path = '/sandbox/{sandboxId}/telemetry/logs'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
739
|
+
|
|
740
|
+
# query parameters
|
|
741
|
+
query_params = opts[:query_params] || {}
|
|
742
|
+
query_params[:'from'] = from
|
|
743
|
+
query_params[:'to'] = to
|
|
744
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
745
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
746
|
+
query_params[:'severities'] = @api_client.build_collection_param(opts[:'severities'], :multi) if !opts[:'severities'].nil?
|
|
747
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
748
|
+
|
|
749
|
+
# header parameters
|
|
750
|
+
header_params = opts[:header_params] || {}
|
|
751
|
+
# HTTP header 'Accept' (if needed)
|
|
752
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
753
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
754
|
+
|
|
755
|
+
# form parameters
|
|
756
|
+
form_params = opts[:form_params] || {}
|
|
757
|
+
|
|
758
|
+
# http body (model)
|
|
759
|
+
post_body = opts[:debug_body]
|
|
760
|
+
|
|
761
|
+
# return_type
|
|
762
|
+
return_type = opts[:debug_return_type] || 'PaginatedLogs'
|
|
763
|
+
|
|
764
|
+
# auth_names
|
|
765
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
766
|
+
|
|
767
|
+
new_options = opts.merge(
|
|
768
|
+
:operation => :"SandboxApi.get_sandbox_logs",
|
|
769
|
+
:header_params => header_params,
|
|
770
|
+
:query_params => query_params,
|
|
771
|
+
:form_params => form_params,
|
|
772
|
+
:body => post_body,
|
|
773
|
+
:auth_names => auth_names,
|
|
774
|
+
:return_type => return_type
|
|
775
|
+
)
|
|
776
|
+
|
|
777
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
778
|
+
if @api_client.config.debugging
|
|
779
|
+
@api_client.config.logger.debug "API called: SandboxApi#get_sandbox_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
780
|
+
end
|
|
781
|
+
return data, status_code, headers
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
# Get sandbox metrics
|
|
785
|
+
# Retrieve OTEL metrics for a sandbox within a time range
|
|
786
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
787
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
788
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
789
|
+
# @param [Hash] opts the optional parameters
|
|
790
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
791
|
+
# @option opts [Array<String>] :metric_names Filter by metric names
|
|
792
|
+
# @return [MetricsResponse]
|
|
793
|
+
def get_sandbox_metrics(sandbox_id, from, to, opts = {})
|
|
794
|
+
data, _status_code, _headers = get_sandbox_metrics_with_http_info(sandbox_id, from, to, opts)
|
|
795
|
+
data
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# Get sandbox metrics
|
|
799
|
+
# Retrieve OTEL metrics for a sandbox within a time range
|
|
800
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
801
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
802
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
803
|
+
# @param [Hash] opts the optional parameters
|
|
804
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
805
|
+
# @option opts [Array<String>] :metric_names Filter by metric names
|
|
806
|
+
# @return [Array<(MetricsResponse, Integer, Hash)>] MetricsResponse data, response status code and response headers
|
|
807
|
+
def get_sandbox_metrics_with_http_info(sandbox_id, from, to, opts = {})
|
|
808
|
+
if @api_client.config.debugging
|
|
809
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_metrics ...'
|
|
810
|
+
end
|
|
811
|
+
# verify the required parameter 'sandbox_id' is set
|
|
812
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
813
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_metrics"
|
|
814
|
+
end
|
|
815
|
+
# verify the required parameter 'from' is set
|
|
816
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
817
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_metrics"
|
|
818
|
+
end
|
|
819
|
+
# verify the required parameter 'to' is set
|
|
820
|
+
if @api_client.config.client_side_validation && to.nil?
|
|
821
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_metrics"
|
|
822
|
+
end
|
|
823
|
+
# resource path
|
|
824
|
+
local_var_path = '/sandbox/{sandboxId}/telemetry/metrics'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
825
|
+
|
|
826
|
+
# query parameters
|
|
827
|
+
query_params = opts[:query_params] || {}
|
|
828
|
+
query_params[:'from'] = from
|
|
829
|
+
query_params[:'to'] = to
|
|
830
|
+
query_params[:'metricNames'] = @api_client.build_collection_param(opts[:'metric_names'], :multi) if !opts[:'metric_names'].nil?
|
|
831
|
+
|
|
832
|
+
# header parameters
|
|
833
|
+
header_params = opts[:header_params] || {}
|
|
834
|
+
# HTTP header 'Accept' (if needed)
|
|
835
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
836
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
837
|
+
|
|
838
|
+
# form parameters
|
|
839
|
+
form_params = opts[:form_params] || {}
|
|
840
|
+
|
|
841
|
+
# http body (model)
|
|
842
|
+
post_body = opts[:debug_body]
|
|
843
|
+
|
|
844
|
+
# return_type
|
|
845
|
+
return_type = opts[:debug_return_type] || 'MetricsResponse'
|
|
846
|
+
|
|
847
|
+
# auth_names
|
|
848
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
849
|
+
|
|
850
|
+
new_options = opts.merge(
|
|
851
|
+
:operation => :"SandboxApi.get_sandbox_metrics",
|
|
852
|
+
:header_params => header_params,
|
|
853
|
+
:query_params => query_params,
|
|
854
|
+
:form_params => form_params,
|
|
855
|
+
:body => post_body,
|
|
856
|
+
:auth_names => auth_names,
|
|
857
|
+
:return_type => return_type
|
|
858
|
+
)
|
|
859
|
+
|
|
860
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
861
|
+
if @api_client.config.debugging
|
|
862
|
+
@api_client.config.logger.debug "API called: SandboxApi#get_sandbox_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
863
|
+
end
|
|
864
|
+
return data, status_code, headers
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# Get trace spans
|
|
868
|
+
# Retrieve all spans for a specific trace
|
|
869
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
870
|
+
# @param trace_id [String] ID of the trace
|
|
871
|
+
# @param [Hash] opts the optional parameters
|
|
872
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
873
|
+
# @return [Array<TraceSpan>]
|
|
874
|
+
def get_sandbox_trace_spans(sandbox_id, trace_id, opts = {})
|
|
875
|
+
data, _status_code, _headers = get_sandbox_trace_spans_with_http_info(sandbox_id, trace_id, opts)
|
|
876
|
+
data
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# Get trace spans
|
|
880
|
+
# Retrieve all spans for a specific trace
|
|
881
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
882
|
+
# @param trace_id [String] ID of the trace
|
|
883
|
+
# @param [Hash] opts the optional parameters
|
|
884
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
885
|
+
# @return [Array<(Array<TraceSpan>, Integer, Hash)>] Array<TraceSpan> data, response status code and response headers
|
|
886
|
+
def get_sandbox_trace_spans_with_http_info(sandbox_id, trace_id, opts = {})
|
|
887
|
+
if @api_client.config.debugging
|
|
888
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_trace_spans ...'
|
|
889
|
+
end
|
|
890
|
+
# verify the required parameter 'sandbox_id' is set
|
|
891
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
892
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_trace_spans"
|
|
893
|
+
end
|
|
894
|
+
# verify the required parameter 'trace_id' is set
|
|
895
|
+
if @api_client.config.client_side_validation && trace_id.nil?
|
|
896
|
+
fail ArgumentError, "Missing the required parameter 'trace_id' when calling SandboxApi.get_sandbox_trace_spans"
|
|
897
|
+
end
|
|
898
|
+
# resource path
|
|
899
|
+
local_var_path = '/sandbox/{sandboxId}/telemetry/traces/{traceId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'traceId' + '}', CGI.escape(trace_id.to_s))
|
|
900
|
+
|
|
901
|
+
# query parameters
|
|
902
|
+
query_params = opts[:query_params] || {}
|
|
903
|
+
|
|
904
|
+
# header parameters
|
|
905
|
+
header_params = opts[:header_params] || {}
|
|
906
|
+
# HTTP header 'Accept' (if needed)
|
|
907
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
908
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
909
|
+
|
|
910
|
+
# form parameters
|
|
911
|
+
form_params = opts[:form_params] || {}
|
|
912
|
+
|
|
913
|
+
# http body (model)
|
|
914
|
+
post_body = opts[:debug_body]
|
|
915
|
+
|
|
916
|
+
# return_type
|
|
917
|
+
return_type = opts[:debug_return_type] || 'Array<TraceSpan>'
|
|
918
|
+
|
|
919
|
+
# auth_names
|
|
920
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
921
|
+
|
|
922
|
+
new_options = opts.merge(
|
|
923
|
+
:operation => :"SandboxApi.get_sandbox_trace_spans",
|
|
924
|
+
:header_params => header_params,
|
|
925
|
+
:query_params => query_params,
|
|
926
|
+
:form_params => form_params,
|
|
927
|
+
:body => post_body,
|
|
928
|
+
:auth_names => auth_names,
|
|
929
|
+
:return_type => return_type
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
933
|
+
if @api_client.config.debugging
|
|
934
|
+
@api_client.config.logger.debug "API called: SandboxApi#get_sandbox_trace_spans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
935
|
+
end
|
|
936
|
+
return data, status_code, headers
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
# Get sandbox traces
|
|
940
|
+
# Retrieve OTEL traces for a sandbox within a time range
|
|
941
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
942
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
943
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
944
|
+
# @param [Hash] opts the optional parameters
|
|
945
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
946
|
+
# @option opts [Float] :page Page number (1-indexed) (default to 1)
|
|
947
|
+
# @option opts [Float] :limit Number of items per page (default to 100)
|
|
948
|
+
# @return [PaginatedTraces]
|
|
949
|
+
def get_sandbox_traces(sandbox_id, from, to, opts = {})
|
|
950
|
+
data, _status_code, _headers = get_sandbox_traces_with_http_info(sandbox_id, from, to, opts)
|
|
951
|
+
data
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# Get sandbox traces
|
|
955
|
+
# Retrieve OTEL traces for a sandbox within a time range
|
|
956
|
+
# @param sandbox_id [String] ID of the sandbox
|
|
957
|
+
# @param from [Time] Start of time range (ISO 8601)
|
|
958
|
+
# @param to [Time] End of time range (ISO 8601)
|
|
959
|
+
# @param [Hash] opts the optional parameters
|
|
960
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
961
|
+
# @option opts [Float] :page Page number (1-indexed) (default to 1)
|
|
962
|
+
# @option opts [Float] :limit Number of items per page (default to 100)
|
|
963
|
+
# @return [Array<(PaginatedTraces, Integer, Hash)>] PaginatedTraces data, response status code and response headers
|
|
964
|
+
def get_sandbox_traces_with_http_info(sandbox_id, from, to, opts = {})
|
|
965
|
+
if @api_client.config.debugging
|
|
966
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.get_sandbox_traces ...'
|
|
967
|
+
end
|
|
968
|
+
# verify the required parameter 'sandbox_id' is set
|
|
969
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
970
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling SandboxApi.get_sandbox_traces"
|
|
971
|
+
end
|
|
972
|
+
# verify the required parameter 'from' is set
|
|
973
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
974
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling SandboxApi.get_sandbox_traces"
|
|
975
|
+
end
|
|
976
|
+
# verify the required parameter 'to' is set
|
|
977
|
+
if @api_client.config.client_side_validation && to.nil?
|
|
978
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling SandboxApi.get_sandbox_traces"
|
|
979
|
+
end
|
|
980
|
+
# resource path
|
|
981
|
+
local_var_path = '/sandbox/{sandboxId}/telemetry/traces'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
982
|
+
|
|
983
|
+
# query parameters
|
|
984
|
+
query_params = opts[:query_params] || {}
|
|
985
|
+
query_params[:'from'] = from
|
|
986
|
+
query_params[:'to'] = to
|
|
987
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
988
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
989
|
+
|
|
990
|
+
# header parameters
|
|
991
|
+
header_params = opts[:header_params] || {}
|
|
992
|
+
# HTTP header 'Accept' (if needed)
|
|
993
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
994
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
995
|
+
|
|
996
|
+
# form parameters
|
|
997
|
+
form_params = opts[:form_params] || {}
|
|
998
|
+
|
|
999
|
+
# http body (model)
|
|
1000
|
+
post_body = opts[:debug_body]
|
|
1001
|
+
|
|
1002
|
+
# return_type
|
|
1003
|
+
return_type = opts[:debug_return_type] || 'PaginatedTraces'
|
|
1004
|
+
|
|
1005
|
+
# auth_names
|
|
1006
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1007
|
+
|
|
1008
|
+
new_options = opts.merge(
|
|
1009
|
+
:operation => :"SandboxApi.get_sandbox_traces",
|
|
1010
|
+
:header_params => header_params,
|
|
1011
|
+
:query_params => query_params,
|
|
1012
|
+
:form_params => form_params,
|
|
1013
|
+
:body => post_body,
|
|
1014
|
+
:auth_names => auth_names,
|
|
1015
|
+
:return_type => return_type
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1019
|
+
if @api_client.config.debugging
|
|
1020
|
+
@api_client.config.logger.debug "API called: SandboxApi#get_sandbox_traces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1021
|
+
end
|
|
1022
|
+
return data, status_code, headers
|
|
1023
|
+
end
|
|
1024
|
+
|
|
692
1025
|
# Get sandboxes for the authenticated runner
|
|
693
1026
|
# @param [Hash] opts the optional parameters
|
|
694
1027
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|