Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

17384 lines
1.1 MiB
Plaintext

//
// O11yAPI.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
open class O11yAPI {
/**
Is the deployed agent's check-in — the path consistent with the account surface, reporting the agent's account and telemetry state so the connection can be tracked.
- parameter cloudProvider: (path)
- parameter o11yO11yAgentCheckInIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAgentCheckInOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func agentCheckIn(cloudProvider: String, o11yO11yAgentCheckInIn: O11yO11yAgentCheckInIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAgentCheckInOut {
return try await agentCheckInWithRequestBuilder(cloudProvider: cloudProvider, o11yO11yAgentCheckInIn: o11yO11yAgentCheckInIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Is the deployed agent's check-in — the path consistent with the account surface, reporting the agent's account and telemetry state so the connection can be tracked.
- POST /v1/o11y/cloud_integrations/{cloud_provider}/accounts/check_in
- Is the deployed agent's check-in — the path consistent with the account surface, reporting the agent's account and telemetry state so the connection can be tracked. Viewer gate — the agent's role is viewer.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter o11yO11yAgentCheckInIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAgentCheckInOut>
*/
open class func agentCheckInWithRequestBuilder(cloudProvider: String, o11yO11yAgentCheckInIn: O11yO11yAgentCheckInIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAgentCheckInOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/check_in"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yAgentCheckInIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAgentCheckInOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Is the deployed agent's check-in on its original hyphenated path, kept for backward compatibility with agents already running.
- parameter cloudProvider: (path)
- parameter o11yO11yAgentCheckInIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAgentCheckInOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func agentCheckInDeprecated(cloudProvider: String, o11yO11yAgentCheckInIn: O11yO11yAgentCheckInIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAgentCheckInOut {
return try await agentCheckInDeprecatedWithRequestBuilder(cloudProvider: cloudProvider, o11yO11yAgentCheckInIn: o11yO11yAgentCheckInIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Is the deployed agent's check-in on its original hyphenated path, kept for backward compatibility with agents already running.
- POST /v1/o11y/cloud-integrations/{cloud_provider}/agent-check-in
- Is the deployed agent's check-in on its original hyphenated path, kept for backward compatibility with agents already running. Viewer gate — the agent's role is viewer.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter o11yO11yAgentCheckInIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAgentCheckInOut>
*/
open class func agentCheckInDeprecatedWithRequestBuilder(cloudProvider: String, o11yO11yAgentCheckInIn: O11yO11yAgentCheckInIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAgentCheckInOut> {
var localVariablePath = "/v1/o11y/cloud-integrations/{cloud_provider}/agent-check-in"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yAgentCheckInIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAgentCheckInOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Evaluates a batch of transactions — relation plus object — for the authenticated caller and answers each with its authorization verdict, in the order they were asked.
- parameter o11yO11yTransaction: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCheckOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func authzCheck(o11yO11yTransaction: [O11yO11yTransaction], apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCheckOut {
return try await authzCheckWithRequestBuilder(o11yO11yTransaction: o11yO11yTransaction, apiConfiguration: apiConfiguration).execute().body
}
/**
Evaluates a batch of transactions — relation plus object — for the authenticated caller and answers each with its authorization verdict, in the order they were asked.
- POST /v1/o11y/authz/check
- Evaluates a batch of transactions — relation plus object — for the authenticated caller and answers each with its authorization verdict, in the order they were asked. It is the read a UI uses to decide which controls to show.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yTransaction: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCheckOut>
*/
open class func authzCheckWithRequestBuilder(o11yO11yTransaction: [O11yO11yTransaction], apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCheckOut> {
let localVariablePath = "/v1/o11y/authz/check"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yTransaction, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCheckOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Clones an existing v2-shape dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func cloneDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardOut {
return try await cloneDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Clones an existing v2-shape dashboard.
- POST /v1/o11y/dashboards/{id}/clone
- Clones an existing v2-shape dashboard. User and integration dashboards can be cloned; system dashboards are rejected. The clone keeps the source's display name, panels and tags, but gets a freshly generated unique internal name and is always created as an unlocked user dashboard owned by the caller. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardOut>
*/
open class func cloneDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}/clone"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Connects a new cloud-integration account for the given provider from its posted config and credentials, answering with the account and the artifact the agent deploys to complete the connection.
- parameter cloudProvider: (path)
- parameter o11yO11yCreateAccountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCreateAccountOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createAccount(cloudProvider: String, o11yO11yCreateAccountIn: O11yO11yCreateAccountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCreateAccountOut {
return try await createAccountWithRequestBuilder(cloudProvider: cloudProvider, o11yO11yCreateAccountIn: o11yO11yCreateAccountIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Connects a new cloud-integration account for the given provider from its posted config and credentials, answering with the account and the artifact the agent deploys to complete the connection.
- POST /v1/o11y/cloud_integrations/{cloud_provider}/accounts
- Connects a new cloud-integration account for the given provider from its posted config and credentials, answering with the account and the artifact the agent deploys to complete the connection. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter o11yO11yCreateAccountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCreateAccountOut>
*/
open class func createAccountWithRequestBuilder(cloudProvider: String, o11yO11yCreateAccountIn: O11yO11yCreateAccountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCreateAccountOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yCreateAccountIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCreateAccountOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Claims an email domain for the org and configures how its users sign in; the answer is the new domain's id.
- parameter o11yO11yPostableAuthDomain: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCreatedOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createAuthDomain(o11yO11yPostableAuthDomain: O11yO11yPostableAuthDomain, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCreatedOut {
return try await createAuthDomainWithRequestBuilder(o11yO11yPostableAuthDomain: o11yO11yPostableAuthDomain, apiConfiguration: apiConfiguration).execute().body
}
/**
Claims an email domain for the org and configures how its users sign in; the answer is the new domain's id.
- POST /v1/o11y/domains
- Claims an email domain for the org and configures how its users sign in; the answer is the new domain's id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yPostableAuthDomain: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCreatedOut>
*/
open class func createAuthDomainWithRequestBuilder(o11yO11yPostableAuthDomain: O11yO11yPostableAuthDomain, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCreatedOut> {
let localVariablePath = "/v1/o11y/domains"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yPostableAuthDomain, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCreatedOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Invites several people to the caller's org in one call, refusing the whole batch when any email repeats.
- parameter o11yO11yBulkInviteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAck
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createBulkInvite(o11yO11yBulkInviteIn: O11yO11yBulkInviteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAck {
return try await createBulkInviteWithRequestBuilder(o11yO11yBulkInviteIn: o11yO11yBulkInviteIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Invites several people to the caller's org in one call, refusing the whole batch when any email repeats.
- POST /v1/o11y/invite/bulk
- Invites several people to the caller's org in one call, refusing the whole batch when any email repeats. Deprecated alongside createInvite. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yBulkInviteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAck>
*/
open class func createBulkInviteWithRequestBuilder(o11yO11yBulkInviteIn: O11yO11yBulkInviteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAck> {
let localVariablePath = "/v1/o11y/invite/bulk"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yBulkInviteIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAck>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a notification channel, answering with the stored channel.
- parameter o11yPostableChannel: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yChannelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createChannel(o11yPostableChannel: O11yPostableChannel, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yChannelOut {
return try await createChannelWithRequestBuilder(o11yPostableChannel: o11yPostableChannel, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a notification channel, answering with the stored channel.
- POST /v1/o11y/channels
- Creates a notification channel, answering with the stored channel. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableChannel: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yChannelOut>
*/
open class func createChannelWithRequestBuilder(o11yPostableChannel: O11yPostableChannel, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yChannelOut> {
let localVariablePath = "/v1/o11y/channels"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableChannel, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yChannelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a dashboard in the v2 format that follows the Perses spec and answers with the stored dashboard.
- parameter o11yO11yDashboardPostable: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createDashboardV2(o11yO11yDashboardPostable: O11yO11yDashboardPostable, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardOut {
return try await createDashboardV2WithRequestBuilder(o11yO11yDashboardPostable: o11yO11yDashboardPostable, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a dashboard in the v2 format that follows the Perses spec and answers with the stored dashboard.
- POST /v1/o11y/dashboards
- Creates a dashboard in the v2 format that follows the Perses spec and answers with the stored dashboard. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDashboardPostable: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardOut>
*/
open class func createDashboardV2WithRequestBuilder(o11yO11yDashboardPostable: O11yO11yDashboardPostable, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardOut> {
let localVariablePath = "/v1/o11y/dashboards"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardPostable, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Persists the calling user's dashboard-listing state (query, sort, order) as a named, reusable view shared across the org.
- parameter o11yO11yDashboardViewPostable: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardViewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createDashboardView(o11yO11yDashboardViewPostable: O11yO11yDashboardViewPostable, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardViewOut {
return try await createDashboardViewWithRequestBuilder(o11yO11yDashboardViewPostable: o11yO11yDashboardViewPostable, apiConfiguration: apiConfiguration).execute().body
}
/**
Persists the calling user's dashboard-listing state (query, sort, order) as a named, reusable view shared across the org.
- POST /v1/o11y/dashboard_views
- Persists the calling user's dashboard-listing state (query, sort, order) as a named, reusable view shared across the org. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDashboardViewPostable: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardViewOut>
*/
open class func createDashboardViewWithRequestBuilder(o11yO11yDashboardViewPostable: O11yO11yDashboardViewPostable, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardViewOut> {
let localVariablePath = "/v1/o11y/dashboard_views"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardViewPostable, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardViewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a planned maintenance window, answering with the stored schedule.
- parameter o11yPostablePlannedMaintenance: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDowntimeScheduleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createDowntimeSchedule(o11yPostablePlannedMaintenance: O11yPostablePlannedMaintenance, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDowntimeScheduleOut {
return try await createDowntimeScheduleWithRequestBuilder(o11yPostablePlannedMaintenance: o11yPostablePlannedMaintenance, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a planned maintenance window, answering with the stored schedule.
- POST /v1/o11y/downtime_schedules
- Creates a planned maintenance window, answering with the stored schedule. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostablePlannedMaintenance: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDowntimeScheduleOut>
*/
open class func createDowntimeScheduleWithRequestBuilder(o11yPostablePlannedMaintenance: O11yPostablePlannedMaintenance, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDowntimeScheduleOut> {
let localVariablePath = "/v1/o11y/downtime_schedules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostablePlannedMaintenance, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDowntimeScheduleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Mints an ingestion key for the workspace, answering with the created key.
- parameter o11yPostableIngestionKey: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCreatedIngestionKeyOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createIngestionKey(o11yPostableIngestionKey: O11yPostableIngestionKey, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCreatedIngestionKeyOut {
return try await createIngestionKeyWithRequestBuilder(o11yPostableIngestionKey: o11yPostableIngestionKey, apiConfiguration: apiConfiguration).execute().body
}
/**
Mints an ingestion key for the workspace, answering with the created key.
- POST /v1/o11y/gateway/ingestion_keys
- Mints an ingestion key for the workspace, answering with the created key. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableIngestionKey: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCreatedIngestionKeyOut>
*/
open class func createIngestionKeyWithRequestBuilder(o11yPostableIngestionKey: O11yPostableIngestionKey, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCreatedIngestionKeyOut> {
let localVariablePath = "/v1/o11y/gateway/ingestion_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableIngestionKey, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCreatedIngestionKeyOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets a signal limit on an ingestion key, by key id, answering with the created limit.
- parameter keyId: (path)
- parameter o11yO11yCreateLimitIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCreatedLimitOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createIngestionKeyLimit(keyId: String, o11yO11yCreateLimitIn: O11yO11yCreateLimitIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCreatedLimitOut {
return try await createIngestionKeyLimitWithRequestBuilder(keyId: keyId, o11yO11yCreateLimitIn: o11yO11yCreateLimitIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets a signal limit on an ingestion key, by key id, answering with the created limit.
- POST /v1/o11y/gateway/ingestion_keys/{keyId}/limits
- Sets a signal limit on an ingestion key, by key id, answering with the created limit. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter keyId: (path)
- parameter o11yO11yCreateLimitIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCreatedLimitOut>
*/
open class func createIngestionKeyLimitWithRequestBuilder(keyId: String, o11yO11yCreateLimitIn: O11yO11yCreateLimitIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCreatedLimitOut> {
var localVariablePath = "/v1/o11y/gateway/ingestion_keys/{keyId}/limits"
let keyIdPreEscape = "\(APIHelper.mapValueToPathItem(keyId))"
let keyIdPostEscape = keyIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{keyId}", with: keyIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yCreateLimitIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCreatedLimitOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Invites one person to the caller's org by email, with the role they will hold when they accept.
- parameter o11yO11yInviteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInviteOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createInvite(o11yO11yInviteIn: O11yO11yInviteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInviteOut {
return try await createInviteWithRequestBuilder(o11yO11yInviteIn: o11yO11yInviteIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Invites one person to the caller's org by email, with the role they will hold when they accept.
- POST /v1/o11y/invite
- Invites one person to the caller's org by email, with the role they will hold when they accept. Deprecated in favor of creating users directly; kept because callers still hold it. Admin gate, enforced by the runtime this op relays to.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yInviteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInviteOut>
*/
open class func createInviteWithRequestBuilder(o11yO11yInviteIn: O11yO11yInviteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInviteOut> {
let localVariablePath = "/v1/o11y/invite"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yInviteIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInviteOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Adds a human annotation to a trace or observation, optionally in a review queue.
- parameter o11yO11yLLMIngestAnnotation: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMAnnotationOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createLLMAnnotation(o11yO11yLLMIngestAnnotation: O11yO11yLLMIngestAnnotation, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMAnnotationOut {
return try await createLLMAnnotationWithRequestBuilder(o11yO11yLLMIngestAnnotation: o11yO11yLLMIngestAnnotation, apiConfiguration: apiConfiguration).execute().body
}
/**
Adds a human annotation to a trace or observation, optionally in a review queue.
- POST /v1/o11y/llm/annotation
- Adds a human annotation to a trace or observation, optionally in a review queue. Callers need the editor role; the runtime's own gate enforces it, and it validates the payload and stamps the annotation's author and org.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLLMIngestAnnotation: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMAnnotationOut>
*/
open class func createLLMAnnotationWithRequestBuilder(o11yO11yLLMIngestAnnotation: O11yO11yLLMIngestAnnotation, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMAnnotationOut> {
let localVariablePath = "/v1/o11y/llm/annotation"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLLMIngestAnnotation, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMAnnotationOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Attaches an eval score or human-feedback signal to a trace or a single observation.
- parameter o11yO11yLLMIngestScore: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMScoreOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createLLMScore(o11yO11yLLMIngestScore: O11yO11yLLMIngestScore, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMScoreOut {
return try await createLLMScoreWithRequestBuilder(o11yO11yLLMIngestScore: o11yO11yLLMIngestScore, apiConfiguration: apiConfiguration).execute().body
}
/**
Attaches an eval score or human-feedback signal to a trace or a single observation.
- POST /v1/o11y/llm/scores
- Attaches an eval score or human-feedback signal to a trace or a single observation. Callers need the editor role; the runtime's own gate enforces it, and it validates the payload and stamps the score's author and org.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLLMIngestScore: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMScoreOut>
*/
open class func createLLMScoreWithRequestBuilder(o11yO11yLLMIngestScore: O11yO11yLLMIngestScore, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMScoreOut> {
let localVariablePath = "/v1/o11y/llm/scores"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLLMIngestScore, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMScoreOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a volume-control rule for a metric and returns it with its id; a metric that already has a rule is refused.
- parameter o11yO11yReductionRuleCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createMetricReductionRule(o11yO11yReductionRuleCreateIn: O11yO11yReductionRuleCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionRuleOut {
return try await createMetricReductionRuleWithRequestBuilder(o11yO11yReductionRuleCreateIn: o11yO11yReductionRuleCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a volume-control rule for a metric and returns it with its id; a metric that already has a rule is refused.
- POST /v1/o11y/metric_reduction_rules
- Creates a volume-control rule for a metric and returns it with its id; a metric that already has a rule is refused.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yReductionRuleCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionRuleOut>
*/
open class func createMetricReductionRuleWithRequestBuilder(o11yO11yReductionRuleCreateIn: O11yO11yReductionRuleCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionRuleOut> {
let localVariablePath = "/v1/o11y/metric_reduction_rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yReductionRuleCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Writes the pricing-rule batch — the single write endpoint used by both the user and the Zeus sync job.
- parameter o11yO11yLLMUpdatablePricingRules: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createOrUpdateLLMPricingRules(o11yO11yLLMUpdatablePricingRules: O11yO11yLLMUpdatablePricingRules, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await createOrUpdateLLMPricingRulesWithRequestBuilder(o11yO11yLLMUpdatablePricingRules: o11yO11yLLMUpdatablePricingRules, apiConfiguration: apiConfiguration).execute().body
}
/**
Writes the pricing-rule batch — the single write endpoint used by both the user and the Zeus sync job.
- PUT /v1/o11y/llm_pricing_rules
- Writes the pricing-rule batch — the single write endpoint used by both the user and the Zeus sync job. Per-rule match is by id, then sourceId, then insert; an override row is fully preserved when the request omits isOverride, only its synced_at stamped. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLLMUpdatablePricingRules: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func createOrUpdateLLMPricingRulesWithRequestBuilder(o11yO11yLLMUpdatablePricingRules: O11yO11yLLMUpdatablePricingRules, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/llm_pricing_rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLLMUpdatablePricingRules, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates the public-sharing config for a dashboard and enables public sharing, answering with the new share's id.
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yPublicDashboardWriteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIdentifiableOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createPublicDashboard(id: String, o11yO11yPublicDashboardWriteIn: O11yO11yPublicDashboardWriteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIdentifiableOut {
return try await createPublicDashboardWithRequestBuilder(id: id, o11yO11yPublicDashboardWriteIn: o11yO11yPublicDashboardWriteIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates the public-sharing config for a dashboard and enables public sharing, answering with the new share's id.
- POST /v1/o11y/dashboards/{id}/public
- Creates the public-sharing config for a dashboard and enables public sharing, answering with the new share's id. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yPublicDashboardWriteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIdentifiableOut>
*/
open class func createPublicDashboardWithRequestBuilder(id: String, o11yO11yPublicDashboardWriteIn: O11yO11yPublicDashboardWriteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIdentifiableOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}/public"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yPublicDashboardWriteIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIdentifiableOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates or regenerates a user's reset-password token: a live token is returned as it is, an expired one is replaced.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yResetTokenOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createResetPasswordToken(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yResetTokenOut {
return try await createResetPasswordTokenWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates or regenerates a user's reset-password token: a live token is returned as it is, an expired one is replaced.
- PUT /v1/o11y/users/{id}/reset_password_tokens
- Creates or regenerates a user's reset-password token: a live token is returned as it is, an expired one is replaced. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yResetTokenOut>
*/
open class func createResetPasswordTokenWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yResetTokenOut> {
var localVariablePath = "/v1/o11y/users/{id}/reset_password_tokens"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yResetTokenOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a custom role in the caller's org from a name, an optional description and the transaction groups it grants, answering the new role's id.
- parameter o11yO11yRoleCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoleCreateOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createRole(o11yO11yRoleCreateIn: O11yO11yRoleCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoleCreateOut {
return try await createRoleWithRequestBuilder(o11yO11yRoleCreateIn: o11yO11yRoleCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a custom role in the caller's org from a name, an optional description and the transaction groups it grants, answering the new role's id.
- POST /v1/o11y/roles
- Creates a custom role in the caller's org from a name, an optional description and the transaction groups it grants, answering the new role's id. Names are lowercase letters and hyphens only, and may not start with the reserved managed-role prefix; the runtime refuses anything else.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yRoleCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoleCreateOut>
*/
open class func createRoleWithRequestBuilder(o11yO11yRoleCreateIn: O11yO11yRoleCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoleCreateOut> {
let localVariablePath = "/v1/o11y/roles"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRoleCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoleCreateOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a route policy, answering with the stored policy.
- parameter o11yPostableRoutePolicy: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoutePolicyOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createRoutePolicy(o11yPostableRoutePolicy: O11yPostableRoutePolicy, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoutePolicyOut {
return try await createRoutePolicyWithRequestBuilder(o11yPostableRoutePolicy: o11yPostableRoutePolicy, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a route policy, answering with the stored policy.
- POST /v1/o11y/route_policies
- Creates a route policy, answering with the stored policy. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableRoutePolicy: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoutePolicyOut>
*/
open class func createRoutePolicyWithRequestBuilder(o11yPostableRoutePolicy: O11yPostableRoutePolicy, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoutePolicyOut> {
let localVariablePath = "/v1/o11y/route_policies"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableRoutePolicy, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoutePolicyOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a new alert rule and answers with the stored rule.
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createRule(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleOut {
return try await createRuleWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a new alert rule and answers with the stored rule.
- POST /v1/o11y/rules
- Creates a new alert rule and answers with the stored rule. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleOut>
*/
open class func createRuleWithRequestBuilder(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleOut> {
let localVariablePath = "/v1/o11y/rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a service account in the caller's org, answering its id.
- parameter o11yO11yServiceAccountCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceAccountCreateOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createServiceAccount(o11yO11yServiceAccountCreateIn: O11yO11yServiceAccountCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceAccountCreateOut {
return try await createServiceAccountWithRequestBuilder(o11yO11yServiceAccountCreateIn: o11yO11yServiceAccountCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a service account in the caller's org, answering its id.
- POST /v1/o11y/service_accounts
- Creates a service account in the caller's org, answering its id. The name — a lowercase letter followed by lowercase letters, digits or hyphens — becomes the account's email local part.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yServiceAccountCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceAccountCreateOut>
*/
open class func createServiceAccountWithRequestBuilder(o11yO11yServiceAccountCreateIn: O11yO11yServiceAccountCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceAccountCreateOut> {
let localVariablePath = "/v1/o11y/service_accounts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yServiceAccountCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceAccountCreateOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Mints an API key for a service account and answers the key's id and its secret — the one time the secret is ever shown.
- parameter id: (path)
- parameter o11yO11yAPIKeyCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAPIKeyCreateOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createServiceAccountKey(id: String, o11yO11yAPIKeyCreateIn: O11yO11yAPIKeyCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAPIKeyCreateOut {
return try await createServiceAccountKeyWithRequestBuilder(id: id, o11yO11yAPIKeyCreateIn: o11yO11yAPIKeyCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Mints an API key for a service account and answers the key's id and its secret — the one time the secret is ever shown.
- POST /v1/o11y/service_accounts/{id}/keys
- Mints an API key for a service account and answers the key's id and its secret — the one time the secret is ever shown. ExpiresAt is a unix timestamp in seconds; zero means the key never expires, and a timestamp in the past is refused.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yAPIKeyCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAPIKeyCreateOut>
*/
open class func createServiceAccountKeyWithRequestBuilder(id: String, o11yO11yAPIKeyCreateIn: O11yO11yAPIKeyCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAPIKeyCreateOut> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/keys"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yAPIKeyCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAPIKeyCreateOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Assigns a role, named by its id, to a service account.
- parameter id: (path) RoleID is the id of the role to assign. Required.
- parameter o11yO11yServiceAccountRoleGrantIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createServiceAccountRole(id: String, o11yO11yServiceAccountRoleGrantIn: O11yO11yServiceAccountRoleGrantIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await createServiceAccountRoleWithRequestBuilder(id: id, o11yO11yServiceAccountRoleGrantIn: o11yO11yServiceAccountRoleGrantIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Assigns a role, named by its id, to a service account.
- POST /v1/o11y/service_accounts/{id}/roles
- Assigns a role, named by its id, to a service account.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) RoleID is the id of the role to assign. Required.
- parameter o11yO11yServiceAccountRoleGrantIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func createServiceAccountRoleWithRequestBuilder(id: String, o11yO11yServiceAccountRoleGrantIn: O11yO11yServiceAccountRoleGrantIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/roles"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yServiceAccountRoleGrantIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Signs a user in with email and password and answers with the session's token pair.
- parameter o11yO11yEmailPasswordSessionIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTokenOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createSessionByEmailPassword(o11yO11yEmailPasswordSessionIn: O11yO11yEmailPasswordSessionIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTokenOut {
return try await createSessionByEmailPasswordWithRequestBuilder(o11yO11yEmailPasswordSessionIn: o11yO11yEmailPasswordSessionIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Signs a user in with email and password and answers with the session's token pair.
- POST /v1/o11y/sessions/email_password
- Signs a user in with email and password and answers with the session's token pair. Unauthenticated: this call is how authentication begins.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yEmailPasswordSessionIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTokenOut>
*/
open class func createSessionByEmailPasswordWithRequestBuilder(o11yO11yEmailPasswordSessionIn: O11yO11yEmailPasswordSessionIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTokenOut> {
let localVariablePath = "/v1/o11y/sessions/email_password"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yEmailPasswordSessionIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTokenOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Adds a mapper to a group: which field context it reads, the move or copy it performs, and whether it is on.
- parameter groupId: (path)
- parameter o11yO11ySpanMapperCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySpanMapperOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createSpanMapper(groupId: String, o11yO11ySpanMapperCreateIn: O11yO11ySpanMapperCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySpanMapperOut {
return try await createSpanMapperWithRequestBuilder(groupId: groupId, o11yO11ySpanMapperCreateIn: o11yO11ySpanMapperCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Adds a mapper to a group: which field context it reads, the move or copy it performs, and whether it is on.
- POST /v1/o11y/span_mapper_groups/{groupId}/span_mappers
- Adds a mapper to a group: which field context it reads, the move or copy it performs, and whether it is on. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter o11yO11ySpanMapperCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySpanMapperOut>
*/
open class func createSpanMapperWithRequestBuilder(groupId: String, o11yO11ySpanMapperCreateIn: O11yO11ySpanMapperCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySpanMapperOut> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}/span_mappers"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySpanMapperCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySpanMapperOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a mapping group: the name it is known by, the span and resource attributes whose presence selects a span into it, and whether it is on.
- parameter o11yPostableSpanMapperGroup: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySpanMapperGroupOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createSpanMapperGroup(o11yPostableSpanMapperGroup: O11yPostableSpanMapperGroup, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySpanMapperGroupOut {
return try await createSpanMapperGroupWithRequestBuilder(o11yPostableSpanMapperGroup: o11yPostableSpanMapperGroup, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a mapping group: the name it is known by, the span and resource attributes whose presence selects a span into it, and whether it is on.
- POST /v1/o11y/span_mapper_groups
- Creates a mapping group: the name it is known by, the span and resource attributes whose presence selects a span into it, and whether it is on. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableSpanMapperGroup: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySpanMapperGroupOut>
*/
open class func createSpanMapperGroupWithRequestBuilder(o11yPostableSpanMapperGroup: O11yPostableSpanMapperGroup, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySpanMapperGroupOut> {
let localVariablePath = "/v1/o11y/span_mapper_groups"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableSpanMapperGroup, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySpanMapperGroupOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates an empty funnel with a name, answering the funnel it created.
- parameter o11yO11yFunnelCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createTraceFunnel(o11yO11yFunnelCreateIn: O11yO11yFunnelCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelOut {
return try await createTraceFunnelWithRequestBuilder(o11yO11yFunnelCreateIn: o11yO11yFunnelCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates an empty funnel with a name, answering the funnel it created.
- POST /v1/o11y/trace-funnels/new
- Creates an empty funnel with a name, answering the funnel it created. Steps are added afterwards with the steps update. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yFunnelCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelOut>
*/
open class func createTraceFunnelWithRequestBuilder(o11yO11yFunnelCreateIn: O11yO11yFunnelCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelOut> {
let localVariablePath = "/v1/o11y/trace-funnels/new"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a member of the caller's org in the pending-invite state and mails them their invitation; the answer is the new user's id.
- parameter o11yO11yPostableUser: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCreatedOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func createUser(o11yO11yPostableUser: O11yO11yPostableUser, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCreatedOut {
return try await createUserWithRequestBuilder(o11yO11yPostableUser: o11yO11yPostableUser, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a member of the caller's org in the pending-invite state and mails them their invitation; the answer is the new user's id.
- POST /v1/o11y/users
- Creates a member of the caller's org in the pending-invite state and mails them their invitation; the answer is the new user's id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yPostableUser: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCreatedOut>
*/
open class func createUserWithRequestBuilder(o11yO11yPostableUser: O11yO11yPostableUser, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCreatedOut> {
let localVariablePath = "/v1/o11y/users"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yPostableUser, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCreatedOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Releases an email domain and discards its SSO configuration, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteAuthDomain(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteAuthDomainWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Releases an email domain and discards its SSO configuration, by id.
- DELETE /v1/o11y/domains/{id}
- Releases an email domain and discards its SSO configuration, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteAuthDomainWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/domains/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes a notification channel, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteChannelByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteChannelByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes a notification channel, by id.
- DELETE /v1/o11y/channels/{id}
- Removes a notification channel, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteChannelByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/channels/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a v2-shape dashboard along with its tag relations.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a v2-shape dashboard along with its tag relations.
- DELETE /v1/o11y/dashboards/{id}
- Deletes a v2-shape dashboard along with its tag relations. Locked dashboards are rejected. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboards/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes a saved view.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteDashboardView(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteDashboardViewWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes a saved view.
- DELETE /v1/o11y/dashboard_views/{id}
- Removes a saved view. Saved views are shared org-wide. Deleting a non-existent view refuses with the runtime's not-found. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteDashboardViewWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboard_views/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes a planned maintenance window, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteDowntimeScheduleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteDowntimeScheduleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes a planned maintenance window, by id.
- DELETE /v1/o11y/downtime_schedules/{id}
- Removes a planned maintenance window, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteDowntimeScheduleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/downtime_schedules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes an ingestion key, by id.
- parameter keyId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteIngestionKey(keyId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteIngestionKeyWithRequestBuilder(keyId: keyId, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes an ingestion key, by id.
- DELETE /v1/o11y/gateway/ingestion_keys/{keyId}
- Removes an ingestion key, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter keyId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteIngestionKeyWithRequestBuilder(keyId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/gateway/ingestion_keys/{keyId}"
let keyIdPreEscape = "\(APIHelper.mapValueToPathItem(keyId))"
let keyIdPostEscape = keyIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{keyId}", with: keyIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes an ingestion key limit, by limit id.
- parameter limitId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteIngestionKeyLimit(limitId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteIngestionKeyLimitWithRequestBuilder(limitId: limitId, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes an ingestion key limit, by limit id.
- DELETE /v1/o11y/gateway/ingestion_keys/limits/{limitId}
- Removes an ingestion key limit, by limit id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter limitId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteIngestionKeyLimitWithRequestBuilder(limitId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/gateway/ingestion_keys/limits/{limitId}"
let limitIdPreEscape = "\(APIHelper.mapValueToPathItem(limitId))"
let limitIdPostEscape = limitIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{limitId}", with: limitIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Hard-deletes a pricing rule by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteLLMPricingRule(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteLLMPricingRuleWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Hard-deletes a pricing rule by id.
- DELETE /v1/o11y/llm_pricing_rules/{id}
- Hard-deletes a pricing rule by id. If the rule was auto-synced, the next sync cycle recreates it. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteLLMPricingRuleWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/llm_pricing_rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Hard-deletes a score by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteLLMScore(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteLLMScoreWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Hard-deletes a score by id.
- DELETE /v1/o11y/llm/score/{id}
- Hard-deletes a score by id. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteLLMScoreWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/llm/score/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a volume-control rule by its id.
- parameter id: (path) ID is the rule&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteMetricReductionRuleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteMetricReductionRuleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a volume-control rule by its id.
- DELETE /v1/o11y/metric_reduction_rules/{id}
- Deletes a volume-control rule by its id.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the rule&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteMetricReductionRuleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/metric_reduction_rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes one saved explorer view by id.
- parameter viewId: (path) ViewID is the view&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySavedViewDeleteOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteO11yExplorerViewsByViewid(viewId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySavedViewDeleteOut {
return try await deleteO11yExplorerViewsByViewidWithRequestBuilder(viewId: viewId, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes one saved explorer view by id.
- DELETE /v1/o11y/explorer/views/{viewId}
- Deletes one saved explorer view by id. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter viewId: (path) ViewID is the view&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySavedViewDeleteOut>
*/
open class func deleteO11yExplorerViewsByViewidWithRequestBuilder(viewId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySavedViewDeleteOut> {
var localVariablePath = "/v1/o11y/explorer/views/{viewId}"
let viewIdPreEscape = "\(APIHelper.mapValueToPathItem(viewId))"
let viewIdPostEscape = viewIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{viewId}", with: viewIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySavedViewDeleteOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes one review queue and every item in it.
- parameter id: (path) ID is the annotation queue to act on, from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnQueueDeleted
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteO11yReviewsById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnQueueDeleted {
return try await deleteO11yReviewsByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes one review queue and every item in it.
- DELETE /v1/o11y/reviews/{id}
- Removes one review queue and every item in it. A queue id belonging to another org answers the same 404 an unknown id does, so a probe learns nothing about what exists.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue to act on, from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnQueueDeleted>
*/
open class func deleteO11yReviewsByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnQueueDeleted> {
var localVariablePath = "/v1/o11y/reviews/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnQueueDeleted>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes one Sentry project of the caller's org.
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteO11ySentinelProjectsById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteO11ySentinelProjectsByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes one Sentry project of the caller's org.
- DELETE /v1/o11y/sentinel/projects/{id}
- Deletes one Sentry project of the caller's org. Its DSN stops resolving immediately, so ingest for that id fails closed exactly as an unknown project does; retained events are not touched. Answers 204. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteO11ySentinelProjectsByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/sentinel/projects/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes the public-sharing config and disables public sharing of a dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deletePublicDashboard(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deletePublicDashboardWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes the public-sharing config and disables public sharing of a dashboard.
- DELETE /v1/o11y/dashboards/{id}/public
- Deletes the public-sharing config and disables public sharing of a dashboard. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deletePublicDashboardWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboards/{id}/public"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a custom role.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteRole(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteRoleWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a custom role.
- DELETE /v1/o11y/roles/{id}
- Deletes a custom role. A role that still has user or service-account assignees, or an auth-domain mapping, is refused; managed roles cannot be deleted.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteRoleWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/roles/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes a route policy, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteRoutePolicyByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteRoutePolicyByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes a route policy, by id.
- DELETE /v1/o11y/route_policies/{id}
- Removes a route policy, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteRoutePolicyByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/route_policies/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes an alert rule, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteRuleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteRuleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes an alert rule, by id.
- DELETE /v1/o11y/rules/{id}
- Removes an alert rule, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteRuleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a service account and revokes every key it holds.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteServiceAccount(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteServiceAccountWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a service account and revokes every key it holds.
- DELETE /v1/o11y/service_accounts/{id}
- Deletes a service account and revokes every key it holds.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteServiceAccountWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes a role from a service account.
- parameter id: (path)
- parameter rid: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteServiceAccountRole(id: String, rid: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteServiceAccountRoleWithRequestBuilder(id: id, rid: rid, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes a role from a service account.
- DELETE /v1/o11y/service_accounts/{id}/roles/{rid}
- Removes a role from a service account.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter rid: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteServiceAccountRoleWithRequestBuilder(id: String, rid: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/roles/{rid}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let ridPreEscape = "\(APIHelper.mapValueToPathItem(rid))"
let ridPostEscape = ridPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{rid}", with: ridPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Signs the calling session out, invalidating its tokens.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteSession(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteSessionWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Signs the calling session out, invalidating its tokens.
- DELETE /v1/o11y/sessions
- Signs the calling session out, invalidating its tokens. The access token on the call names the session to end.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteSessionWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/sessions"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes one mapper from a group.
- parameter groupId: (path)
- parameter mapperId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteSpanMapper(groupId: String, mapperId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteSpanMapperWithRequestBuilder(groupId: groupId, mapperId: mapperId, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes one mapper from a group.
- DELETE /v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}
- Deletes one mapper from a group. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter mapperId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteSpanMapperWithRequestBuilder(groupId: String, mapperId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let mapperIdPreEscape = "\(APIHelper.mapValueToPathItem(mapperId))"
let mapperIdPostEscape = mapperIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{mapperId}", with: mapperIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a mapping group and every mapper under it.
- parameter groupId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteSpanMapperGroup(groupId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteSpanMapperGroupWithRequestBuilder(groupId: groupId, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a mapping group and every mapper under it.
- DELETE /v1/o11y/span_mapper_groups/{groupId}
- Deletes a mapping group and every mapper under it. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteSpanMapperGroupWithRequestBuilder(groupId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Deletes a funnel.
- parameter funnelId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelDeleteOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteTraceFunnel(funnelId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelDeleteOut {
return try await deleteTraceFunnelWithRequestBuilder(funnelId: funnelId, apiConfiguration: apiConfiguration).execute().body
}
/**
Deletes a funnel.
- DELETE /v1/o11y/trace-funnels/{funnel_id}
- Deletes a funnel. The answer carries no data — the runtime acknowledges with the success envelope alone, which is what this Out says. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelDeleteOut>
*/
open class func deleteTraceFunnelWithRequestBuilder(funnelId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelDeleteOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelDeleteOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes one org member, by user id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteUser(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteUserWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes one org member, by user id.
- DELETE /v1/o11y/users/{id}
- Removes one org member, by user id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteUserWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/users/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes one org member, by user id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func deleteUserDeprecated(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await deleteUserDeprecatedWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes one org member, by user id.
- DELETE /v1/o11y/user/{id}
- Removes one org member, by user id. The same operation as deleteUser on the legacy singular path. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func deleteUserDeprecatedWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/user/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Tears down a connected account for the given provider, by id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func disconnectAccount(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await disconnectAccountWithRequestBuilder(cloudProvider: cloudProvider, id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Tears down a connected account for the given provider, by id.
- DELETE /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}
- Tears down a connected account for the given provider, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func disconnectAccountWithRequestBuilder(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Starts the forgotten-password flow: the named user is mailed a reset link.
- parameter o11yO11yForgotPasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func forgotPassword(o11yO11yForgotPasswordIn: O11yO11yForgotPasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await forgotPasswordWithRequestBuilder(o11yO11yForgotPasswordIn: o11yO11yForgotPasswordIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Starts the forgotten-password flow: the named user is mailed a reset link.
- POST /v1/o11y/factor_password/forgot
- Starts the forgotten-password flow: the named user is mailed a reset link. Unauthenticated by design, and deliberately quiet about whether the address exists.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yForgotPasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func forgotPasswordWithRequestBuilder(o11yO11yForgotPasswordIn: O11yO11yForgotPasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/factor_password/forgot"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yForgotPasswordIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one connected account for the given provider, by id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAccountOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getAccount(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAccountOut {
return try await getAccountWithRequestBuilder(cloudProvider: cloudProvider, id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one connected account for the given provider, by id.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}
- Returns one connected account for the given provider, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAccountOut>
*/
open class func getAccountWithRequestBuilder(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAccountOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAccountOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one service and its configuration for a connected account of the given provider, by account id and service id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter serviceId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getAccountService(cloudProvider: String, id: String, serviceId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceOut {
return try await getAccountServiceWithRequestBuilder(cloudProvider: cloudProvider, id: id, serviceId: serviceId, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one service and its configuration for a connected account of the given provider, by account id and service id.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services/{service_id}
- Returns one service and its configuration for a connected account of the given provider, by account id and service id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter serviceId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceOut>
*/
open class func getAccountServiceWithRequestBuilder(cloudProvider: String, id: String, serviceId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services/{service_id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let serviceIdPreEscape = "\(APIHelper.mapValueToPathItem(serviceId))"
let serviceIdPostEscape = serviceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{service_id}", with: serviceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the org's current alerts.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAlertsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getAlerts(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAlertsOut {
return try await getAlertsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the org's current alerts.
- GET /v1/o11y/alerts
- Returns the org's current alerts. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAlertsOut>
*/
open class func getAlertsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAlertsOut> {
let localVariablePath = "/v1/o11y/alerts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAlertsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's route policies.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoutePoliciesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getAllRoutePolicies(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoutePoliciesOut {
return try await getAllRoutePoliciesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's route policies.
- GET /v1/o11y/route_policies
- Lists the org's route policies. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoutePoliciesOut>
*/
open class func getAllRoutePoliciesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoutePoliciesOut> {
let localVariablePath = "/v1/o11y/route_policies"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoutePoliciesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one auth domain with its SSO configuration, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAuthDomainOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getAuthDomain(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAuthDomainOut {
return try await getAuthDomainWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one auth domain with its SSO configuration, by id.
- GET /v1/o11y/domains/{id}
- Returns one auth domain with its SSO configuration, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAuthDomainOut>
*/
open class func getAuthDomainWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAuthDomainOut> {
var localVariablePath = "/v1/o11y/domains/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAuthDomainOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one notification channel, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yChannelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getChannelByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yChannelOut {
return try await getChannelByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one notification channel, by id.
- GET /v1/o11y/channels/{id}
- Returns one notification channel, by id. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yChannelOut>
*/
open class func getChannelByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yChannelOut> {
var localVariablePath = "/v1/o11y/channels/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yChannelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the credentials the connecting agent needs to establish the cloud integration, for the given cloud provider.
- parameter cloudProvider: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yCredentialsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getConnectionCredentials(cloudProvider: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yCredentialsOut {
return try await getConnectionCredentialsWithRequestBuilder(cloudProvider: cloudProvider, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the credentials the connecting agent needs to establish the cloud integration, for the given cloud provider.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/credentials
- Returns the credentials the connecting agent needs to establish the cloud integration, for the given cloud provider. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yCredentialsOut>
*/
open class func getConnectionCredentialsWithRequestBuilder(cloudProvider: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yCredentialsOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/credentials"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yCredentialsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a v2-shape dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardOut {
return try await getDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a v2-shape dashboard.
- GET /v1/o11y/dashboards/{id}
- Returns a v2-shape dashboard. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardOut>
*/
open class func getDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one planned maintenance window, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDowntimeScheduleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDowntimeScheduleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDowntimeScheduleOut {
return try await getDowntimeScheduleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one planned maintenance window, by id.
- GET /v1/o11y/downtime_schedules/{id}
- Returns one planned maintenance window, by id. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDowntimeScheduleOut>
*/
open class func getDowntimeScheduleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDowntimeScheduleOut> {
var localVariablePath = "/v1/o11y/downtime_schedules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDowntimeScheduleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the errored traces through a step transition of a funnel described inline.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDraftFunnelErrorTraces(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getDraftFunnelErrorTracesWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the errored traces through a step transition of a funnel described inline.
- POST /v1/o11y/trace-funnels/analytics/error-traces
- Returns the errored traces through a step transition of a funnel described inline.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getDraftFunnelErrorTracesWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/error-traces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the conversion overview of a funnel described inline.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDraftFunnelOverview(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getDraftFunnelOverviewWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the conversion overview of a funnel described inline.
- POST /v1/o11y/trace-funnels/analytics/overview
- Returns the conversion overview of a funnel described inline.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getDraftFunnelOverviewWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/overview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the slowest traces through a step transition of a funnel described inline.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDraftFunnelSlowTraces(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getDraftFunnelSlowTracesWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the slowest traces through a step transition of a funnel described inline.
- POST /v1/o11y/trace-funnels/analytics/slow-traces
- Returns the slowest traces through a step transition of a funnel described inline.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getDraftFunnelSlowTracesWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/slow-traces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the per-step metrics of a funnel described inline.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDraftFunnelStepMetrics(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getDraftFunnelStepMetricsWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the per-step metrics of a funnel described inline.
- POST /v1/o11y/trace-funnels/analytics/steps
- Returns the per-step metrics of a funnel described inline.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getDraftFunnelStepMetricsWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/steps"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the conversion between two steps of a funnel described inline.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getDraftFunnelStepOverview(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getDraftFunnelStepOverviewWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the conversion between two steps of a funnel described inline.
- POST /v1/o11y/trace-funnels/analytics/steps/overview
- Returns the conversion between two steps of a funnel described inline.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getDraftFunnelStepOverviewWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/steps/overview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a trace's flamegraph: spans bucketed by depth level, each level ordered as it is drawn, around the selected span.
- parameter traceId: (path)
- parameter o11yO11yTraceFlamegraphIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTraceFlamegraphOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getFlamegraph(traceId: String, o11yO11yTraceFlamegraphIn: O11yO11yTraceFlamegraphIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTraceFlamegraphOut {
return try await getFlamegraphWithRequestBuilder(traceId: traceId, o11yO11yTraceFlamegraphIn: o11yO11yTraceFlamegraphIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a trace's flamegraph: spans bucketed by depth level, each level ordered as it is drawn, around the selected span.
- POST /v1/o11y/traces/{traceId}/flamegraph
- Returns a trace's flamegraph: spans bucketed by depth level, each level ordered as it is drawn, around the selected span. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (path)
- parameter o11yO11yTraceFlamegraphIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTraceFlamegraphOut>
*/
open class func getFlamegraphWithRequestBuilder(traceId: String, o11yO11yTraceFlamegraphIn: O11yO11yTraceFlamegraphIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTraceFlamegraphOut> {
var localVariablePath = "/v1/o11y/traces/{traceId}/flamegraph"
let traceIdPreEscape = "\(APIHelper.mapValueToPathItem(traceId))"
let traceIdPostEscape = traceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{traceId}", with: traceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yTraceFlamegraphIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTraceFlamegraphOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the deployment's host info from Zeus.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yGettableHostOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getHosts(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yGettableHostOut {
return try await getHostsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the deployment's host info from Zeus.
- GET /v1/o11y/zeus/hosts
- Returns the deployment's host info from Zeus. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yGettableHostOut>
*/
open class func getHostsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yGettableHostOut> {
let localVariablePath = "/v1/o11y/zeus/hosts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yGettableHostOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the workspace's ingestion keys, paginated.
- parameter page: (query) Page is the 1-based page number. (optional)
- parameter perPage: (query) PerPage is the page size. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIngestionKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getIngestionKeys(page: Int64? = nil, perPage: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIngestionKeysOut {
return try await getIngestionKeysWithRequestBuilder(page: page, perPage: perPage, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the workspace's ingestion keys, paginated.
- GET /v1/o11y/gateway/ingestion_keys
- Lists the workspace's ingestion keys, paginated. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter page: (query) Page is the 1-based page number. (optional)
- parameter perPage: (query) PerPage is the page size. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIngestionKeysOut>
*/
open class func getIngestionKeysWithRequestBuilder(page: Int64? = nil, perPage: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIngestionKeysOut> {
let localVariablePath = "/v1/o11y/gateway/ingestion_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"per_page": (wrappedValue: perPage?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIngestionKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one integration's full detail — its overview, configuration steps, collected data and assets — together with its installation record when the org has installed it.
- parameter integrationId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIntegrationOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getIntegration(integrationId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIntegrationOut {
return try await getIntegrationWithRequestBuilder(integrationId: integrationId, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one integration's full detail — its overview, configuration steps, collected data and assets — together with its installation record when the org has installed it.
- GET /v1/o11y/integrations/{integrationId}
- Returns one integration's full detail — its overview, configuration steps, collected data and assets — together with its installation record when the org has installed it. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter integrationId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIntegrationOut>
*/
open class func getIntegrationWithRequestBuilder(integrationId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIntegrationOut> {
var localVariablePath = "/v1/o11y/integrations/{integrationId}"
let integrationIdPreEscape = "\(APIHelper.mapValueToPathItem(integrationId))"
let integrationIdPostEscape = integrationIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{integrationId}", with: integrationIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIntegrationOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports whether the integration's logs and metrics have been received over the lookback window, so the console can show a live connection state.
- parameter integrationId: (path)
- parameter lookbackSeconds: (query) LookbackSeconds is how far back to look for received telemetry, in seconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yConnectionStatusOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getIntegrationConnectionStatus(integrationId: String, lookbackSeconds: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yConnectionStatusOut {
return try await getIntegrationConnectionStatusWithRequestBuilder(integrationId: integrationId, lookbackSeconds: lookbackSeconds, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports whether the integration's logs and metrics have been received over the lookback window, so the console can show a live connection state.
- GET /v1/o11y/integrations/{integrationId}/connection_status
- Reports whether the integration's logs and metrics have been received over the lookback window, so the console can show a live connection state. An integration that is not installed answers with an empty status rather than an error. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter integrationId: (path)
- parameter lookbackSeconds: (query) LookbackSeconds is how far back to look for received telemetry, in seconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yConnectionStatusOut>
*/
open class func getIntegrationConnectionStatusWithRequestBuilder(integrationId: String, lookbackSeconds: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yConnectionStatusOut> {
var localVariablePath = "/v1/o11y/integrations/{integrationId}/connection_status"
let integrationIdPreEscape = "\(APIHelper.mapValueToPathItem(integrationId))"
let integrationIdPostEscape = integrationIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{integrationId}", with: integrationIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"lookback_seconds": (wrappedValue: lookbackSeconds?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yConnectionStatusOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a single LLM pricing rule by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMPricingRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getLLMPricingRule(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMPricingRuleOut {
return try await getLLMPricingRuleWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a single LLM pricing rule by id.
- GET /v1/o11y/llm_pricing_rules/{id}
- Returns a single LLM pricing rule by id. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMPricingRuleOut>
*/
open class func getLLMPricingRuleWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMPricingRuleOut> {
var localVariablePath = "/v1/o11y/llm_pricing_rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMPricingRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a single score by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMScoreOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getLLMScore(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMScoreOut {
return try await getLLMScoreWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a single score by id.
- GET /v1/o11y/llm/score/{id}
- Returns a single score by id. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMScoreOut>
*/
open class func getLLMScoreWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMScoreOut> {
var localVariablePath = "/v1/o11y/llm/score/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMScoreOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the alert rules that reference a metric.
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricAlertsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricAlerts(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricAlertsOut {
return try await getMetricAlertsWithRequestBuilder(metricName: metricName, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the alert rules that reference a metric.
- GET /v1/o11y/metrics/alerts
- Lists the alert rules that reference a metric.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricAlertsOut>
*/
open class func getMetricAlertsWithRequestBuilder(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricAlertsOut> {
let localVariablePath = "/v1/o11y/metrics/alerts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricAlertsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one metric's attribute keys, each with its unique values and their count.
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes. Required.
- parameter start: (query) Start is the start of the window as a Unix timestamp in milliseconds. (optional)
- parameter end: (query) End is the end of the window as a Unix timestamp in milliseconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricAttributesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricAttributes(metricName: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricAttributesOut {
return try await getMetricAttributesWithRequestBuilder(metricName: metricName, start: start, end: end, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one metric's attribute keys, each with its unique values and their count.
- GET /v1/o11y/metrics/attributes
- Returns one metric's attribute keys, each with its unique values and their count.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes. Required.
- parameter start: (query) Start is the start of the window as a Unix timestamp in milliseconds. (optional)
- parameter end: (query) End is the end of the window as a Unix timestamp in milliseconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricAttributesOut>
*/
open class func getMetricAttributesWithRequestBuilder(metricName: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricAttributesOut> {
let localVariablePath = "/v1/o11y/metrics/attributes"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricAttributesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the dashboard panels that reference a metric.
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricDashboardsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricDashboardsV2(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricDashboardsOut {
return try await getMetricDashboardsV2WithRequestBuilder(metricName: metricName, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the dashboard panels that reference a metric.
- GET /v1/o11y/metrics/dashboards
- Lists the dashboard panels that reference a metric.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricDashboardsOut>
*/
open class func getMetricDashboardsV2WithRequestBuilder(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricDashboardsOut> {
let localVariablePath = "/v1/o11y/metrics/dashboards"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricDashboardsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one metric's headline numbers: data points, total and active time series, and when it was last received.
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricHighlightsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricHighlights(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricHighlightsOut {
return try await getMetricHighlightsWithRequestBuilder(metricName: metricName, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one metric's headline numbers: data points, total and active time series, and when it was last received.
- GET /v1/o11y/metrics/highlights
- Returns one metric's headline numbers: data points, total and active time series, and when it was last received.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricHighlightsOut>
*/
open class func getMetricHighlightsWithRequestBuilder(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricHighlightsOut> {
let localVariablePath = "/v1/o11y/metrics/highlights"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricHighlightsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one metric's metadata: description, type, unit, temporality and monotonicity.
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricMetadataOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricMetadata(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricMetadataOut {
return try await getMetricMetadataWithRequestBuilder(metricName: metricName, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one metric's metadata: description, type, unit, temporality and monotonicity.
- GET /v1/o11y/metrics/metadata
- Returns one metric's metadata: description, type, unit, temporality and monotonicity.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric&#39;s name; it may contain slashes, e.g. run.googleapis.com/request_latencies. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricMetadataOut>
*/
open class func getMetricMetadataWithRequestBuilder(metricName: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricMetadataOut> {
let localVariablePath = "/v1/o11y/metrics/metadata"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricMetadataOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one volume-control rule by its id.
- parameter id: (path) ID is the rule&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricReductionRuleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionRuleOut {
return try await getMetricReductionRuleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one volume-control rule by its id.
- GET /v1/o11y/metric_reduction_rules/{id}
- Returns one volume-control rule by its id.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the rule&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionRuleOut>
*/
open class func getMetricReductionRuleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionRuleOut> {
var localVariablePath = "/v1/o11y/metric_reduction_rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns total ingested vs retained series and samples and the estimated monthly savings across all volume-control rules.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricReductionRuleStats(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionStatsOut {
return try await getMetricReductionRuleStatsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns total ingested vs retained series and samples and the estimated monthly savings across all volume-control rules.
- GET /v1/o11y/metric_reduction_rules/stats
- Returns total ingested vs retained series and samples and the estimated monthly savings across all volume-control rules.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionStatsOut>
*/
open class func getMetricReductionRuleStatsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionStatsOut> {
let localVariablePath = "/v1/o11y/metric_reduction_rules/stats"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns ingested vs retained series over time across all volume-control rules, in hourly buckets, in the query-range time-series response shape.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionSeriesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricReductionRuleTimeseries(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionSeriesOut {
return try await getMetricReductionRuleTimeseriesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns ingested vs retained series over time across all volume-control rules, in hourly buckets, in the query-range time-series response shape.
- GET /v1/o11y/metric_reduction_rules/timeseries
- Returns ingested vs retained series over time across all volume-control rules, in hourly buckets, in the query-range time-series response shape.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionSeriesOut>
*/
open class func getMetricReductionRuleTimeseriesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionSeriesOut> {
let localVariablePath = "/v1/o11y/metric_reduction_rules/timeseries"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionSeriesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports whether any non-O11y metrics have been ingested — the lightweight check onboarding polls.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricOnboardingOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricsOnboardingStatus(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricOnboardingOut {
return try await getMetricsOnboardingStatusWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Reports whether any non-O11y metrics have been ingested — the lightweight check onboarding polls.
- GET /v1/o11y/metrics/onboarding
- Reports whether any non-O11y metrics have been ingested — the lightweight check onboarding polls.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricOnboardingOut>
*/
open class func getMetricsOnboardingStatusWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricOnboardingOut> {
let localVariablePath = "/v1/o11y/metrics/onboarding"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricOnboardingOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists metrics with their sample and time-series counts for a time range — the volume view of the metrics explorer, pageable and sortable.
- parameter o11yO11yMetricStatsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricsStats(o11yO11yMetricStatsIn: O11yO11yMetricStatsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricStatsOut {
return try await getMetricsStatsWithRequestBuilder(o11yO11yMetricStatsIn: o11yO11yMetricStatsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists metrics with their sample and time-series counts for a time range — the volume view of the metrics explorer, pageable and sortable.
- POST /v1/o11y/metrics/stats
- Lists metrics with their sample and time-series counts for a time range — the volume view of the metrics explorer, pageable and sortable.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yMetricStatsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricStatsOut>
*/
open class func getMetricsStatsWithRequestBuilder(o11yO11yMetricStatsIn: O11yO11yMetricStatsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricStatsOut> {
let localVariablePath = "/v1/o11y/metrics/stats"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yMetricStatsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the proportional distribution of metrics by sample count or time-series count, as the entries of a treemap.
- parameter o11yO11yMetricTreemapIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricTreemapOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMetricsTreemap(o11yO11yMetricTreemapIn: O11yO11yMetricTreemapIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricTreemapOut {
return try await getMetricsTreemapWithRequestBuilder(o11yO11yMetricTreemapIn: o11yO11yMetricTreemapIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the proportional distribution of metrics by sample count or time-series count, as the entries of a treemap.
- POST /v1/o11y/metrics/treemap
- Returns the proportional distribution of metrics by sample count or time-series count, as the entries of a treemap.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yMetricTreemapIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricTreemapOut>
*/
open class func getMetricsTreemapWithRequestBuilder(o11yO11yMetricTreemapIn: O11yO11yMetricTreemapIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricTreemapOut> {
let localVariablePath = "/v1/o11y/metrics/treemap"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yMetricTreemapIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricTreemapOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the caller's own organization.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOrganizationOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMyOrganization(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOrganizationOut {
return try await getMyOrganizationWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the caller's own organization.
- GET /v1/o11y/orgs/me
- Returns the caller's own organization. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOrganizationOut>
*/
open class func getMyOrganizationWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOrganizationOut> {
let localVariablePath = "/v1/o11y/orgs/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOrganizationOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the calling service account itself, with the roles it holds — the self-inspection read for a key-authenticated caller.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceAccountOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMyServiceAccount(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceAccountOut {
return try await getMyServiceAccountWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the calling service account itself, with the roles it holds — the self-inspection read for a key-authenticated caller.
- GET /v1/o11y/service_accounts/me
- Returns the calling service account itself, with the roles it holds — the self-inspection read for a key-authenticated caller.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceAccountOut>
*/
open class func getMyServiceAccountWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceAccountOut> {
let localVariablePath = "/v1/o11y/service_accounts/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceAccountOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the calling user together with every role they hold.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yUserWithRolesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMyUser(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yUserWithRolesOut {
return try await getMyUserWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the calling user together with every role they hold.
- GET /v1/o11y/users/me
- Returns the calling user together with every role they hold. Open to any authenticated caller.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yUserWithRolesOut>
*/
open class func getMyUserWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yUserWithRolesOut> {
let localVariablePath = "/v1/o11y/users/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yUserWithRolesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the calling user with their single legacy role.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDeprecatedUserOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getMyUserDeprecated(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDeprecatedUserOut {
return try await getMyUserDeprecatedWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the calling user with their single legacy role.
- GET /v1/o11y/user/me
- Returns the calling user with their single legacy role. Deprecated in favor of getMyUser. Open to any authenticated caller.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDeprecatedUserOut>
*/
open class func getMyUserDeprecatedWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDeprecatedUserOut> {
let localVariablePath = "/v1/o11y/user/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDeprecatedUserOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replay the alert records this process took
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yAlertsLast(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yAlertsLastWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Replay the alert records this process took
- GET /v1/o11y/alerts/last
- Answers the most recent Alertmanager deliveries THIS process received, as plain text — one greppable `ALERT-RECEIVED` line per alert, followed by the `ALERT-DELIVERED` / `ALERT-UNDELIVERED` outcome of carrying it out of the process, newest last, so piping to `tail` reads in arrival order. `(none)` when nothing has landed. Arrival and delivery are separate lines because they are separate facts that fail independently. Alertmanager can tell you it dispatched a notification, never that anything received it; this process taking the call says nothing about whether a human was reached. Reading only the first as if it were the second is how a pager stays silent for months behind a log where everything looks fine. The ring is PROCESS-LOCAL and bounded to the last 200 lines. Both are the point: a record that outlived the process that took the call would be a claim about something nobody observed, and an unbounded log is a memory leak with a nice name. A restart empties it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yAlertsLastWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/alerts/last"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the attributes usable as an aggregate target for the given telemetry and operator — what a filter builder offers after the aggregation is chosen.
- parameter dataSource: (query) DataSource is the telemetry the attributes come from — traces, logs, metrics or meter. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the attribute will be used under, e.g. count, avg, sum. The runtime requires it for non-metrics sources. (optional)
- parameter searchText: (query) SearchText narrows the attributes to those containing it. (optional)
- parameter limit: (query) Limit caps how many attributes come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAggregateAttributesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yAutocompleteAggregateAttributes(dataSource: String? = nil, aggregateOperator: String? = nil, searchText: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAggregateAttributesOut {
return try await getO11yAutocompleteAggregateAttributesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, searchText: searchText, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the attributes usable as an aggregate target for the given telemetry and operator — what a filter builder offers after the aggregation is chosen.
- GET /v1/o11y/autocomplete/aggregate_attributes
- Lists the attributes usable as an aggregate target for the given telemetry and operator — what a filter builder offers after the aggregation is chosen. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the attributes come from — traces, logs, metrics or meter. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the attribute will be used under, e.g. count, avg, sum. The runtime requires it for non-metrics sources. (optional)
- parameter searchText: (query) SearchText narrows the attributes to those containing it. (optional)
- parameter limit: (query) Limit caps how many attributes come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAggregateAttributesOut>
*/
open class func getO11yAutocompleteAggregateAttributesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, searchText: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAggregateAttributesOut> {
let localVariablePath = "/v1/o11y/autocomplete/aggregate_attributes"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAggregateAttributesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the attribute keys available for filtering the given telemetry, each with its data type and whether it is a materialized column.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — traces, logs, metrics or meter. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yAutocompleteAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAttributeKeysOut {
return try await getO11yAutocompleteAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the attribute keys available for filtering the given telemetry, each with its data type and whether it is a materialized column.
- GET /v1/o11y/autocomplete/attribute_keys
- Lists the attribute keys available for filtering the given telemetry, each with its data type and whether it is a materialized column. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — traces, logs, metrics or meter. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAttributeKeysOut>
*/
open class func getO11yAutocompleteAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAttributeKeysOut> {
let localVariablePath = "/v1/o11y/autocomplete/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one attribute key has taken — string, number and bool values in their own lists — for completing a filter.
- parameter dataSource: (query) DataSource is the telemetry the values come from — traces, logs or metrics. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yAutocompleteAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAttributeValuesOut {
return try await getO11yAutocompleteAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one attribute key has taken — string, number and bool values in their own lists — for completing a filter.
- GET /v1/o11y/autocomplete/attribute_values
- Lists the values one attribute key has taken — string, number and bool values in their own lists — for completing a filter. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — traces, logs or metrics. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAttributeValuesOut>
*/
open class func getO11yAutocompleteAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAttributeValuesOut> {
let localVariablePath = "/v1/o11y/autocomplete/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports how much of the Hanzo fleet is up — the current per-service inventory plus an up-versus-reporting trend across the window.
- parameter range: (query) Range is the trend window in seconds. Default 3600, capped at 604800 (7d). (optional)
- parameter stepSec: (query) StepSec is the bucket width in seconds, clamped to [30, 3600]. Absent picks ~60 buckets across the range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAvailabilityResponse
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yAvailability(range: Int64? = nil, stepSec: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAvailabilityResponse {
return try await getO11yAvailabilityWithRequestBuilder(range: range, stepSec: stepSec, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports how much of the Hanzo fleet is up — the current per-service inventory plus an up-versus-reporting trend across the window.
- GET /v1/o11y/availability
- Reports how much of the Hanzo fleet is up — the current per-service inventory plus an up-versus-reporting trend across the window. Both come from the fleet prober's own measurements: every service is asked its health URL every 30 seconds, so a service is listed as down because it did not answer, never because something failed to collect it. PLATFORM SUDO ONLY — this is the whole fleet's inventory, not tenant data, so every customer is 403. An unreachable telemetry store answers 503 rather than an empty trend, because a board of zeroes and a fleet that is down look identical.
- Bearer Token:
- type: http
- name: bearer
- parameter range: (query) Range is the trend window in seconds. Default 3600, capped at 604800 (7d). (optional)
- parameter stepSec: (query) StepSec is the bucket width in seconds, clamped to [30, 3600]. Absent picks ~60 buckets across the range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAvailabilityResponse>
*/
open class func getO11yAvailabilityWithRequestBuilder(range: Int64? = nil, stepSec: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAvailabilityResponse> {
let localVariablePath = "/v1/o11y/availability"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"range": (wrappedValue: range?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"stepSec": (wrappedValue: stepSec?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAvailabilityResponse>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes clusters report, for building cluster filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yClustersAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yClustersAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes clusters report, for building cluster filters.
- GET /v1/o11y/clusters/attribute_keys
- Lists the metric attribute keys Kubernetes clusters report, for building cluster filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yClustersAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/clusters/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one cluster attribute key has taken, for building cluster filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yClustersAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yClustersAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one cluster attribute key has taken, for building cluster filters.
- GET /v1/o11y/clusters/attribute_values
- Lists the values one cluster attribute key has taken, for building cluster filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yClustersAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/clusters/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Complete a Google sign-in
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yCompleteGoogle(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yCompleteGoogleWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Complete a Google sign-in
- GET /v1/o11y/complete/google
- The callback Google redirects a user back to after they approve the sign-in. It exchanges the authorization code, establishes the session and answers 303 to the console. The answer is a Location header and no body, which is why it is not a typed operation — declaring a JSON response for a redirect would publish a shape that does not exist and hide the header that is the entire point. UNAUTHENTICATED by necessity: it is how a caller GETS a principal, so requiring one would be circular. It is not an open endpoint — the code it carries is single-use and verified against the provider.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yCompleteGoogleWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/complete/google"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Complete a generic OIDC sign-in
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yCompleteOidc(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yCompleteOidcWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Complete a generic OIDC sign-in
- GET /v1/o11y/complete/oidc
- The callback any configured OIDC provider redirects back to. Same shape and same reasoning as the Google callback: the code is exchanged, the session is established, and the answer is a 303 to the console rather than a body. UNAUTHENTICATED by necessity — this is the act of obtaining a principal, and the provider's own code is what authenticates it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yCompleteOidcWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/complete/oidc"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes daemonsets report, for building daemonset filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yDaemonsetsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yDaemonsetsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes daemonsets report, for building daemonset filters.
- GET /v1/o11y/daemonsets/attribute_keys
- Lists the metric attribute keys Kubernetes daemonsets report, for building daemonset filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yDaemonsetsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/daemonsets/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one daemonset attribute key has taken, for building daemonset filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yDaemonsetsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yDaemonsetsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one daemonset attribute key has taken, for building daemonset filters.
- GET /v1/o11y/daemonsets/attribute_values
- Lists the values one daemonset attribute key has taken, for building daemonset filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yDaemonsetsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/daemonsets/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes deployments report, for building deployment filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yDeploymentsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yDeploymentsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes deployments report, for building deployment filters.
- GET /v1/o11y/deployments/attribute_keys
- Lists the metric attribute keys Kubernetes deployments report, for building deployment filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yDeploymentsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/deployments/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one deployment attribute key has taken, for building deployment filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yDeploymentsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yDeploymentsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one deployment attribute key has taken, for building deployment filters.
- GET /v1/o11y/deployments/attribute_values
- Lists the values one deployment attribute key has taken, for building deployment filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yDeploymentsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/deployments/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the storage disks the datastore reports, with their names and types.
- parameter apiConfiguration: The configuration for the http request.
- returns: [O11yO11yDisk]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yDisks(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [O11yO11yDisk] {
return try await getO11yDisksWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the storage disks the datastore reports, with their names and types.
- GET /v1/o11y/disks
- Lists the storage disks the datastore reports, with their names and types. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[O11yO11yDisk]>
*/
open class func getO11yDisksWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[O11yO11yDisk]> {
let localVariablePath = "/v1/o11y/disks"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[O11yO11yDisk]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one exception instance and the span it happened on, by its error id within a group at a timestamp.
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorWithSpan
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yErrorfromerrorid(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorWithSpan {
return try await getO11yErrorfromerroridWithRequestBuilder(timestamp: timestamp, groupID: groupID, errorID: errorID, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one exception instance and the span it happened on, by its error id within a group at a timestamp.
- GET /v1/o11y/errorFromErrorID
- Returns one exception instance and the span it happened on, by its error id within a group at a timestamp. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorWithSpan>
*/
open class func getO11yErrorfromerroridWithRequestBuilder(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorWithSpan> {
let localVariablePath = "/v1/o11y/errorFromErrorID"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"timestamp": (wrappedValue: timestamp.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"groupID": (wrappedValue: groupID.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"errorID": (wrappedValue: errorID?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorWithSpan>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the representative exception instance of a group at a timestamp, and the span it happened on.
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorWithSpan
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yErrorfromgroupid(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorWithSpan {
return try await getO11yErrorfromgroupidWithRequestBuilder(timestamp: timestamp, groupID: groupID, errorID: errorID, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the representative exception instance of a group at a timestamp, and the span it happened on.
- GET /v1/o11y/errorFromGroupID
- Returns the representative exception instance of a group at a timestamp, and the span it happened on. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorWithSpan>
*/
open class func getO11yErrorfromgroupidWithRequestBuilder(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorWithSpan> {
let localVariablePath = "/v1/o11y/errorFromGroupID"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"timestamp": (wrappedValue: timestamp.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"groupID": (wrappedValue: groupID.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"errorID": (wrappedValue: errorID?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorWithSpan>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's grouped error issues (by fingerprint) with status, level, counts and first/last-seen.
- parameter status: (query) Status narrows to one lifecycle state: unresolved, resolved or ignored. (optional)
- parameter level: (query) Level narrows to one severity, e.g. error, warning, info. (optional)
- parameter environment: (query) Environment narrows to one deployment environment. (optional)
- parameter serviceName: (query) ServiceName narrows to one reporting service. (optional)
- parameter query: (query) Query narrows to issues whose text contains it. (optional)
- parameter sort: (query) Sort orders the page, e.g. lastSeen, firstSeen, count. (optional)
- parameter offset: (query) Offset is how many issues to skip. Zero starts at the first. (optional)
- parameter limit: (query) Limit caps how many issues come back. Zero means the default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorIssuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yErrortrackingIssues(status: String? = nil, level: String? = nil, environment: String? = nil, serviceName: String? = nil, query: String? = nil, sort: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorIssuesOut {
return try await getO11yErrortrackingIssuesWithRequestBuilder(status: status, level: level, environment: environment, serviceName: serviceName, query: query, sort: sort, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's grouped error issues (by fingerprint) with status, level, counts and first/last-seen.
- GET /v1/o11y/errortracking/issues
- Lists the caller's org's grouped error issues (by fingerprint) with status, level, counts and first/last-seen. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter status: (query) Status narrows to one lifecycle state: unresolved, resolved or ignored. (optional)
- parameter level: (query) Level narrows to one severity, e.g. error, warning, info. (optional)
- parameter environment: (query) Environment narrows to one deployment environment. (optional)
- parameter serviceName: (query) ServiceName narrows to one reporting service. (optional)
- parameter query: (query) Query narrows to issues whose text contains it. (optional)
- parameter sort: (query) Sort orders the page, e.g. lastSeen, firstSeen, count. (optional)
- parameter offset: (query) Offset is how many issues to skip. Zero starts at the first. (optional)
- parameter limit: (query) Limit caps how many issues come back. Zero means the default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorIssuesOut>
*/
open class func getO11yErrortrackingIssuesWithRequestBuilder(status: String? = nil, level: String? = nil, environment: String? = nil, serviceName: String? = nil, query: String? = nil, sort: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorIssuesOut> {
let localVariablePath = "/v1/o11y/errortracking/issues"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"status": (wrappedValue: status?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"level": (wrappedValue: level?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"environment": (wrappedValue: environment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"serviceName": (wrappedValue: serviceName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"query": (wrappedValue: query?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sort": (wrappedValue: sort?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorIssuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one grouped issue with its latest occurrence sample.
- parameter id: (path) ID is the issue id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorGettableIssueOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yErrortrackingIssuesById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorGettableIssueOut {
return try await getO11yErrortrackingIssuesByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one grouped issue with its latest occurrence sample.
- GET /v1/o11y/errortracking/issues/{id}
- Returns one grouped issue with its latest occurrence sample. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the issue id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorGettableIssueOut>
*/
open class func getO11yErrortrackingIssuesByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorGettableIssueOut> {
var localVariablePath = "/v1/o11y/errortracking/issues/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorGettableIssueOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's saved explorer views, optionally narrowed to one source page, name or category.
- parameter sourcePage: (query) SourcePage narrows the views to one source page, e.g. traces, logs. (optional)
- parameter name: (query) Name narrows the views to one name. (optional)
- parameter category: (query) Category narrows the views to one category. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySavedViewListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yExplorerViews(sourcePage: String? = nil, name: String? = nil, category: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySavedViewListOut {
return try await getO11yExplorerViewsWithRequestBuilder(sourcePage: sourcePage, name: name, category: category, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's saved explorer views, optionally narrowed to one source page, name or category.
- GET /v1/o11y/explorer/views
- Lists the caller's org's saved explorer views, optionally narrowed to one source page, name or category. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter sourcePage: (query) SourcePage narrows the views to one source page, e.g. traces, logs. (optional)
- parameter name: (query) Name narrows the views to one name. (optional)
- parameter category: (query) Category narrows the views to one category. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySavedViewListOut>
*/
open class func getO11yExplorerViewsWithRequestBuilder(sourcePage: String? = nil, name: String? = nil, category: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySavedViewListOut> {
let localVariablePath = "/v1/o11y/explorer/views"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"sourcePage": (wrappedValue: sourcePage?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"category": (wrappedValue: category?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySavedViewListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one saved explorer view by id.
- parameter viewId: (path) ViewID is the view&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySavedViewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yExplorerViewsByViewid(viewId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySavedViewOut {
return try await getO11yExplorerViewsByViewidWithRequestBuilder(viewId: viewId, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one saved explorer view by id.
- GET /v1/o11y/explorer/views/{viewId}
- Returns one saved explorer view by id. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter viewId: (path) ViewID is the view&#39;s id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySavedViewOut>
*/
open class func getO11yExplorerViewsByViewidWithRequestBuilder(viewId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySavedViewOut> {
var localVariablePath = "/v1/o11y/explorer/views/{viewId}"
let viewIdPreEscape = "\(APIHelper.mapValueToPathItem(viewId))"
let viewIdPostEscape = viewIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{viewId}", with: viewIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySavedViewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the supported feature flags and their resolved values for the caller's org.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFeaturesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yFeatures(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFeaturesOut {
return try await getO11yFeaturesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the supported feature flags and their resolved values for the caller's org.
- GET /v1/o11y/features
- Returns the supported feature flags and their resolved values for the caller's org. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFeaturesOut>
*/
open class func getO11yFeaturesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFeaturesOut> {
let localVariablePath = "/v1/o11y/features"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFeaturesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the telemetry field keys matching the selector — the signal's fields grouped by name, and whether the catalog is complete.
- parameter signal: (query) Signal is the telemetry to read the fields of — traces, logs or metrics. (optional)
- parameter source: (query) Source narrows the fields to one source within the signal. (optional)
- parameter limit: (query) Limit caps how many keys come back. (optional)
- parameter startUnixMilli: (query) StartUnixMilli is the window start as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter fieldContext: (query) FieldContext narrows the keys to one context — resource, scope, attribute, span, log or metric. (optional)
- parameter fieldDataType: (query) FieldDataType narrows the keys to one data type. (optional)
- parameter metricName: (query) MetricName narrows the keys to those on one metric. (optional)
- parameter metricNamespace: (query) MetricNamespace narrows the keys to one metric namespace. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yFieldsKeys(signal: String? = nil, source: String? = nil, limit: Int64? = nil, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, fieldContext: String? = nil, fieldDataType: String? = nil, metricName: String? = nil, metricNamespace: String? = nil, searchText: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldKeysOut {
return try await getO11yFieldsKeysWithRequestBuilder(signal: signal, source: source, limit: limit, startUnixMilli: startUnixMilli, endUnixMilli: endUnixMilli, fieldContext: fieldContext, fieldDataType: fieldDataType, metricName: metricName, metricNamespace: metricNamespace, searchText: searchText, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the telemetry field keys matching the selector — the signal's fields grouped by name, and whether the catalog is complete.
- GET /v1/o11y/fields/keys
- Returns the telemetry field keys matching the selector — the signal's fields grouped by name, and whether the catalog is complete. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter signal: (query) Signal is the telemetry to read the fields of — traces, logs or metrics. (optional)
- parameter source: (query) Source narrows the fields to one source within the signal. (optional)
- parameter limit: (query) Limit caps how many keys come back. (optional)
- parameter startUnixMilli: (query) StartUnixMilli is the window start as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter fieldContext: (query) FieldContext narrows the keys to one context — resource, scope, attribute, span, log or metric. (optional)
- parameter fieldDataType: (query) FieldDataType narrows the keys to one data type. (optional)
- parameter metricName: (query) MetricName narrows the keys to those on one metric. (optional)
- parameter metricNamespace: (query) MetricNamespace narrows the keys to one metric namespace. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldKeysOut>
*/
open class func getO11yFieldsKeysWithRequestBuilder(signal: String? = nil, source: String? = nil, limit: Int64? = nil, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, fieldContext: String? = nil, fieldDataType: String? = nil, metricName: String? = nil, metricNamespace: String? = nil, searchText: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldKeysOut> {
let localVariablePath = "/v1/o11y/fields/keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"signal": (wrappedValue: signal?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"source": (wrappedValue: source?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"startUnixMilli": (wrappedValue: startUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"endUnixMilli": (wrappedValue: endUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"fieldContext": (wrappedValue: fieldContext?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"fieldDataType": (wrappedValue: fieldDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"metricName": (wrappedValue: metricName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"metricNamespace": (wrappedValue: metricNamespace?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the values one telemetry field has taken — string, bool, number and related values — and whether the value list is complete.
- parameter signal: (query) Signal is the telemetry to read the field of — traces, logs or metrics. (optional)
- parameter source: (query) Source narrows the field to one source within the signal. (optional)
- parameter limit: (query) Limit caps how many values come back. (optional)
- parameter startUnixMilli: (query) StartUnixMilli is the window start as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter fieldContext: (query) FieldContext narrows the field to one context. (optional)
- parameter fieldDataType: (query) FieldDataType narrows the field to one data type. (optional)
- parameter metricName: (query) MetricName narrows the field to one metric. (optional)
- parameter metricNamespace: (query) MetricNamespace narrows the field to one metric namespace. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter name: (query) Name is the field whose values to read. (optional)
- parameter existingQuery: (query) ExistingQuery is the query the field appears in, so related values can be suggested for it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yFieldsValues(signal: String? = nil, source: String? = nil, limit: Int64? = nil, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, fieldContext: String? = nil, fieldDataType: String? = nil, metricName: String? = nil, metricNamespace: String? = nil, searchText: String? = nil, name: String? = nil, existingQuery: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldValuesOut {
return try await getO11yFieldsValuesWithRequestBuilder(signal: signal, source: source, limit: limit, startUnixMilli: startUnixMilli, endUnixMilli: endUnixMilli, fieldContext: fieldContext, fieldDataType: fieldDataType, metricName: metricName, metricNamespace: metricNamespace, searchText: searchText, name: name, existingQuery: existingQuery, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the values one telemetry field has taken — string, bool, number and related values — and whether the value list is complete.
- GET /v1/o11y/fields/values
- Returns the values one telemetry field has taken — string, bool, number and related values — and whether the value list is complete. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter signal: (query) Signal is the telemetry to read the field of — traces, logs or metrics. (optional)
- parameter source: (query) Source narrows the field to one source within the signal. (optional)
- parameter limit: (query) Limit caps how many values come back. (optional)
- parameter startUnixMilli: (query) StartUnixMilli is the window start as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end as a unix millisecond epoch. Zero reads as unset. (optional)
- parameter fieldContext: (query) FieldContext narrows the field to one context. (optional)
- parameter fieldDataType: (query) FieldDataType narrows the field to one data type. (optional)
- parameter metricName: (query) MetricName narrows the field to one metric. (optional)
- parameter metricNamespace: (query) MetricNamespace narrows the field to one metric namespace. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter name: (query) Name is the field whose values to read. (optional)
- parameter existingQuery: (query) ExistingQuery is the query the field appears in, so related values can be suggested for it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldValuesOut>
*/
open class func getO11yFieldsValuesWithRequestBuilder(signal: String? = nil, source: String? = nil, limit: Int64? = nil, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, fieldContext: String? = nil, fieldDataType: String? = nil, metricName: String? = nil, metricNamespace: String? = nil, searchText: String? = nil, name: String? = nil, existingQuery: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldValuesOut> {
let localVariablePath = "/v1/o11y/fields/values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"signal": (wrappedValue: signal?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"source": (wrappedValue: source?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"startUnixMilli": (wrappedValue: startUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"endUnixMilli": (wrappedValue: endUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"fieldContext": (wrappedValue: fieldContext?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"fieldDataType": (wrappedValue: fieldDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"metricName": (wrappedValue: metricName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"metricNamespace": (wrappedValue: metricNamespace?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"existingQuery": (wrappedValue: existingQuery?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Suggests attribute keys and example filter queries for the query builder, seeded by what the org's own telemetry carries.
- parameter dataSource: (query) DataSource is the signal suggestions are drawn from; only logs is supported today. Required.
- parameter searchText: (query) SearchText narrows attribute suggestions to keys containing it. (optional)
- parameter existingFilter: (query) ExistingFilter is the current filter set, JSON base64url-encoded, so example queries build on it rather than repeat it. (optional)
- parameter attributesLimit: (query) AttributesLimit caps how many attribute keys come back. (optional)
- parameter examplesLimit: (query) ExamplesLimit caps how many example queries come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFilterSuggestionsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yFilterSuggestions(dataSource: String, searchText: String? = nil, existingFilter: String? = nil, attributesLimit: Int64? = nil, examplesLimit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFilterSuggestionsOut {
return try await getO11yFilterSuggestionsWithRequestBuilder(dataSource: dataSource, searchText: searchText, existingFilter: existingFilter, attributesLimit: attributesLimit, examplesLimit: examplesLimit, apiConfiguration: apiConfiguration).execute().body
}
/**
Suggests attribute keys and example filter queries for the query builder, seeded by what the org's own telemetry carries.
- GET /v1/o11y/filter_suggestions
- Suggests attribute keys and example filter queries for the query builder, seeded by what the org's own telemetry carries. Only the logs data source is supported today. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the signal suggestions are drawn from; only logs is supported today. Required.
- parameter searchText: (query) SearchText narrows attribute suggestions to keys containing it. (optional)
- parameter existingFilter: (query) ExistingFilter is the current filter set, JSON base64url-encoded, so example queries build on it rather than repeat it. (optional)
- parameter attributesLimit: (query) AttributesLimit caps how many attribute keys come back. (optional)
- parameter examplesLimit: (query) ExamplesLimit caps how many example queries come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFilterSuggestionsOut>
*/
open class func getO11yFilterSuggestionsWithRequestBuilder(dataSource: String, searchText: String? = nil, existingFilter: String? = nil, attributesLimit: Int64? = nil, examplesLimit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFilterSuggestionsOut> {
let localVariablePath = "/v1/o11y/filter_suggestions"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"existingFilter": (wrappedValue: existingFilter?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributesLimit": (wrappedValue: attributesLimit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"examplesLimit": (wrappedValue: examplesLimit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFilterSuggestionsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the deployment's global configuration: its public endpoints and which identity providers are enabled.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yGlobalConfigOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yGlobalConfig(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yGlobalConfigOut {
return try await getO11yGlobalConfigWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the deployment's global configuration: its public endpoints and which identity providers are enabled.
- GET /v1/o11y/global/config
- Returns the deployment's global configuration: its public endpoints and which identity providers are enabled. Open by design — the sign-in page reads it before anyone is signed in. Open by design; the runtime's own gate is OpenAccess.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yGlobalConfigOut>
*/
open class func getO11yGlobalConfigWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yGlobalConfigOut> {
let localVariablePath = "/v1/o11y/global/config"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yGlobalConfigOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports service health.
- parameter live: (query) Live also checks the datastore connection; an unreachable store refuses with 503. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yHealthOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yHealth(live: Bool? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yHealthOut {
return try await getO11yHealthWithRequestBuilder(live: live, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports service health.
- GET /v1/o11y/health
- Reports service health. With live set, the datastore connection is checked too and an unhealthy store refuses with 503. Open by design; the runtime's own gate is OpenAccess.
- Bearer Token:
- type: http
- name: bearer
- parameter live: (query) Live also checks the datastore connection; an unreachable store refuses with 503. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yHealthOut>
*/
open class func getO11yHealthWithRequestBuilder(live: Bool? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yHealthOut> {
let localVariablePath = "/v1/o11y/health"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"live": (wrappedValue: live?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yHealthOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Health of the observability runtime's services
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yHealthz(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yHealthzWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Health of the observability runtime's services
- GET /v1/o11y/healthz
- Reports whether every service in the runtime's registry is healthy, and names them grouped by state — so a failure says WHICH component is down, not merely that something is. An unhealthy registry answers 503, not a 200 with a false flag inside, so a plain status check cannot read a sick runtime as well. UNAUTHENTICATED by design, like the other two probes: it carries no tenant data and is reached by k8s and by external checks that hold no principal.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yHealthzWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/healthz"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys hosts report, for building host filters — each with its data type and whether it is a materialized column.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yHostsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yHostsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys hosts report, for building host filters — each with its data type and whether it is a materialized column.
- GET /v1/o11y/hosts/attribute_keys
- Lists the metric attribute keys hosts report, for building host filters — each with its data type and whether it is a materialized column.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yHostsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/hosts/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one host attribute key has taken, for building host filters — string, number and bool values in their own lists.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yHostsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yHostsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one host attribute key has taken, for building host filters — string, number and bool values in their own lists.
- GET /v1/o11y/hosts/attribute_values
- Lists the values one host attribute key has taken, for building host filters — string, number and bool values in their own lists.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yHostsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/hosts/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports whether the metrics and attributes an infra-monitoring section needs are being received — for each collector receiver or processor involved, what is present and what is missing, with a user-facing message and a docs link per missing piece.
- parameter type: (query) Type is the section to check — hosts, processes, pods, nodes, deployments, daemonsets, statefulsets, jobs, namespaces, clusters or volumes. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraChecksOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yInfraMonitoringChecks(type: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraChecksOut {
return try await getO11yInfraMonitoringChecksWithRequestBuilder(type: type, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports whether the metrics and attributes an infra-monitoring section needs are being received — for each collector receiver or processor involved, what is present and what is missing, with a user-facing message and a docs link per missing piece.
- GET /v1/o11y/infra_monitoring/checks
- Reports whether the metrics and attributes an infra-monitoring section needs are being received — for each collector receiver or processor involved, what is present and what is missing, with a user-facing message and a docs link per missing piece. Ready is true only when nothing is missing.
- Bearer Token:
- type: http
- name: bearer
- parameter type: (query) Type is the section to check — hosts, processes, pods, nodes, deployments, daemonsets, statefulsets, jobs, namespaces, clusters or volumes. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraChecksOut>
*/
open class func getO11yInfraMonitoringChecksWithRequestBuilder(type: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraChecksOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/checks"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"type": (wrappedValue: type.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraChecksOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports how far Kubernetes infra onboarding has progressed: which metric families have arrived and, per pod, which required metadata labels are present.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOnboardingOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yInfraOnboardingK8sStatus(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOnboardingOut {
return try await getO11yInfraOnboardingK8sStatusWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Reports how far Kubernetes infra onboarding has progressed: which metric families have arrived and, per pod, which required metadata labels are present.
- GET /v1/o11y/infra_onboarding/k8s/status
- Reports how far Kubernetes infra onboarding has progressed: which metric families have arrived and, per pod, which required metadata labels are present. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOnboardingOut>
*/
open class func getO11yInfraOnboardingK8sStatusWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOnboardingOut> {
let localVariablePath = "/v1/o11y/infra_onboarding/k8s/status"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOnboardingOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes jobs report, for building job filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yJobsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yJobsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes jobs report, for building job filters.
- GET /v1/o11y/jobs/attribute_keys
- Lists the metric attribute keys Kubernetes jobs report, for building job filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yJobsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/jobs/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one job attribute key has taken, for building job filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yJobsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yJobsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one job attribute key has taken, for building job filters.
- GET /v1/o11y/jobs/attribute_values
- Lists the values one job attribute key has taken, for building job filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yJobsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/jobs/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's licenses.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLicensesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLicenses(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLicensesOut {
return try await getO11yLicensesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's licenses.
- GET /v1/o11y/licenses
- Lists the org's licenses. This build has no enterprise edition, so the list is intentionally empty. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLicensesOut>
*/
open class func getO11yLicensesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLicensesOut> {
let localVariablePath = "/v1/o11y/licenses"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLicensesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Activates the enterprise license.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLicenseActiveOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLicensesActive(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLicenseActiveOut {
return try await getO11yLicensesActiveWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Activates the enterprise license.
- GET /v1/o11y/licenses/active
- Activates the enterprise license. This build has no enterprise edition, so the licensing provider refuses it as unsupported. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLicenseActiveOut>
*/
open class func getO11yLicensesActiveWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLicenseActiveOut> {
let localVariablePath = "/v1/o11y/licenses/active"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLicenseActiveOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Liveness of the observability process
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLivez(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yLivezWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Liveness of the observability process
- GET /v1/o11y/livez
- Answers 200 unconditionally while the process is running, and asserts NOTHING about the telemetry stores behind it. That is what makes it a liveness probe: a container that answers this is worth leaving alive, and restarting on a store outage would only remove the thing reporting the outage. UNAUTHENTICATED by design, and one of exactly three /v1/o11y paths that are. It carries no tenant data, and gating it would break the k8s probes and the external health checks without protecting anything. Use the health probe, not this one, to ask whether the runtime can actually serve.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yLivezWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/livez"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Report why an observability sign-in did not complete
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogin(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yLoginWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Report why an observability sign-in did not complete
- GET /v1/o11y/login
- Where a failed sign-in callback lands. The module builds that redirect with a path and no host, so it can only be same-origin, and its assumption is that the console lives beside the API. Here the console is a separate host, so this answers as the API it belongs to rather than redirecting onward — a hostname baked into a shared surface is how one brand's identity ends up in front of another brand's customer. 401 with the provider's own reason, carried from the query the module already populated. Unauthenticated by necessity: it exists precisely for the case where no principal was established.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yLoginWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/login"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the most recent log records in the query window, newest first — each record an open object carrying its nanosecond timestamp and whatever fields the record was ingested with.
- parameter limit: (query) Limit caps how many records come back. Zero means the default of 100. (optional)
- parameter timestampStart: (query) TimestampStart is the start of the window as a nanosecond epoch. Zero means fifteen minutes before the end. (optional)
- parameter timestampEnd: (query) TimestampEnd is the end of the window as a nanosecond epoch. Zero means now. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogRecordsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogs(limit: Int64? = nil, timestampStart: Int64? = nil, timestampEnd: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogRecordsOut {
return try await getO11yLogsWithRequestBuilder(limit: limit, timestampStart: timestampStart, timestampEnd: timestampEnd, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the most recent log records in the query window, newest first — each record an open object carrying its nanosecond timestamp and whatever fields the record was ingested with.
- GET /v1/o11y/logs
- Returns the most recent log records in the query window, newest first — each record an open object carrying its nanosecond timestamp and whatever fields the record was ingested with. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter limit: (query) Limit caps how many records come back. Zero means the default of 100. (optional)
- parameter timestampStart: (query) TimestampStart is the start of the window as a nanosecond epoch. Zero means fifteen minutes before the end. (optional)
- parameter timestampEnd: (query) TimestampEnd is the end of the window as a nanosecond epoch. Zero means now. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogRecordsOut>
*/
open class func getO11yLogsWithRequestBuilder(limit: Int64? = nil, timestampStart: Int64? = nil, timestampEnd: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogRecordsOut> {
let localVariablePath = "/v1/o11y/logs"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"timestampStart": (wrappedValue: timestampStart?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"timestampEnd": (wrappedValue: timestampEnd?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogRecordsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the logs aggregate buckets for the query window.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogAggregateOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogsAggregate(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogAggregateOut {
return try await getO11yLogsAggregateWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the logs aggregate buckets for the query window.
- GET /v1/o11y/logs/aggregate
- Returns the logs aggregate buckets for the query window. The runtime currently answers the empty set; the shape is the contract. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogAggregateOut>
*/
open class func getO11yLogsAggregateWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogAggregateOut> {
let localVariablePath = "/v1/o11y/logs/aggregate"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogAggregateOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the log field catalog: the fields already selected as indexed columns, and the interesting ones seen in the data that could be.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldCatalogOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogsFields(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldCatalogOut {
return try await getO11yLogsFieldsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the log field catalog: the fields already selected as indexed columns, and the interesting ones seen in the data that could be.
- GET /v1/o11y/logs/fields
- Returns the log field catalog: the fields already selected as indexed columns, and the interesting ones seen in the data that could be. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldCatalogOut>
*/
open class func getO11yLogsFieldsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldCatalogOut> {
let localVariablePath = "/v1/o11y/logs/fields"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldCatalogOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Follow log records as they arrive
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogsLivetail(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yLogsLivetailWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Follow log records as they arrive
- GET /v1/o11y/logs/livetail
- Streams matching log records continuously instead of answering once, so a console tail shows lines as they land rather than at the end of a window. It is a STREAM, which is why it is not a typed operation: there is no single complete value to name, and a generated client that waited for one would hang on the first tail. Read the bounded window with the log read instead when you want an answer rather than a feed. A validated, org-scoped principal is required and the feed carries that principal's own tenant only.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yLogsLivetailWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/logs/livetail"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the caller's org's log parsing pipelines at one config version — \"latest\" for the newest — along with that version's deployment record and the recent version history.
- parameter version: (path) Version is the config version to read — a positive number, or \&quot;latest\&quot;.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogPipelinesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogsPipelinesByVersion(version: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogPipelinesOut {
return try await getO11yLogsPipelinesByVersionWithRequestBuilder(version: version, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the caller's org's log parsing pipelines at one config version — \"latest\" for the newest — along with that version's deployment record and the recent version history.
- GET /v1/o11y/logs/pipelines/{version}
- Returns the caller's org's log parsing pipelines at one config version — \"latest\" for the newest — along with that version's deployment record and the recent version history. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter version: (path) Version is the config version to read — a positive number, or \&quot;latest\&quot;.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogPipelinesOut>
*/
open class func getO11yLogsPipelinesByVersionWithRequestBuilder(version: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogPipelinesOut> {
var localVariablePath = "/v1/o11y/logs/pipelines/{version}"
let versionPreEscape = "\(APIHelper.mapValueToPathItem(version))"
let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogPipelinesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the log body paths already promoted or indexed, with the indexes each carries.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogPromotedOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yLogsPromotePaths(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogPromotedOut {
return try await getO11yLogsPromotePathsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the log body paths already promoted or indexed, with the indexes each carries.
- GET /v1/o11y/logs/promote_paths
- Lists the log body paths already promoted or indexed, with the indexes each carries. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogPromotedOut>
*/
open class func getO11yLogsPromotePathsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogPromotedOut> {
let localVariablePath = "/v1/o11y/logs/promote_paths"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogPromotedOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Serves the OLDER /metric/metric_metadata route.
- parameter metricName: (query) MetricName is the metric to read. (optional)
- parameter serviceName: (query) ServiceName scopes the metadata to the metric as one service reports it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricMetadataOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yMetricMetricMetadata(metricName: String? = nil, serviceName: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricMetadataOut {
return try await getO11yMetricMetricMetadataWithRequestBuilder(metricName: metricName, serviceName: serviceName, apiConfiguration: apiConfiguration).execute().body
}
/**
Serves the OLDER /metric/metric_metadata route.
- GET /v1/o11y/metric/metric_metadata
- Serves the OLDER /metric/metric_metadata route. It is NOT the same op as metrics.go's metricMetadata (/metrics/metadata): different path, different input (this one also scopes by service). Two slices named one Go function for two routes; the route is the identity, so the name follows it. Renamed rather than merged — collapsing them would silently drop the service scope this one accepts. It returns one metric's metadata — its type, unit, description, temporality, monotonicity and histogram buckets — optionally scoped to the metric as one service reports it. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter metricName: (query) MetricName is the metric to read. (optional)
- parameter serviceName: (query) ServiceName scopes the metadata to the metric as one service reports it. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricMetadataOut>
*/
open class func getO11yMetricMetricMetadataWithRequestBuilder(metricName: String? = nil, serviceName: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricMetadataOut> {
let localVariablePath = "/v1/o11y/metric/metric_metadata"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"metricName": (wrappedValue: metricName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"serviceName": (wrappedValue: serviceName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricMetadataOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes namespaces report, for building namespace filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yNamespacesAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yNamespacesAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes namespaces report, for building namespace filters.
- GET /v1/o11y/namespaces/attribute_keys
- Lists the metric attribute keys Kubernetes namespaces report, for building namespace filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yNamespacesAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/namespaces/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one namespace attribute key has taken, for building namespace filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yNamespacesAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yNamespacesAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one namespace attribute key has taken, for building namespace filters.
- GET /v1/o11y/namespaces/attribute_values
- Lists the values one namespace attribute key has taken, for building namespace filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yNamespacesAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/namespaces/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the ids of the exception instances immediately after and before a given one within its group — the paging cursor the error detail view walks.
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yNextPrevErrorIDs
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yNextpreverrorids(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yNextPrevErrorIDs {
return try await getO11yNextpreverroridsWithRequestBuilder(timestamp: timestamp, groupID: groupID, errorID: errorID, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the ids of the exception instances immediately after and before a given one within its group — the paging cursor the error detail view walks.
- GET /v1/o11y/nextPrevErrorIDs
- Returns the ids of the exception instances immediately after and before a given one within its group — the paging cursor the error detail view walks. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter timestamp: (query) Timestamp is the instance&#39;s time as a nanosecond epoch spelled as a string. Required.
- parameter groupID: (query) GroupID is the exception group the instance belongs to. Required.
- parameter errorID: (query) ErrorID is the exception instance id. Required by errorFromErrorID and nextPrevErrorIDs; unused by errorFromGroupID. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yNextPrevErrorIDs>
*/
open class func getO11yNextpreverroridsWithRequestBuilder(timestamp: String, groupID: String, errorID: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yNextPrevErrorIDs> {
let localVariablePath = "/v1/o11y/nextPrevErrorIDs"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"timestamp": (wrappedValue: timestamp.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"groupID": (wrappedValue: groupID.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"errorID": (wrappedValue: errorID?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yNextPrevErrorIDs>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes nodes report, for building node filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yNodesAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yNodesAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes nodes report, for building node filters.
- GET /v1/o11y/nodes/attribute_keys
- Lists the metric attribute keys Kubernetes nodes report, for building node filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yNodesAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/nodes/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one node attribute key has taken, for building node filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yNodesAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yNodesAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one node attribute key has taken, for building node filters.
- GET /v1/o11y/nodes/attribute_values
- Lists the values one node attribute key has taken, for building node filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yNodesAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/nodes/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes pods report, for building pod filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yPodsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yPodsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes pods report, for building pod filters.
- GET /v1/o11y/pods/attribute_keys
- Lists the metric attribute keys Kubernetes pods report, for building pod filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yPodsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/pods/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one pod attribute key has taken, for building pod filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yPodsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yPodsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one pod attribute key has taken, for building pod filters.
- GET /v1/o11y/pods/attribute_values
- Lists the values one pod attribute key has taken, for building pod filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yPodsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/pods/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys processes report, for building process filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yProcessesAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yProcessesAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys processes report, for building process filters.
- GET /v1/o11y/processes/attribute_keys
- Lists the metric attribute keys processes report, for building process filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yProcessesAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/processes/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one process attribute key has taken, for building process filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yProcessesAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yProcessesAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one process attribute key has taken, for building process filters.
- GET /v1/o11y/processes/attribute_values
- Lists the values one process attribute key has taken, for building process filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yProcessesAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/processes/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one product's RED series — request rate, errors, p50 and p95 latency — for the caller's org, plus that org's LLM usage rollup over the same window.
- parameter product: (query) Product is the console product slug to read, e.g. \&quot;kms\&quot;. Required. (optional)
- parameter range: (query) Range is the window in seconds. Default 3600, capped at 604800 (7d). (optional)
- parameter stepSec: (query) StepSec is the bucket width in seconds, clamped to [30, 3600]. Absent picks ~60 buckets across the range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yMetricsResponse
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yProductMetrics(product: String? = nil, range: Int64? = nil, stepSec: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yMetricsResponse {
return try await getO11yProductMetricsWithRequestBuilder(product: product, range: range, stepSec: stepSec, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one product's RED series — request rate, errors, p50 and p95 latency — for the caller's org, plus that org's LLM usage rollup over the same window.
- GET /v1/o11y/product/metrics
- Returns one product's RED series — request rate, errors, p50 and p95 latency — for the caller's org, plus that org's LLM usage rollup over the same window. The series come from org-tagged request spans, so a tenant only ever aggregates its own traffic; a validated platform SuperAdmin sees the whole product's RED, while usage stays the caller's own org either way. A well-formed product with no backing workload answers empty series; a malformed slug is a 400.
- Bearer Token:
- type: http
- name: bearer
- parameter product: (query) Product is the console product slug to read, e.g. \&quot;kms\&quot;. Required. (optional)
- parameter range: (query) Range is the window in seconds. Default 3600, capped at 604800 (7d). (optional)
- parameter stepSec: (query) StepSec is the bucket width in seconds, clamped to [30, 3600]. Absent picks ~60 buckets across the range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yMetricsResponse>
*/
open class func getO11yProductMetricsWithRequestBuilder(product: String? = nil, range: Int64? = nil, stepSec: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yMetricsResponse> {
let localVariablePath = "/v1/o11y/product/metrics"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"product": (wrappedValue: product?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"range": (wrappedValue: range?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"stepSec": (wrappedValue: stepSec?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yMetricsResponse>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys persistent volume claims report, for building volume filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yPvcsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yPvcsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys persistent volume claims report, for building volume filters.
- GET /v1/o11y/pvcs/attribute_keys
- Lists the metric attribute keys persistent volume claims report, for building volume filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yPvcsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/pvcs/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one persistent-volume-claim attribute key has taken, for building volume filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yPvcsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yPvcsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one persistent-volume-claim attribute key has taken, for building volume filters.
- GET /v1/o11y/pvcs/attribute_values
- Lists the values one persistent-volume-claim attribute key has taken, for building volume filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yPvcsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/pvcs/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Evaluates one instant PromQL query against the org's metrics and returns the result at a single point in time.
- parameter query: (query) Query is the PromQL expression to evaluate. Required.
- parameter time: (query) Time is the evaluation timestamp — epoch seconds or RFC3339. Empty evaluates at now. (optional)
- parameter stats: (query) Stats set to any non-empty value includes query statistics in the answer. (optional)
- parameter timeout: (query) Timeout caps evaluation time, as a duration in seconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPromQueryOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yQuery(query: String, time: String? = nil, stats: String? = nil, timeout: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPromQueryOut {
return try await getO11yQueryWithRequestBuilder(query: query, time: time, stats: stats, timeout: timeout, apiConfiguration: apiConfiguration).execute().body
}
/**
Evaluates one instant PromQL query against the org's metrics and returns the result at a single point in time.
- GET /v1/o11y/query
- Evaluates one instant PromQL query against the org's metrics and returns the result at a single point in time. The result is polymorphic by PromQL's own contract — a matrix, vector, scalar or string, discriminated by resultType — so it is carried verbatim rather than forced into one of its shapes. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter query: (query) Query is the PromQL expression to evaluate. Required.
- parameter time: (query) Time is the evaluation timestamp — epoch seconds or RFC3339. Empty evaluates at now. (optional)
- parameter stats: (query) Stats set to any non-empty value includes query statistics in the answer. (optional)
- parameter timeout: (query) Timeout caps evaluation time, as a duration in seconds. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPromQueryOut>
*/
open class func getO11yQueryWithRequestBuilder(query: String, time: String? = nil, stats: String? = nil, timeout: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPromQueryOut> {
let localVariablePath = "/v1/o11y/query"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"query": (wrappedValue: query.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"time": (wrappedValue: time?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"stats": (wrappedValue: stats?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"timeout": (wrappedValue: timeout?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPromQueryOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Watch one running query's progress
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yQueryProgress(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yQueryProgressWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Watch one running query's progress
- GET /v1/o11y/query_progress
- Reports how far a submitted query has got — rows scanned, bytes read, elapsed — and HOLDS the connection until the next update rather than answering immediately. ONE ADDRESS, TWO PROTOCOLS. Send an Upgrade and this is a websocket carrying the same progress; send an ordinary GET and it is a long poll. The Upgrade is a property of the request, not of the address, so the read that used to answer at /ws/query_progress answers here. The long poll is the whole point, and the reason this cannot be a typed operation: an answer that arrived only when the query finished would report progress on nothing, and an upgraded connection has no JSON response to declare. A validated, org-scoped principal is required; a query id belonging to another tenant is simply not found.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yQueryProgressWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/query_progress"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Runs a Prometheus-style range query over metrics — the legacy read that predates the v5 querier — and returns the matrix, vector or scalar the query resolved to.
- parameter start: (query) Start is the window start — a unix timestamp (seconds, with optional fraction) or an RFC 3339 time. Required.
- parameter end: (query) End is the window end, in the same form as Start, and not before it. Required.
- parameter step: (query) Step is the query resolution, e.g. 60s, 1m, 1h — a positive duration. Required.
- parameter query: (query) Query is the PromQL expression to evaluate. Required.
- parameter stats: (query) Stats, when \&quot;all\&quot;, asks for query statistics alongside the result. (optional)
- parameter timeout: (query) Timeout caps how long the query may run, e.g. 30s, 1m — a positive duration. Absent means the server default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricsQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yQueryRange(start: String, end: String, step: String, query: String, stats: String? = nil, timeout: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricsQueryRangeOut {
return try await getO11yQueryRangeWithRequestBuilder(start: start, end: end, step: step, query: query, stats: stats, timeout: timeout, apiConfiguration: apiConfiguration).execute().body
}
/**
Runs a Prometheus-style range query over metrics — the legacy read that predates the v5 querier — and returns the matrix, vector or scalar the query resolved to.
- GET /v1/o11y/query_range
- Runs a Prometheus-style range query over metrics — the legacy read that predates the v5 querier — and returns the matrix, vector or scalar the query resolved to. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the window start — a unix timestamp (seconds, with optional fraction) or an RFC 3339 time. Required.
- parameter end: (query) End is the window end, in the same form as Start, and not before it. Required.
- parameter step: (query) Step is the query resolution, e.g. 60s, 1m, 1h — a positive duration. Required.
- parameter query: (query) Query is the PromQL expression to evaluate. Required.
- parameter stats: (query) Stats, when \&quot;all\&quot;, asks for query statistics alongside the result. (optional)
- parameter timeout: (query) Timeout caps how long the query may run, e.g. 30s, 1m — a positive duration. Absent means the server default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricsQueryRangeOut>
*/
open class func getO11yQueryRangeWithRequestBuilder(start: String, end: String, step: String, query: String, stats: String? = nil, timeout: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricsQueryRangeOut> {
let localVariablePath = "/v1/o11y/query_range"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"step": (wrappedValue: step.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"query": (wrappedValue: query.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"stats": (wrappedValue: stats?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"timeout": (wrappedValue: timeout?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricsQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Readiness of the observability runtime to serve
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yReadyz(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11yReadyzWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Readiness of the observability runtime to serve
- GET /v1/o11y/readyz
- Reports whether the runtime's registered services are healthy enough to take traffic, and answers 503 when they are not — which is what takes a booting or degraded replica out of the load balancer instead of letting it serve errors. UNAUTHENTICATED by design, like the other two probes. It reads the same service registry the health probe reads, so the two agree by construction; readiness is the question a router asks and health is the question an operator asks.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11yReadyzWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/readyz"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a page of the caller org's human-review queues, newest first, narrowed to the caller's project.
- parameter page: (query) Page is the 1-based page to read. Default 1. (optional)
- parameter limit: (query) Limit is how many rows to return. Default 20, capped at 100. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnQueueList
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yReviews(page: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnQueueList {
return try await getO11yReviewsWithRequestBuilder(page: page, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a page of the caller org's human-review queues, newest first, narrowed to the caller's project.
- GET /v1/o11y/reviews
- Returns a page of the caller org's human-review queues, newest first, narrowed to the caller's project. Another org's queues are never visible.
- Bearer Token:
- type: http
- name: bearer
- parameter page: (query) Page is the 1-based page to read. Default 1. (optional)
- parameter limit: (query) Limit is how many rows to return. Default 20, capped at 100. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnQueueList>
*/
open class func getO11yReviewsWithRequestBuilder(page: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnQueueList> {
let localVariablePath = "/v1/o11y/reviews"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnQueueList>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one review queue with its pending and completed counts and its first page of items.
- parameter id: (path) ID is the annotation queue to act on, from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnQueueDetailView
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yReviewsById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnQueueDetailView {
return try await getO11yReviewsByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one review queue with its pending and completed counts and its first page of items.
- GET /v1/o11y/reviews/{id}
- Returns one review queue with its pending and completed counts and its first page of items. A queue id belonging to another org is a 404, never a cross-tenant read.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue to act on, from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnQueueDetailView>
*/
open class func getO11yReviewsByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnQueueDetailView> {
var localVariablePath = "/v1/o11y/reviews/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnQueueDetailView>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a page of one review queue's items, newest first, optionally filtered to PENDING or COMPLETED.
- parameter id: (path) ID is the annotation queue whose items to list, from the path.
- parameter status: (query) Status filters to PENDING or COMPLETED items. Absent returns both. (optional)
- parameter page: (query) Page is the 1-based page to read. Default 1. (optional)
- parameter limit: (query) Limit is how many rows to return. Default 20, capped at 100. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnItemList
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yReviewsByIdItems(id: String, status: String? = nil, page: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnItemList {
return try await getO11yReviewsByIdItemsWithRequestBuilder(id: id, status: status, page: page, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a page of one review queue's items, newest first, optionally filtered to PENDING or COMPLETED.
- GET /v1/o11y/reviews/{id}/items
- Returns a page of one review queue's items, newest first, optionally filtered to PENDING or COMPLETED. A queue id belonging to another org is a 404, never a cross-tenant list.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue whose items to list, from the path.
- parameter status: (query) Status filters to PENDING or COMPLETED items. Absent returns both. (optional)
- parameter page: (query) Page is the 1-based page to read. Default 1. (optional)
- parameter limit: (query) Limit is how many rows to return. Default 20, capped at 100. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnItemList>
*/
open class func getO11yReviewsByIdItemsWithRequestBuilder(id: String, status: String? = nil, page: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnItemList> {
var localVariablePath = "/v1/o11y/reviews/{id}/items"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"status": (wrappedValue: status?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnItemList>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one captured error event of a project, by its id.
- parameter id: (path) ID is the event id.
- parameter project: (query) Project is the project the event belongs to, by its id. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryEventOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelEventsById(id: String, project: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryEventOut {
return try await getO11ySentinelEventsByIdWithRequestBuilder(id: id, project: project, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one captured error event of a project, by its id.
- GET /v1/o11y/sentinel/events/{id}
- Returns one captured error event of a project, by its id. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the event id.
- parameter project: (query) Project is the project the event belongs to, by its id. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryEventOut>
*/
open class func getO11ySentinelEventsByIdWithRequestBuilder(id: String, project: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryEventOut> {
var localVariablePath = "/v1/o11y/sentinel/events/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryEventOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's grouped error issues, optionally narrowed to one project and one time window, and filtered by status, level, environment, service, a free-text query and a sort.
- parameter status: (query) Status narrows to one lifecycle state: unresolved, resolved or ignored. (optional)
- parameter level: (query) Level narrows to one severity, e.g. error, warning, info. (optional)
- parameter environment: (query) Environment narrows to one deployment environment. (optional)
- parameter serviceName: (query) ServiceName narrows to one reporting service. (optional)
- parameter query: (query) Query narrows to issues whose text contains it. (optional)
- parameter sort: (query) Sort orders the page, e.g. lastSeen, firstSeen, count. (optional)
- parameter offset: (query) Offset is how many issues to skip. Zero starts at the first. (optional)
- parameter limit: (query) Limit caps how many issues come back. Zero means the default. (optional)
- parameter project: (query) Project narrows the org&#39;s issues to one project, by its id. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorIssuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelIssues(status: String? = nil, level: String? = nil, environment: String? = nil, serviceName: String? = nil, query: String? = nil, sort: String? = nil, offset: Int64? = nil, limit: Int64? = nil, project: String? = nil, period: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorIssuesOut {
return try await getO11ySentinelIssuesWithRequestBuilder(status: status, level: level, environment: environment, serviceName: serviceName, query: query, sort: sort, offset: offset, limit: limit, project: project, period: period, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's grouped error issues, optionally narrowed to one project and one time window, and filtered by status, level, environment, service, a free-text query and a sort.
- GET /v1/o11y/sentinel/issues
- Lists the caller's org's grouped error issues, optionally narrowed to one project and one time window, and filtered by status, level, environment, service, a free-text query and a sort. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter status: (query) Status narrows to one lifecycle state: unresolved, resolved or ignored. (optional)
- parameter level: (query) Level narrows to one severity, e.g. error, warning, info. (optional)
- parameter environment: (query) Environment narrows to one deployment environment. (optional)
- parameter serviceName: (query) ServiceName narrows to one reporting service. (optional)
- parameter query: (query) Query narrows to issues whose text contains it. (optional)
- parameter sort: (query) Sort orders the page, e.g. lastSeen, firstSeen, count. (optional)
- parameter offset: (query) Offset is how many issues to skip. Zero starts at the first. (optional)
- parameter limit: (query) Limit caps how many issues come back. Zero means the default. (optional)
- parameter project: (query) Project narrows the org&#39;s issues to one project, by its id. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorIssuesOut>
*/
open class func getO11ySentinelIssuesWithRequestBuilder(status: String? = nil, level: String? = nil, environment: String? = nil, serviceName: String? = nil, query: String? = nil, sort: String? = nil, offset: Int64? = nil, limit: Int64? = nil, project: String? = nil, period: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorIssuesOut> {
let localVariablePath = "/v1/o11y/sentinel/issues"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"status": (wrappedValue: status?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"level": (wrappedValue: level?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"environment": (wrappedValue: environment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"serviceName": (wrappedValue: serviceName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"query": (wrappedValue: query?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sort": (wrappedValue: sort?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"project": (wrappedValue: project?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"period": (wrappedValue: period?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorIssuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one grouped issue of the caller's org with its latest occurrence sample.
- parameter id: (path) ID is the issue id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorGettableIssueOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelIssuesById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorGettableIssueOut {
return try await getO11ySentinelIssuesByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one grouped issue of the caller's org with its latest occurrence sample.
- GET /v1/o11y/sentinel/issues/{id}
- Returns one grouped issue of the caller's org with its latest occurrence sample. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the issue id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorGettableIssueOut>
*/
open class func getO11ySentinelIssuesByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorGettableIssueOut> {
var localVariablePath = "/v1/o11y/sentinel/issues/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorGettableIssueOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists one issue's captured occurrences, scoped to a project — a project is an isolation unit, so the caller declares which project's occurrences to read.
- parameter id: (path) ID is the issue id.
- parameter project: (query) Project is the project whose occurrences to read, by its id. Required.
- parameter limit: (query) Limit caps how many occurrences come back. Zero means the default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryIssueEventsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelIssuesByIdEvents(id: String, project: String, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryIssueEventsOut {
return try await getO11ySentinelIssuesByIdEventsWithRequestBuilder(id: id, project: project, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists one issue's captured occurrences, scoped to a project — a project is an isolation unit, so the caller declares which project's occurrences to read.
- GET /v1/o11y/sentinel/issues/{id}/events
- Lists one issue's captured occurrences, scoped to a project — a project is an isolation unit, so the caller declares which project's occurrences to read. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the issue id.
- parameter project: (query) Project is the project whose occurrences to read, by its id. Required.
- parameter limit: (query) Limit caps how many occurrences come back. Zero means the default. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryIssueEventsOut>
*/
open class func getO11ySentinelIssuesByIdEventsWithRequestBuilder(id: String, project: String, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryIssueEventsOut> {
var localVariablePath = "/v1/o11y/sentinel/issues/{id}/events"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryIssueEventsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists a project's captured error events, newest first, optionally narrowed to those whose message or exception text contains a search string.
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter query: (query) Query narrows the page to events whose text contains it. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter limit: (query) Limit caps how many events come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelLogs(project: String, query: String? = nil, period: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogsOut {
return try await getO11ySentinelLogsWithRequestBuilder(project: project, query: query, period: period, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists a project's captured error events, newest first, optionally narrowed to those whose message or exception text contains a search string.
- GET /v1/o11y/sentinel/logs
- Lists a project's captured error events, newest first, optionally narrowed to those whose message or exception text contains a search string.
- Bearer Token:
- type: http
- name: bearer
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter query: (query) Query narrows the page to events whose text contains it. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter limit: (query) Limit caps how many events come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogsOut>
*/
open class func getO11ySentinelLogsWithRequestBuilder(project: String, query: String? = nil, period: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogsOut> {
let localVariablePath = "/v1/o11y/sentinel/logs"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"query": (wrappedValue: query?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"period": (wrappedValue: period?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's Sentry projects, each with its freshly-derived DSN.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryProjectsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelProjects(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryProjectsOut {
return try await getO11ySentinelProjectsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's Sentry projects, each with its freshly-derived DSN.
- GET /v1/o11y/sentinel/projects
- Lists the caller's org's Sentry projects, each with its freshly-derived DSN. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryProjectsOut>
*/
open class func getO11ySentinelProjectsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryProjectsOut> {
let localVariablePath = "/v1/o11y/sentinel/projects"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryProjectsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one Sentry project of the caller's org, DSN included.
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryProjectOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelProjectsById(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryProjectOut {
return try await getO11ySentinelProjectsByIdWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one Sentry project of the caller's org, DSN included.
- GET /v1/o11y/sentinel/projects/{id}
- Returns one Sentry project of the caller's org, DSN included. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryProjectOut>
*/
open class func getO11ySentinelProjectsByIdWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryProjectOut> {
var localVariablePath = "/v1/o11y/sentinel/projects/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryProjectOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a project's event-rate timeseries: one bucket per interval over the requested period, counting the events in it.
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter field: (query) Field is the dimension to count over. Empty counts all events. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelStats(project: String, field: String? = nil, period: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yStatsOut {
return try await getO11ySentinelStatsWithRequestBuilder(project: project, field: field, period: period, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a project's event-rate timeseries: one bucket per interval over the requested period, counting the events in it.
- GET /v1/o11y/sentinel/stats
- Returns a project's event-rate timeseries: one bucket per interval over the requested period, counting the events in it.
- Bearer Token:
- type: http
- name: bearer
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter field: (query) Field is the dimension to count over. Empty counts all events. (optional)
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yStatsOut>
*/
open class func getO11ySentinelStatsWithRequestBuilder(project: String, field: String? = nil, period: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yStatsOut> {
let localVariablePath = "/v1/o11y/sentinel/stats"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"field": (wrappedValue: field?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"period": (wrappedValue: period?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the traces a project's captured errors reference, each with how many errors landed on it, when they started and stopped, and the latest message seen — the entry point for \"which requests are failing\".
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter limit: (query) Limit caps how many traces come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTracesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelTraces(project: String, period: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTracesOut {
return try await getO11ySentinelTracesWithRequestBuilder(project: project, period: period, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the traces a project's captured errors reference, each with how many errors landed on it, when they started and stopped, and the latest message seen — the entry point for \"which requests are failing\".
- GET /v1/o11y/sentinel/traces
- Lists the traces a project's captured errors reference, each with how many errors landed on it, when they started and stopped, and the latest message seen — the entry point for \"which requests are failing\".
- Bearer Token:
- type: http
- name: bearer
- parameter project: (query) Project is the project to read, as its id. Required.
- parameter period: (query) Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. (optional)
- parameter limit: (query) Limit caps how many traces come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTracesOut>
*/
open class func getO11ySentinelTracesWithRequestBuilder(project: String, period: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTracesOut> {
let localVariablePath = "/v1/o11y/sentinel/traces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"period": (wrappedValue: period?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTracesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one trace's captured errors for a project — every error event that carried the trace id, in the order the events plane holds them.
- parameter id: (path) ID is the trace id.
- parameter project: (query) Project is the project the trace&#39;s errors belong to. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTraceOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySentinelTracesById(id: String, project: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTraceOut {
return try await getO11ySentinelTracesByIdWithRequestBuilder(id: id, project: project, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one trace's captured errors for a project — every error event that carried the trace id, in the order the events plane holds them.
- GET /v1/o11y/sentinel/traces/{id}
- Returns one trace's captured errors for a project — every error event that carried the trace id, in the order the events plane holds them.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the trace id.
- parameter project: (query) Project is the project the trace&#39;s errors belong to. Required.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTraceOut>
*/
open class func getO11ySentinelTracesByIdWithRequestBuilder(id: String, project: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTraceOut> {
var localVariablePath = "/v1/o11y/sentinel/traces/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"project": (wrappedValue: project.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTraceOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the name of every service the trace store holds, with no window applied — the complete catalog, for pickers and autocomplete.
- parameter apiConfiguration: The configuration for the http request.
- returns: [String]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yServicesList(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [String] {
return try await getO11yServicesListWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the name of every service the trace store holds, with no window applied — the complete catalog, for pickers and autocomplete.
- GET /v1/o11y/services/list
- Lists the name of every service the trace store holds, with no window applied — the complete catalog, for pickers and autocomplete.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[String]>
*/
open class func getO11yServicesListWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[String]> {
let localVariablePath = "/v1/o11y/services/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[String]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
List the caller org's LLM sessions
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySessions(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await getO11ySessionsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
List the caller org's LLM sessions
- GET /v1/o11y/sessions
- Answers the caller org's LLM-observability sessions — traces grouped by session id on the gen_ai span plane — paged by limit and offset, in the runtime's own envelope, passed through unchanged. An org-less caller is refused HERE, at the cloud boundary, before the request reaches the runtime, and the org the runtime then scopes on is that SAME validated tenant. The two cannot disagree: the tenant is minted from the principal's own claim at ingress and a client copy never survives it. There is deliberately no session-detail route to pair with this. The runtime serves the list only; detail is composed client-side from this list plus the traces filtered by session, so a caller looking for one is looking for something that was never served rather than something that broke.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func getO11ySessionsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/sessions"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns apdex settings for the named services.
- parameter services: (query) Services are the service names, comma separated. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yApdexOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySettingsApdex(services: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yApdexOut {
return try await getO11ySettingsApdexWithRequestBuilder(services: services, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns apdex settings for the named services.
- GET /v1/o11y/settings/apdex
- Returns apdex settings for the named services. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter services: (query) Services are the service names, comma separated. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yApdexOut>
*/
open class func getO11ySettingsApdexWithRequestBuilder(services: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yApdexOut> {
let localVariablePath = "/v1/o11y/settings/apdex"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"services": (wrappedValue: services?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yApdexOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the org's current retention policy: default TTL, custom per-label rules, and cold-storage settings where configured.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRetentionOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySettingsTtl(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRetentionOut {
return try await getO11ySettingsTtlWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the org's current retention policy: default TTL, custom per-label rules, and cold-storage settings where configured.
- GET /v1/o11y/settings/ttl
- Returns the org's current retention policy: default TTL, custom per-label rules, and cold-storage settings where configured. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRetentionOut>
*/
open class func getO11ySettingsTtlWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRetentionOut> {
let localVariablePath = "/v1/o11y/settings/ttl"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRetentionOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the metric attribute keys Kubernetes statefulsets report, for building statefulset filters.
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yStatefulsetsAttributeKeys(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeKeysOut {
return try await getO11yStatefulsetsAttributeKeysWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the metric attribute keys Kubernetes statefulsets report, for building statefulset filters.
- GET /v1/o11y/statefulsets/attribute_keys
- Lists the metric attribute keys Kubernetes statefulsets report, for building statefulset filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the keys come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the keys will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the keys must appear on. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter tagType: (query) TagType narrows the keys to one kind — tag or resource. Empty means all; an invalid value reads as empty. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeKeysOut>
*/
open class func getO11yStatefulsetsAttributeKeysWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeKeysOut> {
let localVariablePath = "/v1/o11y/statefulsets/attribute_keys"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the values one statefulset attribute key has taken, for building statefulset filters.
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yStatefulsetsAttributeValues(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraAttributeValuesOut {
return try await getO11yStatefulsetsAttributeValuesWithRequestBuilder(dataSource: dataSource, aggregateOperator: aggregateOperator, aggregateAttribute: aggregateAttribute, attributeKey: attributeKey, filterAttributeKeyDataType: filterAttributeKeyDataType, searchText: searchText, tagType: tagType, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the values one statefulset attribute key has taken, for building statefulset filters.
- GET /v1/o11y/statefulsets/attribute_values
- Lists the values one statefulset attribute key has taken, for building statefulset filters.
- Bearer Token:
- type: http
- name: bearer
- parameter dataSource: (query) DataSource is the telemetry the values come from — metrics for the infra faces. The runtime requires it. (optional)
- parameter aggregateOperator: (query) AggregateOperator is the aggregation the values will be used under, e.g. noop, count, avg. The runtime requires it for non-metrics sources. (optional)
- parameter aggregateAttribute: (query) AggregateAttribute is the metric the values must appear on. (optional)
- parameter attributeKey: (query) AttributeKey is the key whose values to list. (optional)
- parameter filterAttributeKeyDataType: (query) FilterAttributeKeyDataType is the key&#39;s data type — string, int64, float64 or bool. Empty means unspecified. (optional)
- parameter searchText: (query) SearchText narrows the values to those containing it. (optional)
- parameter tagType: (query) TagType narrows the search to one kind of key — tag or resource. (optional)
- parameter limit: (query) Limit caps how many values come back. Absent means 50. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraAttributeValuesOut>
*/
open class func getO11yStatefulsetsAttributeValuesWithRequestBuilder(dataSource: String? = nil, aggregateOperator: String? = nil, aggregateAttribute: String? = nil, attributeKey: String? = nil, filterAttributeKeyDataType: String? = nil, searchText: String? = nil, tagType: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraAttributeValuesOut> {
let localVariablePath = "/v1/o11y/statefulsets/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"dataSource": (wrappedValue: dataSource?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateOperator": (wrappedValue: aggregateOperator?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"aggregateAttribute": (wrappedValue: aggregateAttribute?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"attributeKey": (wrappedValue: attributeKey?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterAttributeKeyDataType": (wrappedValue: filterAttributeKeyDataType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"tagType": (wrappedValue: tagType?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the collected usage statistics for the caller's org, as the stats reporter aggregates them — a map whose keys are the reporter's own counter names.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOrgStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yStats(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOrgStatsOut {
return try await getO11yStatsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the collected usage statistics for the caller's org, as the stats reporter aggregates them — a map whose keys are the reporter's own counter names.
- GET /v1/o11y/stats
- Returns the collected usage statistics for the caller's org, as the stats reporter aggregates them — a map whose keys are the reporter's own counter names. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOrgStatsOut>
*/
open class func getO11yStatsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOrgStatsOut> {
let localVariablePath = "/v1/o11y/stats"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOrgStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports whether a product's service is live: an in-cluster health probe with its measured latency, fused with the per-replica up inventory.
- parameter product: (query) Product is the console product slug to probe, e.g. \&quot;kms\&quot;. Required. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yStatusResult
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yStatus(product: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yStatusResult {
return try await getO11yStatusWithRequestBuilder(product: product, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports whether a product's service is live: an in-cluster health probe with its measured latency, fused with the per-replica up inventory.
- GET /v1/o11y/status
- Reports whether a product's service is live: an in-cluster health probe with its measured latency, fused with the per-replica up inventory. Infra health is not tenant-partitioned — a service is up or down for everyone — so any validated caller is served, but an unvalidated one is refused. A product with no backing workload answers down/unknown-service without probing anything; a malformed slug is a 400.
- Bearer Token:
- type: http
- name: bearer
- parameter product: (query) Product is the console product slug to probe, e.g. \&quot;kms\&quot;. Required. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yStatusResult>
*/
open class func getO11yStatusWithRequestBuilder(product: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yStatusResult> {
let localVariablePath = "/v1/o11y/status"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"product": (wrappedValue: product?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yStatusResult>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports whether the platform is up.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yStatusSummary
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11ySummary(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yStatusSummary {
return try await getO11ySummaryWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Reports whether the platform is up.
- GET /v1/o11y/summary
- Reports whether the platform is up. It returns the public status document: the incidents currently open against Hanzo's own services, derived from the fleet health probes, plus the address of the human status page. No authentication is required and no tenant data is involved — the answer is the same for every caller. A service that fails its health probe becomes one incident naming that service. When the availability source itself cannot be read the endpoint answers 503 rather than an empty incident list, because \"we cannot tell\" and \"everything is fine\" are different answers and only one of them is true.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yStatusSummary>
*/
open class func getO11ySummaryWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yStatusSummary> {
let localVariablePath = "/v1/o11y/summary"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yStatusSummary>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller org's recent traces — one row per trace with its span count and wall-clock duration, most recently active first.
- parameter range: (query) Range is the window in seconds, counted back from now over each trace&#39;s last activity. Default 3600, capped at 604800 (7d). (optional)
- parameter limit: (query) Limit is how many traces to return. Default 50, capped at 500. (optional)
- parameter minDurationMs: (query) MinDurationMs keeps only traces that lasted at least this many milliseconds. Zero or absent keeps every trace in the window. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yTracesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yTraces(range: Int64? = nil, limit: Int64? = nil, minDurationMs: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yTracesOut {
return try await getO11yTracesWithRequestBuilder(range: range, limit: limit, minDurationMs: minDurationMs, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller org's recent traces — one row per trace with its span count and wall-clock duration, most recently active first.
- GET /v1/o11y/traces
- Lists the caller org's recent traces — one row per trace with its span count and wall-clock duration, most recently active first. This is the trace SEARCH: it is where a trace id comes from, and the spans behind any row are then read from GET /v1/o11y/traces/{traceId}. Every row belongs to the caller's own org — the tenant is the validated principal, never an input, and there is no administrator widening, because a trace list is a tenant's records rather than a rollup over them. An unreachable telemetry store answers 503 rather than an empty page, because \"no traces\" and \"cannot see the traces\" are different facts and only one of them is about the caller's system.
- Bearer Token:
- type: http
- name: bearer
- parameter range: (query) Range is the window in seconds, counted back from now over each trace&#39;s last activity. Default 3600, capped at 604800 (7d). (optional)
- parameter limit: (query) Limit is how many traces to return. Default 50, capped at 500. (optional)
- parameter minDurationMs: (query) MinDurationMs keeps only traces that lasted at least this many milliseconds. Zero or absent keeps every trace in the window. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yTracesOut>
*/
open class func getO11yTracesWithRequestBuilder(range: Int64? = nil, limit: Int64? = nil, minDurationMs: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yTracesOut> {
let localVariablePath = "/v1/o11y/traces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"range": (wrappedValue: range?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"minDurationMs": (wrappedValue: minDurationMs?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yTracesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns ingestion usage counts bucketed over the requested window, optionally narrowed to one service.
- parameter start: (query) Start is the window start, as epoch nanoseconds. Required.
- parameter end: (query) End is the window end, as epoch nanoseconds. Required.
- parameter step: (query) Step is the bucket width in seconds. The runtime requires it. (optional)
- parameter service: (query) Service narrows usage to one service. Empty covers all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: [O11yO11yUsageItem]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yUsage(start: String, end: String, step: Int64? = nil, service: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [O11yO11yUsageItem] {
return try await getO11yUsageWithRequestBuilder(start: start, end: end, step: step, service: service, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns ingestion usage counts bucketed over the requested window, optionally narrowed to one service.
- GET /v1/o11y/usage
- Returns ingestion usage counts bucketed over the requested window, optionally narrowed to one service. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the window start, as epoch nanoseconds. Required.
- parameter end: (query) End is the window end, as epoch nanoseconds. Required.
- parameter step: (query) Step is the bucket width in seconds. The runtime requires it. (optional)
- parameter service: (query) Service narrows usage to one service. Empty covers all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[O11yO11yUsageItem]>
*/
open class func getO11yUsageWithRequestBuilder(start: String, end: String, step: Int64? = nil, service: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[O11yO11yUsageItem]> {
let localVariablePath = "/v1/o11y/usage"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"step": (wrappedValue: step?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"service": (wrappedValue: service?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[O11yO11yUsageItem]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reports the running build: its version, whether an enterprise edition is present (\"N\" in this build), and whether first-user setup has completed.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yVersionOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getO11yVersion(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yVersionOut {
return try await getO11yVersionWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Reports the running build: its version, whether an enterprise edition is present (\"N\" in this build), and whether first-user setup has completed.
- GET /v1/o11y/version
- Reports the running build: its version, whether an enterprise edition is present (\"N\" in this build), and whether first-user setup has completed. Open by design; the runtime's own gate is OpenAccess.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yVersionOut>
*/
open class func getO11yVersionWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yVersionOut> {
let localVariablePath = "/v1/o11y/version"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yVersionOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one org-scoped preference, by name.
- parameter name: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPreferenceOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getOrgPreference(name: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPreferenceOut {
return try await getOrgPreferenceWithRequestBuilder(name: name, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one org-scoped preference, by name.
- GET /v1/o11y/org/preferences/{name}
- Returns one org-scoped preference, by name. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter name: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPreferenceOut>
*/
open class func getOrgPreferenceWithRequestBuilder(name: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPreferenceOut> {
var localVariablePath = "/v1/o11y/org/preferences/{name}"
let namePreEscape = "\(APIHelper.mapValueToPathItem(name))"
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPreferenceOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the overall firing/inactive windows for a rule, for the posted query range.
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOverallStateTransitionsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getOverallStateTransitions(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOverallStateTransitionsOut {
return try await getOverallStateTransitionsWithRequestBuilder(id: id, o11yO11yRuleHistoryQueryIn: o11yO11yRuleHistoryQueryIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the overall firing/inactive windows for a rule, for the posted query range.
- POST /v1/o11y/rules/{id}/history/overall_status
- Returns the overall firing/inactive windows for a rule, for the posted query range. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOverallStateTransitionsOut>
*/
open class func getOverallStateTransitionsWithRequestBuilder(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOverallStateTransitionsOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/overall_status"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRuleHistoryQueryIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOverallStateTransitionsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the public-sharing config for a dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPublicDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getPublicDashboard(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPublicDashboardOut {
return try await getPublicDashboardWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the public-sharing config for a dashboard.
- GET /v1/o11y/dashboards/{id}/public
- Returns the public-sharing config for a dashboard. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPublicDashboardOut>
*/
open class func getPublicDashboardWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPublicDashboardOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}/public"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPublicDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the sanitized dashboard data for public access — the read a shared dashboard's public page makes.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPublicDashboardDataOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getPublicDashboardData(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPublicDashboardDataOut {
return try await getPublicDashboardDataWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the sanitized dashboard data for public access — the read a shared dashboard's public page makes.
- GET /v1/o11y/public/dashboards/{id}
- Returns the sanitized dashboard data for public access — the read a shared dashboard's public page makes. Anonymous, scoped to the public dashboard's read scope; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPublicDashboardDataOut>
*/
open class func getPublicDashboardDataWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPublicDashboardDataOut> {
var localVariablePath = "/v1/o11y/public/dashboards/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPublicDashboardDataOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the query-range result for one widget of a public dashboard.
- parameter id: (path) ID is the public dashboard id from the path.
- parameter idx: (path) Idx is the widget&#39;s index from the path.
- parameter startTime: (query) StartTime is the window start as a millisecond epoch. Used only when the share enables a caller-chosen time range. (optional)
- parameter endTime: (query) EndTime is the window end as a millisecond epoch. Used only when the share enables a caller-chosen time range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yWidgetQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getPublicDashboardWidgetQueryRange(id: String, idx: String, startTime: String? = nil, endTime: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yWidgetQueryRangeOut {
return try await getPublicDashboardWidgetQueryRangeWithRequestBuilder(id: id, idx: idx, startTime: startTime, endTime: endTime, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the query-range result for one widget of a public dashboard.
- GET /v1/o11y/public/dashboards/{id}/widgets/{idx}/query_range
- Returns the query-range result for one widget of a public dashboard. When the share fixes its own time range the caller's startTime/endTime are ignored; otherwise they bound the window as millisecond epochs. Anonymous, scoped to the public dashboard's read scope; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the public dashboard id from the path.
- parameter idx: (path) Idx is the widget&#39;s index from the path.
- parameter startTime: (query) StartTime is the window start as a millisecond epoch. Used only when the share enables a caller-chosen time range. (optional)
- parameter endTime: (query) EndTime is the window end as a millisecond epoch. Used only when the share enables a caller-chosen time range. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yWidgetQueryRangeOut>
*/
open class func getPublicDashboardWidgetQueryRangeWithRequestBuilder(id: String, idx: String, startTime: String? = nil, endTime: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yWidgetQueryRangeOut> {
var localVariablePath = "/v1/o11y/public/dashboards/{id}/widgets/{idx}/query_range"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let idxPreEscape = "\(APIHelper.mapValueToPathItem(idx))"
let idxPostEscape = idxPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{idx}", with: idxPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"startTime": (wrappedValue: startTime?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"endTime": (wrappedValue: endTime?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yWidgetQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the org's quick filters for every signal — the attribute shortlists its explorers offer as one-click filters.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQuickFiltersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getQuickFilters(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQuickFiltersOut {
return try await getQuickFiltersWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the org's quick filters for every signal — the attribute shortlists its explorers offer as one-click filters.
- GET /v1/o11y/orgs/me/filters
- Returns the org's quick filters for every signal — the attribute shortlists its explorers offer as one-click filters. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQuickFiltersOut>
*/
open class func getQuickFiltersWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQuickFiltersOut> {
let localVariablePath = "/v1/o11y/orgs/me/filters"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQuickFiltersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the reset-password token a user already has; absent one, the answer is a not-found rather than a fresh token.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yResetTokenOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getResetPasswordToken(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yResetTokenOut {
return try await getResetPasswordTokenWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the reset-password token a user already has; absent one, the answer is a not-found rather than a fresh token.
- GET /v1/o11y/users/{id}/reset_password_tokens
- Returns the reset-password token a user already has; absent one, the answer is a not-found rather than a fresh token. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yResetTokenOut>
*/
open class func getResetPasswordTokenWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yResetTokenOut> {
var localVariablePath = "/v1/o11y/users/{id}/reset_password_tokens"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yResetTokenOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a user's password-reset token, creating one if none is live.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yResetTokenOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getResetPasswordTokenDeprecated(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yResetTokenOut {
return try await getResetPasswordTokenDeprecatedWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a user's password-reset token, creating one if none is live.
- GET /v1/o11y/getResetPasswordToken/{id}
- Returns a user's password-reset token, creating one if none is live. Deprecated in favor of the reset_password_tokens pair, which separates reading from minting. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yResetTokenOut>
*/
open class func getResetPasswordTokenDeprecatedWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yResetTokenOut> {
var localVariablePath = "/v1/o11y/getResetPasswordToken/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yResetTokenOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one role with the transaction groups it grants.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRole(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoleOut {
return try await getRoleWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one role with the transaction groups it grants.
- GET /v1/o11y/roles/{id}
- Returns one role with the transaction groups it grants.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoleOut>
*/
open class func getRoleWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoleOut> {
var localVariablePath = "/v1/o11y/roles/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns every role one org member holds, by user id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRolesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRolesByUserID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRolesOut {
return try await getRolesByUserIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns every role one org member holds, by user id.
- GET /v1/o11y/users/{id}/roles
- Returns every role one org member holds, by user id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRolesOut>
*/
open class func getRolesByUserIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRolesOut> {
var localVariablePath = "/v1/o11y/users/{id}/roles"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRolesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one route policy, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoutePolicyOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRoutePolicyByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoutePolicyOut {
return try await getRoutePolicyByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one route policy, by id.
- GET /v1/o11y/route_policies/{id}
- Returns one route policy, by id. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoutePolicyOut>
*/
open class func getRoutePolicyByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoutePolicyOut> {
var localVariablePath = "/v1/o11y/route_policies/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoutePolicyOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one alert rule with its evaluation state, by id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleByID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleOut {
return try await getRuleByIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one alert rule with its evaluation state, by id.
- GET /v1/o11y/rules/{id}
- Returns one alert rule with its evaluation state, by id. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleOut>
*/
open class func getRuleByIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleOut> {
var localVariablePath = "/v1/o11y/rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the distinct label keys present in a rule's history entries over the selected range, for building history filters.
- parameter id: (path)
- parameter startUnixMilli: (query) StartUnixMilli is the window start, unix milliseconds. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end, unix milliseconds. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50, capped at 200. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryFilterKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryFilterKeys(id: String, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, searchText: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryFilterKeysOut {
return try await getRuleHistoryFilterKeysWithRequestBuilder(id: id, startUnixMilli: startUnixMilli, endUnixMilli: endUnixMilli, searchText: searchText, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the distinct label keys present in a rule's history entries over the selected range, for building history filters.
- GET /v1/o11y/rules/{id}/history/filter_keys
- Returns the distinct label keys present in a rule's history entries over the selected range, for building history filters. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter startUnixMilli: (query) StartUnixMilli is the window start, unix milliseconds. (optional)
- parameter endUnixMilli: (query) EndUnixMilli is the window end, unix milliseconds. (optional)
- parameter searchText: (query) SearchText narrows the keys to those containing it. (optional)
- parameter limit: (query) Limit caps how many keys come back. Absent means 50, capped at 200. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryFilterKeysOut>
*/
open class func getRuleHistoryFilterKeysWithRequestBuilder(id: String, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, searchText: String? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryFilterKeysOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/filter_keys"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"startUnixMilli": (wrappedValue: startUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"endUnixMilli": (wrappedValue: endUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryFilterKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the distinct values a given label key has taken across a rule's history entries.
- parameter id: (path)
- parameter name: (query) Name is the label key whose values to list. Required.
- parameter startUnixMilli: (query) (optional)
- parameter endUnixMilli: (query) (optional)
- parameter searchText: (query) (optional)
- parameter limit: (query) (optional)
- parameter existingQuery: (query) ExistingQuery is a filter expression scoping which values appear. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryFilterValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryFilterValues(id: String, name: String, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, searchText: String? = nil, limit: Int64? = nil, existingQuery: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryFilterValuesOut {
return try await getRuleHistoryFilterValuesWithRequestBuilder(id: id, name: name, startUnixMilli: startUnixMilli, endUnixMilli: endUnixMilli, searchText: searchText, limit: limit, existingQuery: existingQuery, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the distinct values a given label key has taken across a rule's history entries.
- GET /v1/o11y/rules/{id}/history/filter_values
- Returns the distinct values a given label key has taken across a rule's history entries. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter name: (query) Name is the label key whose values to list. Required.
- parameter startUnixMilli: (query) (optional)
- parameter endUnixMilli: (query) (optional)
- parameter searchText: (query) (optional)
- parameter limit: (query) (optional)
- parameter existingQuery: (query) ExistingQuery is a filter expression scoping which values appear. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryFilterValuesOut>
*/
open class func getRuleHistoryFilterValuesWithRequestBuilder(id: String, name: String, startUnixMilli: Int64? = nil, endUnixMilli: Int64? = nil, searchText: String? = nil, limit: Int64? = nil, existingQuery: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryFilterValuesOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/filter_values"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"startUnixMilli": (wrappedValue: startUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"endUnixMilli": (wrappedValue: endUnixMilli?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"existingQuery": (wrappedValue: existingQuery?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryFilterValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the overall firing/inactive intervals for a rule over the selected range.
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryOverallStatusOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryOverallStatus(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryOverallStatusOut {
return try await getRuleHistoryOverallStatusWithRequestBuilder(id: id, start: start, end: end, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the overall firing/inactive intervals for a rule over the selected range.
- GET /v1/o11y/rules/{id}/history/overall_status
- Returns the overall firing/inactive intervals for a rule over the selected range. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryOverallStatusOut>
*/
open class func getRuleHistoryOverallStatusWithRequestBuilder(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryOverallStatusOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/overall_status"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryOverallStatusOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns trigger and resolution statistics for a rule over the selected time range, current window against the prior one.
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryStats(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryStatsOut {
return try await getRuleHistoryStatsWithRequestBuilder(id: id, start: start, end: end, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns trigger and resolution statistics for a rule over the selected time range, current window against the prior one.
- GET /v1/o11y/rules/{id}/history/stats
- Returns trigger and resolution statistics for a rule over the selected time range, current window against the prior one. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryStatsOut>
*/
open class func getRuleHistoryStatsWithRequestBuilder(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryStatsOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/stats"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns paginated timeline entries for a rule's state transitions, filterable by state and a label expression, cursor-paginated.
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter state: (query) State keeps only entries in one alert state, e.g. firing or normal. (optional)
- parameter filterExpression: (query) FilterExpression narrows entries to those whose labels match it. (optional)
- parameter limit: (query) Limit caps how many entries come back. Absent means 50. (optional)
- parameter order: (query) Order sorts by time, asc or desc. (optional)
- parameter cursor: (query) Cursor resumes a previous page; opaque, returned as nextCursor. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryTimelineOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryTimeline(id: String, start: Int64? = nil, end: Int64? = nil, state: String? = nil, filterExpression: String? = nil, limit: Int64? = nil, order: String? = nil, cursor: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryTimelineOut {
return try await getRuleHistoryTimelineWithRequestBuilder(id: id, start: start, end: end, state: state, filterExpression: filterExpression, limit: limit, order: order, cursor: cursor, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns paginated timeline entries for a rule's state transitions, filterable by state and a label expression, cursor-paginated.
- GET /v1/o11y/rules/{id}/history/timeline
- Returns paginated timeline entries for a rule's state transitions, filterable by state and a label expression, cursor-paginated. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter state: (query) State keeps only entries in one alert state, e.g. firing or normal. (optional)
- parameter filterExpression: (query) FilterExpression narrows entries to those whose labels match it. (optional)
- parameter limit: (query) Limit caps how many entries come back. Absent means 50. (optional)
- parameter order: (query) Order sorts by time, asc or desc. (optional)
- parameter cursor: (query) Cursor resumes a previous page; opaque, returned as nextCursor. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryTimelineOut>
*/
open class func getRuleHistoryTimelineWithRequestBuilder(id: String, start: Int64? = nil, end: Int64? = nil, state: String? = nil, filterExpression: String? = nil, limit: Int64? = nil, order: String? = nil, cursor: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryTimelineOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/timeline"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"state": (wrappedValue: state?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"filterExpression": (wrappedValue: filterExpression?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"order": (wrappedValue: order?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"cursor": (wrappedValue: cursor?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryTimelineOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the label combinations that contributed most to a rule firing over the selected range.
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleHistoryContributorsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleHistoryTopContributors(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleHistoryContributorsOut {
return try await getRuleHistoryTopContributorsWithRequestBuilder(id: id, start: start, end: end, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the label combinations that contributed most to a rule firing over the selected range.
- GET /v1/o11y/rules/{id}/history/top_contributors
- Returns the label combinations that contributed most to a rule firing over the selected range. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter start: (query) Start is the window start, unix milliseconds. Required by the runtime. (optional)
- parameter end: (query) End is the window end, unix milliseconds. Required by the runtime. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleHistoryContributorsOut>
*/
open class func getRuleHistoryTopContributorsWithRequestBuilder(id: String, start: Int64? = nil, end: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleHistoryContributorsOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/top_contributors"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleHistoryContributorsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a rule's state-transition timeline for the posted query range, each entry carrying its related-logs or related-traces link.
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleStateTimelineOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleStateHistory(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleStateTimelineOut {
return try await getRuleStateHistoryWithRequestBuilder(id: id, o11yO11yRuleHistoryQueryIn: o11yO11yRuleHistoryQueryIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a rule's state-transition timeline for the posted query range, each entry carrying its related-logs or related-traces link.
- POST /v1/o11y/rules/{id}/history/timeline
- Returns a rule's state-transition timeline for the posted query range, each entry carrying its related-logs or related-traces link. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleStateTimelineOut>
*/
open class func getRuleStateHistoryWithRequestBuilder(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleStateTimelineOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/timeline"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRuleHistoryQueryIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleStateTimelineOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the label combinations that contributed most to a rule firing, for the posted query range.
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleStateContributorsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleStateHistoryTopContributors(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleStateContributorsOut {
return try await getRuleStateHistoryTopContributorsWithRequestBuilder(id: id, o11yO11yRuleHistoryQueryIn: o11yO11yRuleHistoryQueryIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the label combinations that contributed most to a rule firing, for the posted query range.
- POST /v1/o11y/rules/{id}/history/top_contributors
- Returns the label combinations that contributed most to a rule firing, for the posted query range. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleStateContributorsOut>
*/
open class func getRuleStateHistoryTopContributorsWithRequestBuilder(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleStateContributorsOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/top_contributors"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRuleHistoryQueryIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleStateContributorsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns trigger and resolution statistics for a rule, current window against the prior one, for the posted query range.
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleStatsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getRuleStats(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleStatsOut {
return try await getRuleStatsWithRequestBuilder(id: id, o11yO11yRuleHistoryQueryIn: o11yO11yRuleHistoryQueryIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns trigger and resolution statistics for a rule, current window against the prior one, for the posted query range.
- POST /v1/o11y/rules/{id}/history/stats
- Returns trigger and resolution statistics for a rule, current window against the prior one, for the posted query range. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRuleHistoryQueryIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleStatsOut>
*/
open class func getRuleStatsWithRequestBuilder(id: String, o11yO11yRuleHistoryQueryIn: O11yO11yRuleHistoryQueryIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleStatsOut> {
var localVariablePath = "/v1/o11y/rules/{id}/history/stats"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRuleHistoryQueryIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleStatsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one service the given provider can collect from, by service id, optionally scoped to one cloud integration.
- parameter cloudProvider: (path)
- parameter serviceId: (path)
- parameter cloudIntegrationId: (query) CloudIntegrationID, when set, scopes the service to one cloud integration. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getService(cloudProvider: String, serviceId: String, cloudIntegrationId: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceOut {
return try await getServiceWithRequestBuilder(cloudProvider: cloudProvider, serviceId: serviceId, cloudIntegrationId: cloudIntegrationId, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one service the given provider can collect from, by service id, optionally scoped to one cloud integration.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/services/{service_id}
- Returns one service the given provider can collect from, by service id, optionally scoped to one cloud integration. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter serviceId: (path)
- parameter cloudIntegrationId: (query) CloudIntegrationID, when set, scopes the service to one cloud integration. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceOut>
*/
open class func getServiceWithRequestBuilder(cloudProvider: String, serviceId: String, cloudIntegrationId: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/services/{service_id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let serviceIdPreEscape = "\(APIHelper.mapValueToPathItem(serviceId))"
let serviceIdPostEscape = serviceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{service_id}", with: serviceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"cloud_integration_id": (wrappedValue: cloudIntegrationId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one service account with the roles it holds.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceAccountOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getServiceAccount(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceAccountOut {
return try await getServiceAccountWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one service account with the roles it holds.
- GET /v1/o11y/service_accounts/{id}
- Returns one service account with the roles it holds.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceAccountOut>
*/
open class func getServiceAccountWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceAccountOut> {
var localVariablePath = "/v1/o11y/service_accounts/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceAccountOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the roles a service account holds.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceAccountRolesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getServiceAccountRoles(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceAccountRolesOut {
return try await getServiceAccountRolesWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the roles a service account holds.
- GET /v1/o11y/service_accounts/{id}/roles
- Lists the roles a service account holds.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceAccountRolesOut>
*/
open class func getServiceAccountRolesWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceAccountRolesOut> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/roles"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceAccountRolesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Tells a sign-in page what an email address can do: which orgs the address belongs to and, per org, which password and SSO routes are open to it.
- parameter email: (query) Email is the address about to sign in. Required. (optional)
- parameter ref: (query) Ref is the page the sign-in started from, carried into SSO redirects. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySessionContextOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getSessionContext(email: String? = nil, ref: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySessionContextOut {
return try await getSessionContextWithRequestBuilder(email: email, ref: ref, apiConfiguration: apiConfiguration).execute().body
}
/**
Tells a sign-in page what an email address can do: which orgs the address belongs to and, per org, which password and SSO routes are open to it.
- GET /v1/o11y/sessions/context
- Tells a sign-in page what an email address can do: which orgs the address belongs to and, per org, which password and SSO routes are open to it. Unauthenticated: it runs before any session exists.
- Bearer Token:
- type: http
- name: bearer
- parameter email: (query) Email is the address about to sign in. Required. (optional)
- parameter ref: (query) Ref is the page the sign-in started from, carried into SSO redirects. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySessionContextOut>
*/
open class func getSessionContextWithRequestBuilder(email: String? = nil, ref: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySessionContextOut> {
let localVariablePath = "/v1/o11y/sessions/context"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"email": (wrappedValue: email?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"ref": (wrappedValue: ref?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySessionContextOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the org's quick filters for one signal — traces, logs, metrics, exceptions or api_monitoring.
- parameter signal: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySignalFiltersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getSignalFilters(signal: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySignalFiltersOut {
return try await getSignalFiltersWithRequestBuilder(signal: signal, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the org's quick filters for one signal — traces, logs, metrics, exceptions or api_monitoring.
- GET /v1/o11y/orgs/me/filters/{signal}
- Returns the org's quick filters for one signal — traces, logs, metrics, exceptions or api_monitoring. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter signal: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySignalFiltersOut>
*/
open class func getSignalFiltersWithRequestBuilder(signal: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySignalFiltersOut> {
var localVariablePath = "/v1/o11y/orgs/me/filters/{signal}"
let signalPreEscape = "\(APIHelper.mapValueToPathItem(signal))"
let signalPostEscape = signalPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{signal}", with: signalPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySignalFiltersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Computes span aggregations over one trace — span count, duration or share of execution time — grouped by the resource field each aggregation names.
- parameter traceId: (path)
- parameter o11yO11yTraceAggregationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTraceAggregationsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceAggregations(traceId: String, o11yO11yTraceAggregationsIn: O11yO11yTraceAggregationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTraceAggregationsOut {
return try await getTraceAggregationsWithRequestBuilder(traceId: traceId, o11yO11yTraceAggregationsIn: o11yO11yTraceAggregationsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Computes span aggregations over one trace — span count, duration or share of execution time — grouped by the resource field each aggregation names.
- POST /v1/o11y/traces/{traceId}/aggregations
- Computes span aggregations over one trace — span count, duration or share of execution time — grouped by the resource field each aggregation names. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (path)
- parameter o11yO11yTraceAggregationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTraceAggregationsOut>
*/
open class func getTraceAggregationsWithRequestBuilder(traceId: String, o11yO11yTraceAggregationsIn: O11yO11yTraceAggregationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTraceAggregationsOut> {
var localVariablePath = "/v1/o11y/traces/{traceId}/aggregations"
let traceIdPreEscape = "\(APIHelper.mapValueToPathItem(traceId))"
let traceIdPostEscape = traceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{traceId}", with: traceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yTraceAggregationsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTraceAggregationsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the trace field catalog: the span fields already selected as indexed columns, and the interesting ones seen in the data that could be.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldCatalogOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFields(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldCatalogOut {
return try await getTraceFieldsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the trace field catalog: the span fields already selected as indexed columns, and the interesting ones seen in the data that could be.
- GET /v1/o11y/traces/fields
- Returns the trace field catalog: the span fields already selected as indexed columns, and the interesting ones seen in the data that could be. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldCatalogOut>
*/
open class func getTraceFieldsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldCatalogOut> {
let localVariablePath = "/v1/o11y/traces/fields"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldCatalogOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one funnel with its steps.
- parameter funnelId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnel(funnelId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelOut {
return try await getTraceFunnelWithRequestBuilder(funnelId: funnelId, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one funnel with its steps.
- GET /v1/o11y/trace-funnels/{funnel_id}
- Returns one funnel with its steps. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelOut>
*/
open class func getTraceFunnelWithRequestBuilder(funnelId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the errored traces through a step transition of a saved funnel — the entry point for \"why is this step failing\".
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnelErrorTraces(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getTraceFunnelErrorTracesWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelStepWindowIn: o11yO11yFunnelStepWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the errored traces through a step transition of a saved funnel — the entry point for \"why is this step failing\".
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/error-traces
- Returns the errored traces through a step transition of a saved funnel — the entry point for \"why is this step failing\".
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getTraceFunnelErrorTracesWithRequestBuilder(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/error-traces"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelStepWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a saved funnel's conversion overview over a window: how many entered, how many converted, the rate and the latency.
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnelOverview(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getTraceFunnelOverviewWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelStepWindowIn: o11yO11yFunnelStepWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a saved funnel's conversion overview over a window: how many entered, how many converted, the rate and the latency.
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/overview
- Returns a saved funnel's conversion overview over a window: how many entered, how many converted, the rate and the latency.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getTraceFunnelOverviewWithRequestBuilder(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/overview"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelStepWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the slowest traces through a step transition of a saved funnel — the entry point for \"why is this step slow\".
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnelSlowTraces(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getTraceFunnelSlowTracesWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelStepWindowIn: o11yO11yFunnelStepWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the slowest traces through a step transition of a saved funnel — the entry point for \"why is this step slow\".
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/slow-traces
- Returns the slowest traces through a step transition of a saved funnel — the entry point for \"why is this step slow\".
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getTraceFunnelSlowTracesWithRequestBuilder(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/slow-traces"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelStepWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a saved funnel's per-step metrics over a window — the counts and latencies at each step, in step order.
- parameter funnelId: (path)
- parameter o11yO11yFunnelWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnelStepMetrics(funnelId: String, o11yO11yFunnelWindowIn: O11yO11yFunnelWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getTraceFunnelStepMetricsWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelWindowIn: o11yO11yFunnelWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a saved funnel's per-step metrics over a window — the counts and latencies at each step, in step order.
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/steps
- Returns a saved funnel's per-step metrics over a window — the counts and latencies at each step, in step order.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getTraceFunnelStepMetricsWithRequestBuilder(funnelId: String, o11yO11yFunnelWindowIn: O11yO11yFunnelWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/steps"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the conversion between two named steps of a saved funnel — the step-to-step drill-down behind the overview.
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getTraceFunnelStepOverview(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await getTraceFunnelStepOverviewWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelStepWindowIn: o11yO11yFunnelStepWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the conversion between two named steps of a saved funnel — the step-to-step drill-down behind the overview.
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/steps/overview
- Returns the conversion between two named steps of a saved funnel — the step-to-step drill-down behind the overview.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelStepWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func getTraceFunnelStepOverviewWithRequestBuilder(funnelId: String, o11yO11yFunnelStepWindowIn: O11yO11yFunnelStepWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/steps/overview"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelStepWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one org member together with every role they hold, by user id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yUserWithRolesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getUser(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yUserWithRolesOut {
return try await getUserWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one org member together with every role they hold, by user id.
- GET /v1/o11y/users/{id}
- Returns one org member together with every role they hold, by user id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yUserWithRolesOut>
*/
open class func getUserWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yUserWithRolesOut> {
var localVariablePath = "/v1/o11y/users/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yUserWithRolesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one org member with their single legacy role, by user id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDeprecatedUserOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getUserDeprecated(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDeprecatedUserOut {
return try await getUserDeprecatedWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one org member with their single legacy role, by user id.
- GET /v1/o11y/user/{id}
- Returns one org member with their single legacy role, by user id. Admins may read anyone; a non-admin only themselves (the runtime's self-access gate).
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDeprecatedUserOut>
*/
open class func getUserDeprecatedWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDeprecatedUserOut> {
var localVariablePath = "/v1/o11y/user/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDeprecatedUserOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one preference of the calling user, by name.
- parameter name: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPreferenceOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getUserPreference(name: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPreferenceOut {
return try await getUserPreferenceWithRequestBuilder(name: name, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one preference of the calling user, by name.
- GET /v1/o11y/user/preferences/{name}
- Returns one preference of the calling user, by name. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter name: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPreferenceOut>
*/
open class func getUserPreferenceWithRequestBuilder(name: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPreferenceOut> {
var localVariablePath = "/v1/o11y/user/preferences/{name}"
let namePreEscape = "\(APIHelper.mapValueToPathItem(name))"
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPreferenceOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns every org member holding a role, by role id.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yUsersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getUsersByRoleID(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yUsersOut {
return try await getUsersByRoleIDWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns every org member holding a role, by role id.
- GET /v1/o11y/roles/{id}/users
- Returns every org member holding a role, by role id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yUsersOut>
*/
open class func getUsersByRoleIDWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yUsersOut> {
var localVariablePath = "/v1/o11y/roles/{id}/users"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yUsersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a trace's waterfall: every span when the trace is small enough, a capped window around the selected span when it is not, with the uncollapsed subtrees the caller asked to keep open.
- parameter traceId: (path)
- parameter o11yO11yTraceWaterfallIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTraceWaterfallOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func getWaterfallV4(traceId: String, o11yO11yTraceWaterfallIn: O11yO11yTraceWaterfallIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTraceWaterfallOut {
return try await getWaterfallV4WithRequestBuilder(traceId: traceId, o11yO11yTraceWaterfallIn: o11yO11yTraceWaterfallIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a trace's waterfall: every span when the trace is small enough, a capped window around the selected span when it is not, with the uncollapsed subtrees the caller asked to keep open.
- POST /v1/o11y/traces/{traceId}/waterfall
- Returns a trace's waterfall: every span when the trace is small enough, a capped window around the selected span when it is not, with the uncollapsed subtrees the caller asked to keep open. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (path)
- parameter o11yO11yTraceWaterfallIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTraceWaterfallOut>
*/
open class func getWaterfallV4WithRequestBuilder(traceId: String, o11yO11yTraceWaterfallIn: O11yO11yTraceWaterfallIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTraceWaterfallOut> {
var localVariablePath = "/v1/o11y/traces/{traceId}/waterfall"
let traceIdPreEscape = "\(APIHelper.mapValueToPathItem(traceId))"
let traceIdPostEscape = traceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{traceId}", with: traceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yTraceWaterfallIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTraceWaterfallOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one metric's raw time series over a window of at most thirty minutes — each series with its labels and timestamp/value pairs.
- parameter o11yO11yMetricInspectIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricInspectOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func inspectMetrics(o11yO11yMetricInspectIn: O11yO11yMetricInspectIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricInspectOut {
return try await inspectMetricsWithRequestBuilder(o11yO11yMetricInspectIn: o11yO11yMetricInspectIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one metric's raw time series over a window of at most thirty minutes — each series with its labels and timestamp/value pairs.
- POST /v1/o11y/metrics/inspect
- Returns one metric's raw time series over a window of at most thirty minutes — each series with its labels and timestamp/value pairs.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yMetricInspectIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricInspectOut>
*/
open class func inspectMetricsWithRequestBuilder(o11yO11yMetricInspectIn: O11yO11yMetricInspectIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricInspectOut> {
let localVariablePath = "/v1/o11y/metrics/inspect"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yMetricInspectIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricInspectOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Installs an integration into the caller's org from its id and configuration, answering with the installed catalog item.
- parameter o11yInstallIntegrationRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInstallOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func installIntegration(o11yInstallIntegrationRequest: O11yInstallIntegrationRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInstallOut {
return try await installIntegrationWithRequestBuilder(o11yInstallIntegrationRequest: o11yInstallIntegrationRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Installs an integration into the caller's org from its id and configuration, answering with the installed catalog item.
- POST /v1/o11y/integrations/install
- Installs an integration into the caller's org from its id and configuration, answering with the installed catalog item. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yInstallIntegrationRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInstallOut>
*/
open class func installIntegrationWithRequestBuilder(o11yInstallIntegrationRequest: O11yInstallIntegrationRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInstallOut> {
let localVariablePath = "/v1/o11y/integrations/install"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yInstallIntegrationRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInstallOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the services metadata for one connected account of the given provider, by account id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServicesMetadataOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listAccountServicesMetadata(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServicesMetadataOut {
return try await listAccountServicesMetadataWithRequestBuilder(cloudProvider: cloudProvider, id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the services metadata for one connected account of the given provider, by account id.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services
- Lists the services metadata for one connected account of the given provider, by account id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServicesMetadataOut>
*/
open class func listAccountServicesMetadataWithRequestBuilder(cloudProvider: String, id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServicesMetadataOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServicesMetadataOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the cloud-integration accounts connected for the given provider.
- parameter cloudProvider: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAccountsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listAccounts(cloudProvider: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAccountsOut {
return try await listAccountsWithRequestBuilder(cloudProvider: cloudProvider, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the cloud-integration accounts connected for the given provider.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/accounts
- Lists the cloud-integration accounts connected for the given provider. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAccountsOut>
*/
open class func listAccountsWithRequestBuilder(cloudProvider: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAccountsOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAccountsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's auth domains — the email domains whose SSO configuration this org owns.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAuthDomainsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listAuthDomains(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAuthDomainsOut {
return try await listAuthDomainsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's auth domains — the email domains whose SSO configuration this org owns.
- GET /v1/o11y/domains
- Lists the org's auth domains — the email domains whose SSO configuration this org owns. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAuthDomainsOut>
*/
open class func listAuthDomainsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAuthDomainsOut> {
let localVariablePath = "/v1/o11y/domains"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAuthDomainsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's notification channels.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yChannelsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listChannels(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yChannelsOut {
return try await listChannelsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's notification channels.
- GET /v1/o11y/channels
- Lists the org's notification channels. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yChannelsOut>
*/
open class func listChannelsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yChannelsOut> {
let localVariablePath = "/v1/o11y/channels"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yChannelsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns every saved view in the calling user's org.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardViewListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listDashboardViews(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardViewListOut {
return try await listDashboardViewsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Returns every saved view in the calling user's org.
- GET /v1/o11y/dashboard_views
- Returns every saved view in the calling user's org. Saved views are shared org-wide. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardViewListOut>
*/
open class func listDashboardViewsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardViewListOut> {
let localVariablePath = "/v1/o11y/dashboard_views"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardViewListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Is dashboardListV2 personalized for the calling user: each dashboard carries the caller's pinned state, and pinned dashboards float to the top of the requested ordering.
- parameter query: (query) Query is the filter DSL over dashboard columns and tags, e.g. &#x60;name:cpu source:user&#x60;. Empty lists everything. (optional)
- parameter sort: (query) Sort is the sort field: updated_at, created_at or name. Empty sorts by updated_at. (optional)
- parameter order: (query) Order is the sort direction: asc or desc. Empty orders desc. (optional)
- parameter limit: (query) Limit caps how many dashboards come back. Zero means the default of 20; the runtime caps it at 200. (optional)
- parameter offset: (query) Offset is how many dashboards to skip for pagination. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardListForUserOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listDashboardsForUserV2(query: String? = nil, sort: String? = nil, order: String? = nil, limit: Int64? = nil, offset: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardListForUserOut {
return try await listDashboardsForUserV2WithRequestBuilder(query: query, sort: sort, order: order, limit: limit, offset: offset, apiConfiguration: apiConfiguration).execute().body
}
/**
Is dashboardListV2 personalized for the calling user: each dashboard carries the caller's pinned state, and pinned dashboards float to the top of the requested ordering.
- GET /v1/o11y/users/me/dashboards
- Is dashboardListV2 personalized for the calling user: each dashboard carries the caller's pinned state, and pinned dashboards float to the top of the requested ordering. Supports the same filter DSL, sort, order and pagination. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter query: (query) Query is the filter DSL over dashboard columns and tags, e.g. &#x60;name:cpu source:user&#x60;. Empty lists everything. (optional)
- parameter sort: (query) Sort is the sort field: updated_at, created_at or name. Empty sorts by updated_at. (optional)
- parameter order: (query) Order is the sort direction: asc or desc. Empty orders desc. (optional)
- parameter limit: (query) Limit caps how many dashboards come back. Zero means the default of 20; the runtime caps it at 200. (optional)
- parameter offset: (query) Offset is how many dashboards to skip for pagination. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardListForUserOut>
*/
open class func listDashboardsForUserV2WithRequestBuilder(query: String? = nil, sort: String? = nil, order: String? = nil, limit: Int64? = nil, offset: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardListForUserOut> {
let localVariablePath = "/v1/o11y/users/me/dashboards"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"query": (wrappedValue: query?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sort": (wrappedValue: sort?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"order": (wrappedValue: order?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardListForUserOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns a page of v2-shape dashboards for the org.
- parameter query: (query) Query is the filter DSL over dashboard columns and tags, e.g. &#x60;name:cpu source:user&#x60;. Empty lists everything. (optional)
- parameter sort: (query) Sort is the sort field: updated_at, created_at or name. Empty sorts by updated_at. (optional)
- parameter order: (query) Order is the sort direction: asc or desc. Empty orders desc. (optional)
- parameter limit: (query) Limit caps how many dashboards come back. Zero means the default of 20; the runtime caps it at 200. (optional)
- parameter offset: (query) Offset is how many dashboards to skip for pagination. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listDashboardsV2(query: String? = nil, sort: String? = nil, order: String? = nil, limit: Int64? = nil, offset: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardListOut {
return try await listDashboardsV2WithRequestBuilder(query: query, sort: sort, order: order, limit: limit, offset: offset, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns a page of v2-shape dashboards for the org.
- GET /v1/o11y/dashboards
- Returns a page of v2-shape dashboards for the org. This is the pure, user-independent list — it carries no pin state; use dashboardListForUserV2 for the personalized, pin-aware list. Supports a filter DSL (query), sort (updated_at/created_at/name), order (asc/desc), and offset-based pagination (limit/offset). Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter query: (query) Query is the filter DSL over dashboard columns and tags, e.g. &#x60;name:cpu source:user&#x60;. Empty lists everything. (optional)
- parameter sort: (query) Sort is the sort field: updated_at, created_at or name. Empty sorts by updated_at. (optional)
- parameter order: (query) Order is the sort direction: asc or desc. Empty orders desc. (optional)
- parameter limit: (query) Limit caps how many dashboards come back. Zero means the default of 20; the runtime caps it at 200. (optional)
- parameter offset: (query) Offset is how many dashboards to skip for pagination. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardListOut>
*/
open class func listDashboardsV2WithRequestBuilder(query: String? = nil, sort: String? = nil, order: String? = nil, limit: Int64? = nil, offset: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardListOut> {
let localVariablePath = "/v1/o11y/dashboards"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"query": (wrappedValue: query?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sort": (wrappedValue: sort?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"order": (wrappedValue: order?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists all planned maintenance windows, optionally narrowed to the active ones or the recurring ones.
- parameter active: (query) Active, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only the active or inactive windows. Absent lists all. (optional)
- parameter recurring: (query) Recurring, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only the recurring or one-off windows. Absent lists all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDowntimeSchedulesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listDowntimeSchedules(active: String? = nil, recurring: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDowntimeSchedulesOut {
return try await listDowntimeSchedulesWithRequestBuilder(active: active, recurring: recurring, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists all planned maintenance windows, optionally narrowed to the active ones or the recurring ones.
- GET /v1/o11y/downtime_schedules
- Lists all planned maintenance windows, optionally narrowed to the active ones or the recurring ones. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter active: (query) Active, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only the active or inactive windows. Absent lists all. (optional)
- parameter recurring: (query) Recurring, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only the recurring or one-off windows. Absent lists all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDowntimeSchedulesOut>
*/
open class func listDowntimeSchedulesWithRequestBuilder(active: String? = nil, recurring: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDowntimeSchedulesOut> {
let localVariablePath = "/v1/o11y/downtime_schedules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"active": (wrappedValue: active?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"recurring": (wrappedValue: recurring?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDowntimeSchedulesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the available integrations and whether each is installed in the caller's org, optionally narrowed to installed or not-installed.
- parameter isInstalled: (query) IsInstalled, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only integrations in that installed state; empty lists them all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIntegrationsListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listIntegrations(isInstalled: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIntegrationsListOut {
return try await listIntegrationsWithRequestBuilder(isInstalled: isInstalled, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the available integrations and whether each is installed in the caller's org, optionally narrowed to installed or not-installed.
- GET /v1/o11y/integrations
- Lists the available integrations and whether each is installed in the caller's org, optionally narrowed to installed or not-installed. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter isInstalled: (query) IsInstalled, when \&quot;true\&quot; or \&quot;false\&quot;, keeps only integrations in that installed state; empty lists them all. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIntegrationsListOut>
*/
open class func listIntegrationsWithRequestBuilder(isInstalled: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIntegrationsListOut> {
let localVariablePath = "/v1/o11y/integrations"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"is_installed": (wrappedValue: isInstalled?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIntegrationsListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists human annotations on traces and observations, optionally scoped to one review queue.
- parameter traceId: (query) TraceID narrows to annotations on one trace. (optional)
- parameter queue: (query) Queue narrows to one review queue. (optional)
- parameter status: (query) Status narrows to one review status, e.g. PENDING. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMAnnotationsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMAnnotations(traceId: String? = nil, queue: String? = nil, status: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMAnnotationsOut {
return try await listLLMAnnotationsWithRequestBuilder(traceId: traceId, queue: queue, status: status, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists human annotations on traces and observations, optionally scoped to one review queue.
- GET /v1/o11y/llm/annotation
- Lists human annotations on traces and observations, optionally scoped to one review queue. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (query) TraceID narrows to annotations on one trace. (optional)
- parameter queue: (query) Queue narrows to one review queue. (optional)
- parameter status: (query) Status narrows to one review status, e.g. PENDING. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMAnnotationsOut>
*/
open class func listLLMAnnotationsWithRequestBuilder(traceId: String? = nil, queue: String? = nil, status: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMAnnotationsOut> {
let localVariablePath = "/v1/o11y/llm/annotation"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"queue": (wrappedValue: queue?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"status": (wrappedValue: status?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMAnnotationsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists gen_ai spans as LLM observations — each an LLM call with its model, token counts, cost and latency projected from gen_ai.* attributes, newest first, over the query window.
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMObservationsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMObservations(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMObservationsOut {
return try await listLLMObservationsWithRequestBuilder(start: start, end: end, traceId: traceId, sessionId: sessionId, userId: userId, name: name, model: model, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists gen_ai spans as LLM observations — each an LLM call with its model, token counts, cost and latency projected from gen_ai.* attributes, newest first, over the query window.
- GET /v1/o11y/llm/observations
- Lists gen_ai spans as LLM observations — each an LLM call with its model, token counts, cost and latency projected from gen_ai.* attributes, newest first, over the query window. Callers need the viewer role; the runtime's own gate enforces it, and scopes the read to the caller's validated tenant.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMObservationsOut>
*/
open class func listLLMObservationsWithRequestBuilder(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMObservationsOut> {
let localVariablePath = "/v1/o11y/llm/observations"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sessionId": (wrappedValue: sessionId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"model": (wrappedValue: model?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMObservationsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the LLM pricing rules for the caller's org, with pagination and an optional search and override filter.
- parameter q: (query) Search matches rules by model or provider. (optional)
- parameter isOverride: (query) IsOverride, when \&quot;true\&quot; or \&quot;false\&quot;, narrows to user-pinned rules or to synced ones; empty returns both. It is a string because a query param is a string on the wire, and the runtime reads absent as \&quot;no filter\&quot;. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMPricingRulesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMPricingRules(q: String? = nil, isOverride: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMPricingRulesOut {
return try await listLLMPricingRulesWithRequestBuilder(q: q, isOverride: isOverride, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the LLM pricing rules for the caller's org, with pagination and an optional search and override filter.
- GET /v1/o11y/llm_pricing_rules
- Returns the LLM pricing rules for the caller's org, with pagination and an optional search and override filter. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter q: (query) Search matches rules by model or provider. (optional)
- parameter isOverride: (query) IsOverride, when \&quot;true\&quot; or \&quot;false\&quot;, narrows to user-pinned rules or to synced ones; empty returns both. It is a string because a query param is a string on the wire, and the runtime reads absent as \&quot;no filter\&quot;. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMPricingRulesOut>
*/
open class func listLLMPricingRulesWithRequestBuilder(q: String? = nil, isOverride: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMPricingRulesOut> {
let localVariablePath = "/v1/o11y/llm_pricing_rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"q": (wrappedValue: q?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"isOverride": (wrappedValue: isOverride?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMPricingRulesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists eval scores and human-feedback signals attached to traces and observations, newest first.
- parameter traceId: (query) TraceID narrows to scores on one trace. (optional)
- parameter observationId: (query) ObservationID narrows to scores on one observation. (optional)
- parameter name: (query) Name narrows to scores of one name. (optional)
- parameter source: (query) Source narrows to scores from one source, e.g. API, EVAL. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMScoresOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMScores(traceId: String? = nil, observationId: String? = nil, name: String? = nil, source: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMScoresOut {
return try await listLLMScoresWithRequestBuilder(traceId: traceId, observationId: observationId, name: name, source: source, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists eval scores and human-feedback signals attached to traces and observations, newest first.
- GET /v1/o11y/llm/scores
- Lists eval scores and human-feedback signals attached to traces and observations, newest first. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (query) TraceID narrows to scores on one trace. (optional)
- parameter observationId: (query) ObservationID narrows to scores on one observation. (optional)
- parameter name: (query) Name narrows to scores of one name. (optional)
- parameter source: (query) Source narrows to scores from one source, e.g. API, EVAL. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMScoresOut>
*/
open class func listLLMScoresWithRequestBuilder(traceId: String? = nil, observationId: String? = nil, name: String? = nil, source: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMScoresOut> {
let localVariablePath = "/v1/o11y/llm/scores"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"observationId": (wrappedValue: observationId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"source": (wrappedValue: source?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMScoresOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists conversations — gen_ai spans grouped by session.id, with their trace and observation counts, tokens and cost.
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMSessionsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMSessions(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMSessionsOut {
return try await listLLMSessionsWithRequestBuilder(start: start, end: end, traceId: traceId, sessionId: sessionId, userId: userId, name: name, model: model, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists conversations — gen_ai spans grouped by session.id, with their trace and observation counts, tokens and cost.
- GET /v1/o11y/llm/sessions
- Lists conversations — gen_ai spans grouped by session.id, with their trace and observation counts, tokens and cost. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMSessionsOut>
*/
open class func listLLMSessionsWithRequestBuilder(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMSessionsOut> {
let localVariablePath = "/v1/o11y/llm/sessions"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sessionId": (wrappedValue: sessionId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"model": (wrappedValue: model?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMSessionsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists LLM traces — gen_ai spans grouped by trace_id, with cost, tokens and latency rolled up across each trace.
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMTracesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMTraces(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMTracesOut {
return try await listLLMTracesWithRequestBuilder(start: start, end: end, traceId: traceId, sessionId: sessionId, userId: userId, name: name, model: model, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists LLM traces — gen_ai spans grouped by trace_id, with cost, tokens and latency rolled up across each trace.
- GET /v1/o11y/llm/traces
- Lists LLM traces — gen_ai spans grouped by trace_id, with cost, tokens and latency rolled up across each trace. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMTracesOut>
*/
open class func listLLMTracesWithRequestBuilder(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMTracesOut> {
let localVariablePath = "/v1/o11y/llm/traces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sessionId": (wrappedValue: sessionId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"model": (wrappedValue: model?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMTracesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists end users — gen_ai spans grouped by user.id, with their session, trace and observation counts, tokens and cost.
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLLMUsersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listLLMUsers(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLLMUsersOut {
return try await listLLMUsersWithRequestBuilder(start: start, end: end, traceId: traceId, sessionId: sessionId, userId: userId, name: name, model: model, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists end users — gen_ai spans grouped by user.id, with their session, trace and observation counts, tokens and cost.
- GET /v1/o11y/llm/users
- Lists end users — gen_ai spans grouped by user.id, with their session, trace and observation counts, tokens and cost. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the start of the window as a unix-millisecond epoch. Zero means 24h before the end. (optional)
- parameter end: (query) End is the end of the window as a unix-millisecond epoch. Zero means now. (optional)
- parameter traceId: (query) TraceID narrows the view to one trace. (optional)
- parameter sessionId: (query) SessionID narrows the view to one conversation. (optional)
- parameter userId: (query) UserID narrows the view to one end user. (optional)
- parameter name: (query) Name narrows the view to observations of one name. (optional)
- parameter model: (query) Model narrows the view to one model. (optional)
- parameter offset: (query) Offset is how many rows to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rows come back. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLLMUsersOut>
*/
open class func listLLMUsersWithRequestBuilder(start: Int64? = nil, end: Int64? = nil, traceId: String? = nil, sessionId: String? = nil, userId: String? = nil, name: String? = nil, model: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLLMUsersOut> {
let localVariablePath = "/v1/o11y/llm/users"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"traceId": (wrappedValue: traceId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"sessionId": (wrappedValue: sessionId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"model": (wrappedValue: model?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLLMUsersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's metric volume-control (label reduction) rules, pageable and sortable by name, volume or recency.
- parameter orderBy: (query) OrderBy sorts the page: metric, ingested_volume, reduced_volume or last_updated. Unset means ingested_volume. (optional)
- parameter order: (query) Order is asc or desc. Unset means desc. (optional)
- parameter search: (query) Search narrows the page to rules whose metric name contains it. (optional)
- parameter metricName: (query) MetricName narrows the page to one metric&#39;s rule. (optional)
- parameter offset: (query) Offset is how many rules to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rules come back, at most 1000. Unset means 10. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionRuleListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listMetricReductionRules(orderBy: String? = nil, order: String? = nil, search: String? = nil, metricName: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionRuleListOut {
return try await listMetricReductionRulesWithRequestBuilder(orderBy: orderBy, order: order, search: search, metricName: metricName, offset: offset, limit: limit, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's metric volume-control (label reduction) rules, pageable and sortable by name, volume or recency.
- GET /v1/o11y/metric_reduction_rules
- Lists the org's metric volume-control (label reduction) rules, pageable and sortable by name, volume or recency.
- Bearer Token:
- type: http
- name: bearer
- parameter orderBy: (query) OrderBy sorts the page: metric, ingested_volume, reduced_volume or last_updated. Unset means ingested_volume. (optional)
- parameter order: (query) Order is asc or desc. Unset means desc. (optional)
- parameter search: (query) Search narrows the page to rules whose metric name contains it. (optional)
- parameter metricName: (query) MetricName narrows the page to one metric&#39;s rule. (optional)
- parameter offset: (query) Offset is how many rules to skip, for paging. (optional)
- parameter limit: (query) Limit caps how many rules come back, at most 1000. Unset means 10. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionRuleListOut>
*/
open class func listMetricReductionRulesWithRequestBuilder(orderBy: String? = nil, order: String? = nil, search: String? = nil, metricName: String? = nil, offset: Int64? = nil, limit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionRuleListOut> {
let localVariablePath = "/v1/o11y/metric_reduction_rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"orderBy": (wrappedValue: orderBy?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"order": (wrappedValue: order?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"search": (wrappedValue: search?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"metricName": (wrappedValue: metricName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"offset": (wrappedValue: offset?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionRuleListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the distinct metric names seen in a time range, each with its description, type, unit, temporality and monotonicity.
- parameter start: (query) Start is the start of the window as a Unix timestamp in milliseconds. (optional)
- parameter end: (query) End is the end of the window as a Unix timestamp in milliseconds. (optional)
- parameter limit: (query) Limit caps how many metrics come back; unset means 100, at most 5000. (optional)
- parameter searchText: (query) SearchText narrows the page to metric names containing it. (optional)
- parameter source: (query) Source narrows the page by ingestion source. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listMetrics(start: Int64? = nil, end: Int64? = nil, limit: Int64? = nil, searchText: String? = nil, source: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricListOut {
return try await listMetricsWithRequestBuilder(start: start, end: end, limit: limit, searchText: searchText, source: source, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the distinct metric names seen in a time range, each with its description, type, unit, temporality and monotonicity.
- GET /v1/o11y/metrics
- Lists the distinct metric names seen in a time range, each with its description, type, unit, temporality and monotonicity.
- Bearer Token:
- type: http
- name: bearer
- parameter start: (query) Start is the start of the window as a Unix timestamp in milliseconds. (optional)
- parameter end: (query) End is the end of the window as a Unix timestamp in milliseconds. (optional)
- parameter limit: (query) Limit caps how many metrics come back; unset means 100, at most 5000. (optional)
- parameter searchText: (query) SearchText narrows the page to metric names containing it. (optional)
- parameter source: (query) Source narrows the page by ingestion source. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricListOut>
*/
open class func listMetricsWithRequestBuilder(start: Int64? = nil, end: Int64? = nil, limit: Int64? = nil, searchText: String? = nil, source: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricListOut> {
let localVariablePath = "/v1/o11y/metrics"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"start": (wrappedValue: start?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"end": (wrappedValue: end?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"searchText": (wrappedValue: searchText?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"source": (wrappedValue: source?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists every org-scoped preference, each with its current and default value.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPreferencesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listOrgPreferences(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPreferencesOut {
return try await listOrgPreferencesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists every org-scoped preference, each with its current and default value.
- GET /v1/o11y/org/preferences
- Lists every org-scoped preference, each with its current and default value. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPreferencesOut>
*/
open class func listOrgPreferencesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPreferencesOut> {
let localVariablePath = "/v1/o11y/org/preferences"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPreferencesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists every role in the caller's org — the managed ones the platform seeds and the custom ones its admins created.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRolesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listRoles(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRolesOut {
return try await listRolesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists every role in the caller's org — the managed ones the platform seeds and the custom ones its admins created.
- GET /v1/o11y/roles
- Lists every role in the caller's org — the managed ones the platform seeds and the custom ones its admins created.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRolesOut>
*/
open class func listRolesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRolesOut> {
let localVariablePath = "/v1/o11y/roles"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRolesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists all alert rules with their current evaluation state.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRulesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listRules(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRulesOut {
return try await listRulesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists all alert rules with their current evaluation state.
- GET /v1/o11y/rules
- Lists all alert rules with their current evaluation state. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRulesOut>
*/
open class func listRulesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRulesOut> {
let localVariablePath = "/v1/o11y/rules"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRulesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists a service account's API keys — metadata only, never the secrets.
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAPIKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listServiceAccountKeys(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAPIKeysOut {
return try await listServiceAccountKeysWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists a service account's API keys — metadata only, never the secrets.
- GET /v1/o11y/service_accounts/{id}/keys
- Lists a service account's API keys — metadata only, never the secrets.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAPIKeysOut>
*/
open class func listServiceAccountKeysWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAPIKeysOut> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/keys"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAPIKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's service accounts.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServiceAccountsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listServiceAccounts(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServiceAccountsOut {
return try await listServiceAccountsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's service accounts.
- GET /v1/o11y/service_accounts
- Lists the caller's org's service accounts.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServiceAccountsOut>
*/
open class func listServiceAccountsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServiceAccountsOut> {
let localVariablePath = "/v1/o11y/service_accounts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServiceAccountsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the services the given provider can collect from, optionally scoped to one cloud integration.
- parameter cloudProvider: (path)
- parameter cloudIntegrationId: (query) CloudIntegrationID, when set, scopes the listing to one cloud integration. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServicesMetadataOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listServicesMetadata(cloudProvider: String, cloudIntegrationId: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServicesMetadataOut {
return try await listServicesMetadataWithRequestBuilder(cloudProvider: cloudProvider, cloudIntegrationId: cloudIntegrationId, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the services the given provider can collect from, optionally scoped to one cloud integration.
- GET /v1/o11y/cloud_integrations/{cloud_provider}/services
- Lists the services the given provider can collect from, optionally scoped to one cloud integration. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter cloudIntegrationId: (query) CloudIntegrationID, when set, scopes the listing to one cloud integration. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServicesMetadataOut>
*/
open class func listServicesMetadataWithRequestBuilder(cloudProvider: String, cloudIntegrationId: String? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServicesMetadataOut> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/services"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"cloud_integration_id": (wrappedValue: cloudIntegrationId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServicesMetadataOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's mapping groups, optionally only the enabled ones.
- parameter enabled: (query) (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySpanMapperGroupsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listSpanMapperGroups(enabled: Bool? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySpanMapperGroupsOut {
return try await listSpanMapperGroupsWithRequestBuilder(enabled: enabled, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's mapping groups, optionally only the enabled ones.
- GET /v1/o11y/span_mapper_groups
- Lists the caller's org's mapping groups, optionally only the enabled ones. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter enabled: (query) (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySpanMapperGroupsOut>
*/
open class func listSpanMapperGroupsWithRequestBuilder(enabled: Bool? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySpanMapperGroupsOut> {
let localVariablePath = "/v1/o11y/span_mapper_groups"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"enabled": (wrappedValue: enabled?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySpanMapperGroupsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the mappers belonging to one group, in the order they are applied.
- parameter groupId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySpanMappersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listSpanMappers(groupId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySpanMappersOut {
return try await listSpanMappersWithRequestBuilder(groupId: groupId, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the mappers belonging to one group, in the order they are applied.
- GET /v1/o11y/span_mapper_groups/{groupId}/span_mappers
- Lists the mappers belonging to one group, in the order they are applied. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySpanMappersOut>
*/
open class func listSpanMappersWithRequestBuilder(groupId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySpanMappersOut> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}/span_mappers"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySpanMappersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org's funnels, each with its steps and who last touched it.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listTraceFunnels(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelsOut {
return try await listTraceFunnelsWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org's funnels, each with its steps and who last touched it.
- GET /v1/o11y/trace-funnels/list
- Lists the caller's org's funnels, each with its steps and who last touched it. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelsOut>
*/
open class func listTraceFunnelsWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists every preference of the calling user, each with its current and default value.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPreferencesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listUserPreferences(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPreferencesOut {
return try await listUserPreferencesWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists every preference of the calling user, each with its current and default value.
- GET /v1/o11y/user/preferences
- Lists every preference of the calling user, each with its current and default value. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPreferencesOut>
*/
open class func listUserPreferencesWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPreferencesOut> {
let localVariablePath = "/v1/o11y/user/preferences"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPreferencesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the caller's org members.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yUsersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listUsers(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yUsersOut {
return try await listUsersWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the caller's org members.
- GET /v1/o11y/users
- Lists the caller's org members. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yUsersOut>
*/
open class func listUsersWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yUsersOut> {
let localVariablePath = "/v1/o11y/users"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yUsersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the org's members with their single legacy role.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDeprecatedUsersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func listUsersDeprecated(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDeprecatedUsersOut {
return try await listUsersDeprecatedWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the org's members with their single legacy role.
- GET /v1/o11y/user
- Lists the org's members with their single legacy role. Deprecated in favor of listUsers, which answers without the role. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDeprecatedUsersOut>
*/
open class func listUsersDeprecatedWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDeprecatedUsersOut> {
let localVariablePath = "/v1/o11y/user"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDeprecatedUsersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Locks a v2-shape dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func lockDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await lockDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Locks a v2-shape dashboard.
- PUT /v1/o11y/dashboards/{id}/lock
- Locks a v2-shape dashboard. Only the dashboard's creator or an org admin may lock or unlock. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func lockDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboards/{id}/lock"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Applies an RFC 6902 JSON Patch to a v2-shape dashboard.
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yDashboardPatchIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func patchDashboardV2(id: String, o11yO11yDashboardPatchIn: O11yO11yDashboardPatchIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardOut {
return try await patchDashboardV2WithRequestBuilder(id: id, o11yO11yDashboardPatchIn: o11yO11yDashboardPatchIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Applies an RFC 6902 JSON Patch to a v2-shape dashboard.
- PATCH /v1/o11y/dashboards/{id}
- Applies an RFC 6902 JSON Patch to a v2-shape dashboard. The patch is applied against the postable view (metadata, spec, tags), so individual panels, queries, variables, layouts or tags can be updated without re-sending the rest. Apply is lenient — remove on a missing path is a no-op and add creates any missing parent objects — and the result is still validated. Locked dashboards are rejected. The request body is the bare JSON Patch operations array. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yDashboardPatchIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardOut>
*/
open class func patchDashboardV2WithRequestBuilder(id: String, o11yO11yDashboardPatchIn: O11yO11yDashboardPatchIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardPatchIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes a review queue's name, description or score-config set.
- parameter id: (path) ID is the annotation queue to update, from the path.
- parameter o11yUpdateQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnQueueView
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func patchO11yReviewsById(id: String, o11yUpdateQueueIn: O11yUpdateQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnQueueView {
return try await patchO11yReviewsByIdWithRequestBuilder(id: id, o11yUpdateQueueIn: o11yUpdateQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes a review queue's name, description or score-config set.
- PATCH /v1/o11y/reviews/{id}
- Changes a review queue's name, description or score-config set. A field the request omits is left alone. A name another queue in the same project already uses is a 409; a queue id belonging to another org is a 404.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue to update, from the path.
- parameter o11yUpdateQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnQueueView>
*/
open class func patchO11yReviewsByIdWithRequestBuilder(id: String, o11yUpdateQueueIn: O11yUpdateQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnQueueView> {
var localVariablePath = "/v1/o11y/reviews/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yUpdateQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnQueueView>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Moves one queue item between PENDING and COMPLETED and sets its assignee.
- parameter id: (path) ID is the annotation queue the item belongs to, from the path.
- parameter itemId: (path) ItemID is the item to update, from the path.
- parameter o11yUpdateItemIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnItemView
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func patchO11yReviewsByIdItemsByItemid(id: String, itemId: String, o11yUpdateItemIn: O11yUpdateItemIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnItemView {
return try await patchO11yReviewsByIdItemsByItemidWithRequestBuilder(id: id, itemId: itemId, o11yUpdateItemIn: o11yUpdateItemIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Moves one queue item between PENDING and COMPLETED and sets its assignee.
- PATCH /v1/o11y/reviews/{id}/items/{itemId}
- Moves one queue item between PENDING and COMPLETED and sets its assignee. Completing an item stamps its completedAt. An item that exists under a different queue answers the same 404 an unknown item does, and so does a queue belonging to another org.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue the item belongs to, from the path.
- parameter itemId: (path) ItemID is the item to update, from the path.
- parameter o11yUpdateItemIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnItemView>
*/
open class func patchO11yReviewsByIdItemsByItemidWithRequestBuilder(id: String, itemId: String, o11yUpdateItemIn: O11yUpdateItemIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnItemView> {
var localVariablePath = "/v1/o11y/reviews/{id}/items/{itemId}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let itemIdPreEscape = "\(APIHelper.mapValueToPathItem(itemId))"
let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yUpdateItemIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnItemView>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Applies a partial update to an alert rule, by id, answering with the stored rule — the common toggle for enabling or muting a rule.
- parameter id: (path)
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func patchRuleByID(id: String, body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRuleOut {
return try await patchRuleByIDWithRequestBuilder(id: id, body: body, apiConfiguration: apiConfiguration).execute().body
}
/**
Applies a partial update to an alert rule, by id, answering with the stored rule — the common toggle for enabling or muting a rule.
- PATCH /v1/o11y/rules/{id}
- Applies a partial update to an alert rule, by id, answering with the stored rule — the common toggle for enabling or muting a rule. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRuleOut>
*/
open class func patchRuleByIDWithRequestBuilder(id: String, body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRuleOut> {
var localVariablePath = "/v1/o11y/rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Pins a dashboard for the calling user.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func pinDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await pinDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Pins a dashboard for the calling user.
- PUT /v1/o11y/users/me/dashboards/{id}/pins
- Pins a dashboard for the calling user. A user can pin at most ten dashboards; pinning at the limit refuses with the runtime's conflict. Re-pinning an already-pinned dashboard is a no-op success. Pinning mutates only the caller's pin list, not the dashboard, so a viewer may pin what a viewer may read. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func pinDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/users/me/dashboards/{id}/pins"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Take an Alertmanager notification and page a human
- parameter receiver: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yAlertsByReceiver(receiver: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await postO11yAlertsByReceiverWithRequestBuilder(receiver: receiver, apiConfiguration: apiConfiguration).execute().body
}
/**
Take an Alertmanager notification and page a human
- POST /v1/o11y/alerts/{receiver}
- Records one Alertmanager webhook delivery and pages the on-call. Each alert prints an `ALERT-RECEIVED` line and joins the replay ring, then the batch is carried out of the process by the egress chain: the org's KMS-custodied Slack bot token first (the ONE product Slack egress, not a second webhook credential), falling back to a plain POST to `CLOUD_ALERTS_WEBHOOK_URL` — which needs no Slack connection and so works in exactly the state that silences the first. Resolved notifications page too: \"it recovered\" is the half of an incident people are actually waiting for. THE STATUS CODE REPORTS DELIVERY, NOT ARRIVAL. 200 `ok` means an egress accepted the batch. If none did — including when none is configured at all — it answers **503** naming the failure, so Alertmanager retries and counts it in `alertmanager_notifications_failed_total`. An alert nobody could be told about must never answer the same way as one that was delivered. A body that will not parse is still recorded (with empty fields) rather than rejected: the delivery happened, which is the fact being recorded, and a 400 would make Alertmanager retry a malformed payload forever. The receiver segment is Alertmanager's own receiver name, a parameter rather than a hand-listed route because the receiver set is config, not code.
- Bearer Token:
- type: http
- name: bearer
- parameter receiver: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func postO11yAlertsByReceiverWithRequestBuilder(receiver: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/alerts/{receiver}"
let receiverPreEscape = "\(APIHelper.mapValueToPathItem(receiver))"
let receiverPostEscape = receiverPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{receiver}", with: receiverPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Receive a Sentry envelope on the SDK's own DSN path
- parameter projectId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yApiByProjectIdEnvelope(projectId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await postO11yApiByProjectIdEnvelopeWithRequestBuilder(projectId: projectId, apiConfiguration: apiConfiguration).execute().body
}
/**
Receive a Sentry envelope on the SDK's own DSN path
- POST /v1/o11y/api/{project_id}/envelope/
- Accepts an application/x-sentry-envelope frame from a Sentry SDK — the batched wire format carrying events, sessions and attachments — and ingests it against the project named in the path. THE /api/ SEGMENT IS NOT OURS TO NAME. An SDK appends its own fixed /api/<project>/envelope/ suffix to whatever DSN it is given, so this address is the SDK's, received verbatim. We receive this shape; we do not publish it. The clean spelling of the same wire is /v1/event/{project}/envelope/. AUTHENTICATED BY THE DSN PUBLIC KEY, never a Hanzo session, and therefore exempt from the principal gate: the ingest verifier checks the key in constant time, fails closed, and derives the org from it. A keyless submission is a 401 from that verifier — not a 403 from the gate, and not a 404 — which is how you tell the hops apart. The exemption is matched by method plus prefix plus suffix, never a bare prefix, so no read is reachable through it.
- Bearer Token:
- type: http
- name: bearer
- parameter projectId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func postO11yApiByProjectIdEnvelopeWithRequestBuilder(projectId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/api/{project_id}/envelope/"
let projectIdPreEscape = "\(APIHelper.mapValueToPathItem(projectId))"
let projectIdPostEscape = projectIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{project_id}", with: projectIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Receive a single Sentry event on the SDK's own DSN path
- parameter projectId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yApiByProjectIdStore(projectId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await postO11yApiByProjectIdStoreWithRequestBuilder(projectId: projectId, apiConfiguration: apiConfiguration).execute().body
}
/**
Receive a single Sentry event on the SDK's own DSN path
- POST /v1/o11y/api/{project_id}/store/
- The legacy single-event form of the envelope ingest: one JSON event rather than a framed batch, kept because SDKs in the field still send it. Same address ownership and same authentication as the envelope route — the /api/ segment is the SDK's, the DSN public key is the credential, the principal gate does not apply, and a keyless submission is a 401 from the ingest verifier.
- Bearer Token:
- type: http
- name: bearer
- parameter projectId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func postO11yApiByProjectIdStoreWithRequestBuilder(projectId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/api/{project_id}/store/"
let projectIdPreEscape = "\(APIHelper.mapValueToPathItem(projectId))"
let projectIdPostEscape = projectIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{project_id}", with: projectIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Reads the attribute-value request from the body rather than off the query string — the spelling the newer builder uses to send its filters alongside the request.
- parameter o11yFilterAttributeValueRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAttributeValuesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yAutoCompleteAttributeValues(o11yFilterAttributeValueRequest: O11yFilterAttributeValueRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAttributeValuesOut {
return try await postO11yAutoCompleteAttributeValuesWithRequestBuilder(o11yFilterAttributeValueRequest: o11yFilterAttributeValueRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Reads the attribute-value request from the body rather than off the query string — the spelling the newer builder uses to send its filters alongside the request.
- POST /v1/o11y/auto_complete/attribute_values
- Reads the attribute-value request from the body rather than off the query string — the spelling the newer builder uses to send its filters alongside the request. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yFilterAttributeValueRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAttributeValuesOut>
*/
open class func postO11yAutoCompleteAttributeValuesWithRequestBuilder(o11yFilterAttributeValueRequest: O11yFilterAttributeValueRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAttributeValuesOut> {
let localVariablePath = "/v1/o11y/auto_complete/attribute_values"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yFilterAttributeValueRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAttributeValuesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes clusters over a time range, each with its CPU and memory usage against allocatable capacity and its attributes; filterable, groupable and paginated.
- parameter o11yClusterListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yClusterListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yClustersList(o11yClusterListRequest: O11yClusterListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yClusterListOut {
return try await postO11yClustersListWithRequestBuilder(o11yClusterListRequest: o11yClusterListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes clusters over a time range, each with its CPU and memory usage against allocatable capacity and its attributes; filterable, groupable and paginated.
- POST /v1/o11y/clusters/list
- Lists Kubernetes clusters over a time range, each with its CPU and memory usage against allocatable capacity and its attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yClusterListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yClusterListOut>
*/
open class func postO11yClustersListWithRequestBuilder(o11yClusterListRequest: O11yClusterListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yClusterListOut> {
let localVariablePath = "/v1/o11y/clusters/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yClusterListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yClusterListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Complete a SAML sign-in
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yCompleteSaml(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await postO11yCompleteSamlWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Complete a SAML sign-in
- POST /v1/o11y/complete/saml
- The assertion consumer service: the identity provider POSTs its signed assertion here, and a valid one establishes the session and answers 303 to the console. A redirect, not a value, so it is not a typed operation. UNAUTHENTICATED by necessity and authenticated in fact by the assertion's signature, which is checked against the configured provider before any session exists.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func postO11yCompleteSamlWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/complete/saml"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Counts the grouped exceptions in the query window for the caller's org.
- parameter o11yO11yErrorsCountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Int
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yCounterrors(o11yO11yErrorsCountIn: O11yO11yErrorsCountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> Int {
return try await postO11yCounterrorsWithRequestBuilder(o11yO11yErrorsCountIn: o11yO11yErrorsCountIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Counts the grouped exceptions in the query window for the caller's org.
- POST /v1/o11y/countErrors
- Counts the grouped exceptions in the query window for the caller's org. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yErrorsCountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Int>
*/
open class func postO11yCounterrorsWithRequestBuilder(o11yO11yErrorsCountIn: O11yO11yErrorsCountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Int> {
let localVariablePath = "/v1/o11y/countErrors"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yErrorsCountIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Int>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes daemonsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available node counts, restarts and attributes; filterable, groupable and paginated.
- parameter o11yDaemonSetListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDaemonSetListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yDaemonsetsList(o11yDaemonSetListRequest: O11yDaemonSetListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDaemonSetListOut {
return try await postO11yDaemonsetsListWithRequestBuilder(o11yDaemonSetListRequest: o11yDaemonSetListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes daemonsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available node counts, restarts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/daemonsets/list
- Lists Kubernetes daemonsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available node counts, restarts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yDaemonSetListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDaemonSetListOut>
*/
open class func postO11yDaemonsetsListWithRequestBuilder(o11yDaemonSetListRequest: O11yDaemonSetListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDaemonSetListOut> {
let localVariablePath = "/v1/o11y/daemonsets/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yDaemonSetListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDaemonSetListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the service dependency graph over the requested window: every parent→child edge observed, with call and error rates and latency percentiles per edge.
- parameter o11yO11yDependencyGraphIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: [O11yO11yDependency]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yDependencyGraph(o11yO11yDependencyGraphIn: O11yO11yDependencyGraphIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [O11yO11yDependency] {
return try await postO11yDependencyGraphWithRequestBuilder(o11yO11yDependencyGraphIn: o11yO11yDependencyGraphIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the service dependency graph over the requested window: every parent→child edge observed, with call and error rates and latency percentiles per edge.
- POST /v1/o11y/dependency_graph
- Returns the service dependency graph over the requested window: every parent→child edge observed, with call and error rates and latency percentiles per edge. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDependencyGraphIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[O11yO11yDependency]>
*/
open class func postO11yDependencyGraphWithRequestBuilder(o11yO11yDependencyGraphIn: O11yO11yDependencyGraphIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[O11yO11yDependency]> {
let localVariablePath = "/v1/o11y/dependency_graph"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDependencyGraphIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[O11yO11yDependency]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes deployments over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- parameter o11yDeploymentListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDeploymentListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yDeploymentsList(o11yDeploymentListRequest: O11yDeploymentListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDeploymentListOut {
return try await postO11yDeploymentsListWithRequestBuilder(o11yDeploymentListRequest: o11yDeploymentListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes deployments over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/deployments/list
- Lists Kubernetes deployments over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yDeploymentListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDeploymentListOut>
*/
open class func postO11yDeploymentsListWithRequestBuilder(o11yDeploymentListRequest: O11yDeploymentListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDeploymentListOut> {
let localVariablePath = "/v1/o11y/deployments/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yDeploymentListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDeploymentListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue.
- parameter id: (path) ID is the issue id.
- parameter o11yO11yErrorUpdateIssueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorIssueOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yErrortrackingIssuesById(id: String, o11yO11yErrorUpdateIssueIn: O11yO11yErrorUpdateIssueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorIssueOut {
return try await postO11yErrortrackingIssuesByIdWithRequestBuilder(id: id, o11yO11yErrorUpdateIssueIn: o11yO11yErrorUpdateIssueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue.
- POST /v1/o11y/errortracking/issues/{id}
- Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue. Fields left unset are left unchanged. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the issue id.
- parameter o11yO11yErrorUpdateIssueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorIssueOut>
*/
open class func postO11yErrortrackingIssuesByIdWithRequestBuilder(id: String, o11yO11yErrorUpdateIssueIn: O11yO11yErrorUpdateIssueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorIssueOut> {
var localVariablePath = "/v1/o11y/errortracking/issues/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yErrorUpdateIssueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorIssueOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Records one product-analytics event for the signed-in user — a track event with a name and free-form attributes.
- parameter o11yO11yEventIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMessage
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yEvent(o11yO11yEventIn: O11yO11yEventIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMessage {
return try await postO11yEventWithRequestBuilder(o11yO11yEventIn: o11yO11yEventIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Records one product-analytics event for the signed-in user — a track event with a name and free-form attributes.
- POST /v1/o11y/event
- Records one product-analytics event for the signed-in user — a track event with a name and free-form attributes. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yEventIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMessage>
*/
open class func postO11yEventWithRequestBuilder(o11yO11yEventIn: O11yO11yEventIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMessage> {
let localVariablePath = "/v1/o11y/event"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yEventIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMessage>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Saves a new explorer view for the caller's org and returns its id.
- parameter o11ySavedView: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySavedViewCreateOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yExplorerViews(o11ySavedView: O11ySavedView, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySavedViewCreateOut {
return try await postO11yExplorerViewsWithRequestBuilder(o11ySavedView: o11ySavedView, apiConfiguration: apiConfiguration).execute().body
}
/**
Saves a new explorer view for the caller's org and returns its id.
- POST /v1/o11y/explorer/views
- Saves a new explorer view for the caller's org and returns its id. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11ySavedView: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySavedViewCreateOut>
*/
open class func postO11yExplorerViewsWithRequestBuilder(o11ySavedView: O11ySavedView, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySavedViewCreateOut> {
let localVariablePath = "/v1/o11y/explorer/views"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11ySavedView, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySavedViewCreateOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Export raw telemetry rows as a file
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yExportRawData(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await postO11yExportRawDataWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body
}
/**
Export raw telemetry rows as a file
- POST /v1/o11y/export_raw_data
- Runs a query and returns its rows as a downloadable CSV or JSONL attachment, chunked, with a trailer that says whether the export completed — so a truncated download is detectable rather than silently short. The answer is a file, not a value, which is why it is not a typed operation: the body is neither JSON nor bounded. Use the query operations when you want rows in a response. A validated, org-scoped principal is required and the export carries that principal's own tenant only.
- Bearer Token:
- type: http
- name: bearer
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func postO11yExportRawDataWithRequestBuilder(apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/export_raw_data"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists monitored hosts over a time range, each with its CPU, memory, I/O wait and 15-minute load, whether it is actively reporting, its OS and its attributes; filterable, groupable and paginated.
- parameter o11yHostListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yHostListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yHostsList(o11yHostListRequest: O11yHostListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yHostListOut {
return try await postO11yHostsListWithRequestBuilder(o11yHostListRequest: o11yHostListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists monitored hosts over a time range, each with its CPU, memory, I/O wait and 15-minute load, whether it is actively reporting, its OS and its attributes; filterable, groupable and paginated.
- POST /v1/o11y/hosts/list
- Lists monitored hosts over a time range, each with its CPU, memory, I/O wait and 15-minute load, whether it is actively reporting, its OS and its attributes; filterable, groupable and paginated. The answer also says whether any host metrics were received at all and which clusters and nodes sent them, so an empty page is distinguishable from a fleet that never reported.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yHostListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yHostListOut>
*/
open class func postO11yHostsListWithRequestBuilder(o11yHostListRequest: O11yHostListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yHostListOut> {
let localVariablePath = "/v1/o11y/hosts/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yHostListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yHostListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes clusters with CPU and memory usage against allocatable capacity summed over their nodes, plus per-group node readiness and pod phase counts.
- parameter o11yPostableClusters: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraClustersOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringClusters(o11yPostableClusters: O11yPostableClusters, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraClustersOut {
return try await postO11yInfraMonitoringClustersWithRequestBuilder(o11yPostableClusters: o11yPostableClusters, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes clusters with CPU and memory usage against allocatable capacity summed over their nodes, plus per-group node readiness and pod phase counts.
- POST /v1/o11y/infra_monitoring/clusters
- Lists Kubernetes clusters with CPU and memory usage against allocatable capacity summed over their nodes, plus per-group node readiness and pod phase counts. Rows answer as 'list' under the default k8s.cluster.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by usage or allocatable, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableClusters: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraClustersOut>
*/
open class func postO11yInfraMonitoringClustersWithRequestBuilder(o11yPostableClusters: O11yPostableClusters, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraClustersOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/clusters"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableClusters, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraClustersOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes daemonsets with the CPU and memory their pods used against request and limit, the latest desired and current scheduled NODE counts (node counts, not pod counts), and per-group pod phase counts.
- parameter o11yPostableDaemonSets: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraDaemonSetsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringDaemonsets(o11yPostableDaemonSets: O11yPostableDaemonSets, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraDaemonSetsOut {
return try await postO11yInfraMonitoringDaemonsetsWithRequestBuilder(o11yPostableDaemonSets: o11yPostableDaemonSets, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes daemonsets with the CPU and memory their pods used against request and limit, the latest desired and current scheduled NODE counts (node counts, not pod counts), and per-group pod phase counts.
- POST /v1/o11y/infra_monitoring/daemonsets
- Lists Kubernetes daemonsets with the CPU and memory their pods used against request and limit, the latest desired and current scheduled NODE counts (node counts, not pod counts), and per-group pod phase counts. Rows answer as 'list' under the default k8s.daemonset.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by the pod metrics or the node counts, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableDaemonSets: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraDaemonSetsOut>
*/
open class func postO11yInfraMonitoringDaemonsetsWithRequestBuilder(o11yPostableDaemonSets: O11yPostableDaemonSets, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraDaemonSetsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/daemonsets"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableDaemonSets, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraDaemonSetsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes deployments with the CPU and memory their pods used against request and limit, the latest desired and available replica counts, and per-group pod phase counts.
- parameter o11yPostableDeployments: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraDeploymentsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringDeployments(o11yPostableDeployments: O11yPostableDeployments, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraDeploymentsOut {
return try await postO11yInfraMonitoringDeploymentsWithRequestBuilder(o11yPostableDeployments: o11yPostableDeployments, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes deployments with the CPU and memory their pods used against request and limit, the latest desired and available replica counts, and per-group pod phase counts.
- POST /v1/o11y/infra_monitoring/deployments
- Lists Kubernetes deployments with the CPU and memory their pods used against request and limit, the latest desired and available replica counts, and per-group pod phase counts. Rows answer as 'list' under the default k8s.deployment.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by the pod metrics or the replica counts, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableDeployments: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraDeploymentsOut>
*/
open class func postO11yInfraMonitoringDeploymentsWithRequestBuilder(o11yPostableDeployments: O11yPostableDeployments, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraDeploymentsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/deployments"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableDeployments, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraDeploymentsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists hosts with key infrastructure metrics — CPU, memory, I/O wait and disk usage percentages and 15-minute load — plus an active/inactive status from whether the host reported in the last ten minutes.
- parameter o11yPostableHosts: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraHostsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringHosts(o11yPostableHosts: O11yPostableHosts, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraHostsOut {
return try await postO11yInfraMonitoringHostsWithRequestBuilder(o11yPostableHosts: o11yPostableHosts, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists hosts with key infrastructure metrics — CPU, memory, I/O wait and disk usage percentages and 15-minute load — plus an active/inactive status from whether the host reported in the last ten minutes.
- POST /v1/o11y/infra_monitoring/hosts
- Lists hosts with key infrastructure metrics — CPU, memory, I/O wait and disk usage percentages and 15-minute load — plus an active/inactive status from whether the host reported in the last ten minutes. Rows answer as 'list' under the default host.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression and by status, orderable by any of the five metrics, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableHosts: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraHostsOut>
*/
open class func postO11yInfraMonitoringHostsWithRequestBuilder(o11yPostableHosts: O11yPostableHosts, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraHostsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/hosts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableHosts, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraHostsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes jobs with the CPU and memory their pods used against request and limit, the latest desired-successful, active, failed and successful pod counters, and per-group pod phase counts — the phase counts are current state while the counters are cumulative over the job's life.
- parameter o11yPostableJobs: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraJobsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringJobs(o11yPostableJobs: O11yPostableJobs, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraJobsOut {
return try await postO11yInfraMonitoringJobsWithRequestBuilder(o11yPostableJobs: o11yPostableJobs, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes jobs with the CPU and memory their pods used against request and limit, the latest desired-successful, active, failed and successful pod counters, and per-group pod phase counts — the phase counts are current state while the counters are cumulative over the job's life.
- POST /v1/o11y/infra_monitoring/jobs
- Lists Kubernetes jobs with the CPU and memory their pods used against request and limit, the latest desired-successful, active, failed and successful pod counters, and per-group pod phase counts — the phase counts are current state while the counters are cumulative over the job's life. Rows answer as 'list' under the default k8s.job.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by the pod metrics or the job counters, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableJobs: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraJobsOut>
*/
open class func postO11yInfraMonitoringJobsWithRequestBuilder(o11yPostableJobs: O11yPostableJobs, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraJobsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/jobs"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableJobs, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraJobsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes namespaces with the CPU and memory their pods used and per-group pod phase counts.
- parameter o11yPostableNamespaces: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraNamespacesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringNamespaces(o11yPostableNamespaces: O11yPostableNamespaces, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraNamespacesOut {
return try await postO11yInfraMonitoringNamespacesWithRequestBuilder(o11yPostableNamespaces: o11yPostableNamespaces, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes namespaces with the CPU and memory their pods used and per-group pod phase counts.
- POST /v1/o11y/infra_monitoring/namespaces
- Lists Kubernetes namespaces with the CPU and memory their pods used and per-group pod phase counts. Rows answer as 'list' under the default k8s.namespace.name grouping or 'grouped_list' under a custom groupBy, aggregating pods either way; a metric with no data in the window answers -1. Filterable by expression, orderable by cpu or memory, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableNamespaces: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraNamespacesOut>
*/
open class func postO11yInfraMonitoringNamespacesWithRequestBuilder(o11yPostableNamespaces: O11yPostableNamespaces, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraNamespacesOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/namespaces"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableNamespaces, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraNamespacesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes nodes with CPU and memory usage against allocatable capacity, per-group readiness counts and per-group phase counts for the pods scheduled on them.
- parameter o11yPostableNodes: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraNodesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringNodes(o11yPostableNodes: O11yPostableNodes, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraNodesOut {
return try await postO11yInfraMonitoringNodesWithRequestBuilder(o11yPostableNodes: o11yPostableNodes, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes nodes with CPU and memory usage against allocatable capacity, per-group readiness counts and per-group phase counts for the pods scheduled on them.
- POST /v1/o11y/infra_monitoring/nodes
- Lists Kubernetes nodes with CPU and memory usage against allocatable capacity, per-group readiness counts and per-group phase counts for the pods scheduled on them. Rows answer as 'list' under the default k8s.node.name grouping (each row one node with its readiness condition) or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by usage or allocatable, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableNodes: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraNodesOut>
*/
open class func postO11yInfraMonitoringNodesWithRequestBuilder(o11yPostableNodes: O11yPostableNodes, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraNodesOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/nodes"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableNodes, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraNodesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes pods with CPU and memory usage against request and limit, the pod's phase and its age, plus its namespace, node, owning workload and cluster attributes.
- parameter o11yPostablePods: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraPodsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringPods(o11yPostablePods: O11yPostablePods, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraPodsOut {
return try await postO11yInfraMonitoringPodsWithRequestBuilder(o11yPostablePods: o11yPostablePods, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes pods with CPU and memory usage against request and limit, the pod's phase and its age, plus its namespace, node, owning workload and cluster attributes.
- POST /v1/o11y/infra_monitoring/pods
- Lists Kubernetes pods with CPU and memory usage against request and limit, the pod's phase and its age, plus its namespace, node, owning workload and cluster attributes. Rows answer as 'list' under the default k8s.pod.uid grouping (each row one pod) or 'grouped_list' under a custom groupBy (each row aggregating its pods with per-phase counts); a metric with no data in the window answers -1. Filterable by expression, orderable by the six pod metrics, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostablePods: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraPodsOut>
*/
open class func postO11yInfraMonitoringPodsWithRequestBuilder(o11yPostablePods: O11yPostablePods, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraPodsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/pods"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostablePods, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraPodsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes persistent volume claims with available, capacity and used bytes and inode counts, plus the claim's pod, namespace, node, statefulset and cluster attributes.
- parameter o11yPostableVolumes: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraVolumesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringPvcs(o11yPostableVolumes: O11yPostableVolumes, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraVolumesOut {
return try await postO11yInfraMonitoringPvcsWithRequestBuilder(o11yPostableVolumes: o11yPostableVolumes, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes persistent volume claims with available, capacity and used bytes and inode counts, plus the claim's pod, namespace, node, statefulset and cluster attributes.
- POST /v1/o11y/infra_monitoring/pvcs
- Lists Kubernetes persistent volume claims with available, capacity and used bytes and inode counts, plus the claim's pod, namespace, node, statefulset and cluster attributes. Rows answer as 'list' under the default k8s.persistentvolumeclaim.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by the six volume metrics, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableVolumes: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraVolumesOut>
*/
open class func postO11yInfraMonitoringPvcsWithRequestBuilder(o11yPostableVolumes: O11yPostableVolumes, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraVolumesOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/pvcs"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableVolumes, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraVolumesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes statefulsets with the CPU and memory their pods used against request and limit, the latest desired and current replica counts, and per-group pod phase counts.
- parameter o11yPostableStatefulSets: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yInfraStatefulSetsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yInfraMonitoringStatefulsets(o11yPostableStatefulSets: O11yPostableStatefulSets, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yInfraStatefulSetsOut {
return try await postO11yInfraMonitoringStatefulsetsWithRequestBuilder(o11yPostableStatefulSets: o11yPostableStatefulSets, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes statefulsets with the CPU and memory their pods used against request and limit, the latest desired and current replica counts, and per-group pod phase counts.
- POST /v1/o11y/infra_monitoring/statefulsets
- Lists Kubernetes statefulsets with the CPU and memory their pods used against request and limit, the latest desired and current replica counts, and per-group pod phase counts. Rows answer as 'list' under the default k8s.statefulset.name grouping or 'grouped_list' under a custom groupBy; a metric with no data in the window answers -1. Filterable by expression, orderable by the pod metrics or the replica counts, paginated by offset and limit.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableStatefulSets: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yInfraStatefulSetsOut>
*/
open class func postO11yInfraMonitoringStatefulsetsWithRequestBuilder(o11yPostableStatefulSets: O11yPostableStatefulSets, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yInfraStatefulSetsOut> {
let localVariablePath = "/v1/o11y/infra_monitoring/statefulsets"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableStatefulSets, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yInfraStatefulSetsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes jobs over a time range, each with the CPU and memory its pods used against request and limit, desired-successful, active, failed and successful pod counts, restarts and attributes; filterable, groupable and paginated.
- parameter o11yJobListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yJobListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yJobsList(o11yJobListRequest: O11yJobListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yJobListOut {
return try await postO11yJobsListWithRequestBuilder(o11yJobListRequest: o11yJobListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes jobs over a time range, each with the CPU and memory its pods used against request and limit, desired-successful, active, failed and successful pod counts, restarts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/jobs/list
- Lists Kubernetes jobs over a time range, each with the CPU and memory its pods used against request and limit, desired-successful, active, failed and successful pod counts, restarts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yJobListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yJobListOut>
*/
open class func postO11yJobsListWithRequestBuilder(o11yJobListRequest: O11yJobListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yJobListOut> {
let localVariablePath = "/v1/o11y/jobs/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yJobListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yJobListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the grouped exceptions in the query window — each an exception type with its message, count, service and first/last-seen — for the caller's org.
- parameter o11yO11yErrorsListIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: [O11yO11yListError]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yListerrors(o11yO11yErrorsListIn: O11yO11yErrorsListIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [O11yO11yListError] {
return try await postO11yListerrorsWithRequestBuilder(o11yO11yErrorsListIn: o11yO11yErrorsListIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the grouped exceptions in the query window — each an exception type with its message, count, service and first/last-seen — for the caller's org.
- POST /v1/o11y/listErrors
- Lists the grouped exceptions in the query window — each an exception type with its message, count, service and first/last-seen — for the caller's org. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yErrorsListIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[O11yO11yListError]>
*/
open class func postO11yListerrorsWithRequestBuilder(o11yO11yErrorsListIn: O11yO11yErrorsListIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[O11yO11yListError]> {
let localVariablePath = "/v1/o11y/listErrors"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yErrorsListIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[O11yO11yListError]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes how one log field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back.
- parameter o11yO11yFieldSetting: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldSetting
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yLogsFields(o11yO11yFieldSetting: O11yO11yFieldSetting, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldSetting {
return try await postO11yLogsFieldsWithRequestBuilder(o11yO11yFieldSetting: o11yO11yFieldSetting, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes how one log field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back.
- POST /v1/o11y/logs/fields
- Changes how one log field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yFieldSetting: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldSetting>
*/
open class func postO11yLogsFieldsWithRequestBuilder(o11yO11yFieldSetting: O11yO11yFieldSetting, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldSetting> {
let localVariablePath = "/v1/o11y/logs/fields"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFieldSetting, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldSetting>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Saves the given log parsing pipelines as the new config version for the caller's org and starts deploying it.
- parameter o11yO11yLogPipelineCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogPipelinesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yLogsPipelines(o11yO11yLogPipelineCreateIn: O11yO11yLogPipelineCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogPipelinesOut {
return try await postO11yLogsPipelinesWithRequestBuilder(o11yO11yLogPipelineCreateIn: o11yO11yLogPipelineCreateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Saves the given log parsing pipelines as the new config version for the caller's org and starts deploying it.
- POST /v1/o11y/logs/pipelines
- Saves the given log parsing pipelines as the new config version for the caller's org and starts deploying it. The set REPLACES the current one: a pipeline left out of the request is dropped from the new version, and an empty set drops them all. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLogPipelineCreateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogPipelinesOut>
*/
open class func postO11yLogsPipelinesWithRequestBuilder(o11yO11yLogPipelineCreateIn: O11yO11yLogPipelineCreateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogPipelinesOut> {
let localVariablePath = "/v1/o11y/logs/pipelines"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLogPipelineCreateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogPipelinesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Runs the given log parsing pipelines over the given sample records without saving anything, and returns the transformed records plus whatever the collector logged while simulating them.
- parameter o11yO11yLogPipelinePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogPipelinePreviewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yLogsPipelinesPreview(o11yO11yLogPipelinePreviewIn: O11yO11yLogPipelinePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogPipelinePreviewOut {
return try await postO11yLogsPipelinesPreviewWithRequestBuilder(o11yO11yLogPipelinePreviewIn: o11yO11yLogPipelinePreviewIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Runs the given log parsing pipelines over the given sample records without saving anything, and returns the transformed records plus whatever the collector logged while simulating them.
- POST /v1/o11y/logs/pipelines/preview
- Runs the given log parsing pipelines over the given sample records without saving anything, and returns the transformed records plus whatever the collector logged while simulating them. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLogPipelinePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogPipelinePreviewOut>
*/
open class func postO11yLogsPipelinesPreviewWithRequestBuilder(o11yO11yLogPipelinePreviewIn: O11yO11yLogPipelinePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogPipelinePreviewOut> {
let localVariablePath = "/v1/o11y/logs/pipelines/preview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLogPipelinePreviewIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogPipelinePreviewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Promotes and indexes log body paths: each named path is lifted out of the JSON body into its own column, with the indexes the caller asked for.
- parameter o11yO11yLogPromotePath: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yLogPromoteOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yLogsPromotePaths(o11yO11yLogPromotePath: [O11yO11yLogPromotePath], apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yLogPromoteOut {
return try await postO11yLogsPromotePathsWithRequestBuilder(o11yO11yLogPromotePath: o11yO11yLogPromotePath, apiConfiguration: apiConfiguration).execute().body
}
/**
Promotes and indexes log body paths: each named path is lifted out of the JSON body into its own column, with the indexes the caller asked for.
- POST /v1/o11y/logs/promote_paths
- Promotes and indexes log body paths: each named path is lifted out of the JSON body into its own column, with the indexes the caller asked for. Paths must start with \"body.\". Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yLogPromotePath: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yLogPromoteOut>
*/
open class func postO11yLogsPromotePathsWithRequestBuilder(o11yO11yLogPromotePath: [O11yO11yLogPromotePath], apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yLogPromoteOut> {
let localVariablePath = "/v1/o11y/logs/promote_paths"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yLogPromotePath, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yLogPromoteOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the consumer side of a consumer-lag view: the consumer groups reading the topic/partition named in variables, with their throughput and latency over the window.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaConsumerLagConsumerDetails(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaConsumerLagConsumerDetailsWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the consumer side of a consumer-lag view: the consumer groups reading the topic/partition named in variables, with their throughput and latency over the window.
- POST /v1/o11y/messaging-queues/kafka/consumer-lag/consumer-details
- Returns the consumer side of a consumer-lag view: the consumer groups reading the topic/partition named in variables, with their throughput and latency over the window.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaConsumerLagConsumerDetailsWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/consumer-lag/consumer-details"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns consumer network latency correlated per client: a throughput pass over the window finds the consumer clients, then their fetch latency joins in as a latency column per client/instance/service.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaConsumerLagNetworkLatency(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaConsumerLagNetworkLatencyWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns consumer network latency correlated per client: a throughput pass over the window finds the consumer clients, then their fetch latency joins in as a latency column per client/instance/service.
- POST /v1/o11y/messaging-queues/kafka/consumer-lag/network-latency
- Returns consumer network latency correlated per client: a throughput pass over the window finds the consumer clients, then their fetch latency joins in as a latency column per client/instance/service.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaConsumerLagNetworkLatencyWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/consumer-lag/network-latency"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the producer side of a consumer-lag view: the producers writing to the topic/partition named in variables, with their throughput and latency over the window.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaConsumerLagProducerDetails(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaConsumerLagProducerDetailsWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the producer side of a consumer-lag view: the producers writing to the topic/partition named in variables, with their throughput and latency over the window.
- POST /v1/o11y/messaging-queues/kafka/consumer-lag/producer-details
- Returns the producer side of a consumer-lag view: the producers writing to the topic/partition named in variables, with their throughput and latency over the window.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaConsumerLagProducerDetailsWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/consumer-lag/producer-details"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Checks whether the spans the Kafka consumer views need are arriving, row for row like producersOnboarding.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueueChecksOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaOnboardingConsumers(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueueChecksOut {
return try await postO11yMessagingQueuesKafkaOnboardingConsumersWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Checks whether the spans the Kafka consumer views need are arriving, row for row like producersOnboarding.
- POST /v1/o11y/messaging-queues/kafka/onboarding/consumers
- Checks whether the spans the Kafka consumer views need are arriving, row for row like producersOnboarding.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueueChecksOut>
*/
open class func postO11yMessagingQueuesKafkaOnboardingConsumersWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueueChecksOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/onboarding/consumers"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueueChecksOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Checks whether Kafka's own metrics — consumer lag and partition telemetry — are arriving, so the lag views can be lit up.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueueChecksOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaOnboardingKafka(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueueChecksOut {
return try await postO11yMessagingQueuesKafkaOnboardingKafkaWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Checks whether Kafka's own metrics — consumer lag and partition telemetry — are arriving, so the lag views can be lit up.
- POST /v1/o11y/messaging-queues/kafka/onboarding/kafka
- Checks whether Kafka's own metrics — consumer lag and partition telemetry — are arriving, so the lag views can be lit up.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueueChecksOut>
*/
open class func postO11yMessagingQueuesKafkaOnboardingKafkaWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueueChecksOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/onboarding/kafka"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueueChecksOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Checks whether the spans the Kafka producer views need are arriving — one row per required span attribute, with a pass/fail status and, on failure, what is missing from the instrumentation.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueueChecksOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaOnboardingProducers(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueueChecksOut {
return try await postO11yMessagingQueuesKafkaOnboardingProducersWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Checks whether the spans the Kafka producer views need are arriving — one row per required span attribute, with a pass/fail status and, on failure, what is missing from the instrumentation.
- POST /v1/o11y/messaging-queues/kafka/onboarding/producers
- Checks whether the spans the Kafka producer views need are arriving — one row per required span attribute, with a pass/fail status and, on failure, what is missing from the instrumentation.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueueChecksOut>
*/
open class func postO11yMessagingQueuesKafkaOnboardingProducersWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueueChecksOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/onboarding/producers"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueueChecksOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the consumer-group latency detail for the topic and partition named in the request's variables.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaPartitionLatencyConsumer(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaPartitionLatencyConsumerWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the consumer-group latency detail for the topic and partition named in the request's variables.
- POST /v1/o11y/messaging-queues/kafka/partition-latency/consumer
- Returns the consumer-group latency detail for the topic and partition named in the request's variables.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaPartitionLatencyConsumerWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/partition-latency/consumer"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the per-partition latency overview for the window — each topic/partition with its throughput and latency profile.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaPartitionLatencyOverview(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaPartitionLatencyOverviewWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the per-partition latency overview for the window — each topic/partition with its throughput and latency profile.
- POST /v1/o11y/messaging-queues/kafka/partition-latency/overview
- Returns the per-partition latency overview for the window — each topic/partition with its throughput and latency profile.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaPartitionLatencyOverviewWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/partition-latency/overview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Correlates producer and consumer spans over the evaluation window (eval_time bounds the scan) and returns the pairings with their end-to-end delay — the check that messages produced are being consumed.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaSpanEvaluation(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaSpanEvaluationWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Correlates producer and consumer spans over the evaluation window (eval_time bounds the scan) and returns the pairings with their end-to-end delay — the check that messages produced are being consumed.
- POST /v1/o11y/messaging-queues/kafka/span/evaluation
- Correlates producer and consumer spans over the evaluation window (eval_time bounds the scan) and returns the pairings with their end-to-end delay — the check that messages produced are being consumed.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaSpanEvaluationWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/span/evaluation"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the consumer topic-throughput overview for the window — what each consumer group read, per topic.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaTopicThroughputConsumer(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaTopicThroughputConsumerWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the consumer topic-throughput overview for the window — what each consumer group read, per topic.
- POST /v1/o11y/messaging-queues/kafka/topic-throughput/consumer
- Returns the consumer topic-throughput overview for the window — what each consumer group read, per topic.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaTopicThroughputConsumerWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/topic-throughput/consumer"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Breaks one consumer topic's throughput down using the topic and service named in variables.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaTopicThroughputConsumerDetails(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaTopicThroughputConsumerDetailsWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Breaks one consumer topic's throughput down using the topic and service named in variables.
- POST /v1/o11y/messaging-queues/kafka/topic-throughput/consumer-details
- Breaks one consumer topic's throughput down using the topic and service named in variables.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaTopicThroughputConsumerDetailsWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/topic-throughput/consumer-details"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns the producer topic-throughput overview for the window — what each producer service wrote, per topic.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaTopicThroughputProducer(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaTopicThroughputProducerWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns the producer topic-throughput overview for the window — what each producer service wrote, per topic.
- POST /v1/o11y/messaging-queues/kafka/topic-throughput/producer
- Returns the producer topic-throughput overview for the window — what each producer service wrote, per topic.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaTopicThroughputProducerWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/topic-throughput/producer"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Breaks one producer topic's throughput down using the topic and service named in variables.
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesKafkaTopicThroughputProducerDetails(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yMessagingQueuesKafkaTopicThroughputProducerDetailsWithRequestBuilder(o11yO11yQueueIn: o11yO11yQueueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Breaks one producer topic's throughput down using the topic and service named in variables.
- POST /v1/o11y/messaging-queues/kafka/topic-throughput/producer-details
- Breaks one producer topic's throughput down using the topic and service named in variables.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yMessagingQueuesKafkaTopicThroughputProducerDetailsWithRequestBuilder(o11yO11yQueueIn: O11yO11yQueueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/messaging-queues/kafka/topic-throughput/producer-details"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the messaging destinations observed in the window — one row per queue/destination/service combination with its throughput and latency columns.
- parameter o11yO11yQueueListIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueueRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yMessagingQueuesQueueOverview(o11yO11yQueueListIn: O11yO11yQueueListIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueueRowsOut {
return try await postO11yMessagingQueuesQueueOverviewWithRequestBuilder(o11yO11yQueueListIn: o11yO11yQueueListIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the messaging destinations observed in the window — one row per queue/destination/service combination with its throughput and latency columns.
- POST /v1/o11y/messaging-queues/queue-overview
- Lists the messaging destinations observed in the window — one row per queue/destination/service combination with its throughput and latency columns. Filters narrow by queue system, destination, service or any span attribute.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueueListIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueueRowsOut>
*/
open class func postO11yMessagingQueuesQueueOverviewWithRequestBuilder(o11yO11yQueueListIn: O11yO11yQueueListIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueueRowsOut> {
let localVariablePath = "/v1/o11y/messaging-queues/queue-overview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueueListIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueueRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes namespaces over a time range, each with the CPU and memory its pods used, their phase counts and its attributes; filterable, groupable and paginated.
- parameter o11yNamespaceListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yNamespaceListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yNamespacesList(o11yNamespaceListRequest: O11yNamespaceListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yNamespaceListOut {
return try await postO11yNamespacesListWithRequestBuilder(o11yNamespaceListRequest: o11yNamespaceListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes namespaces over a time range, each with the CPU and memory its pods used, their phase counts and its attributes; filterable, groupable and paginated.
- POST /v1/o11y/namespaces/list
- Lists Kubernetes namespaces over a time range, each with the CPU and memory its pods used, their phase counts and its attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yNamespaceListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yNamespaceListOut>
*/
open class func postO11yNamespacesListWithRequestBuilder(o11yNamespaceListRequest: O11yNamespaceListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yNamespaceListOut> {
let localVariablePath = "/v1/o11y/namespaces/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yNamespaceListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yNamespaceListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes nodes over a time range, each with its CPU and memory usage against allocatable capacity, readiness condition counts and attributes; filterable, groupable and paginated.
- parameter o11yNodeListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yNodeListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yNodesList(o11yNodeListRequest: O11yNodeListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yNodeListOut {
return try await postO11yNodesListWithRequestBuilder(o11yNodeListRequest: o11yNodeListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes nodes over a time range, each with its CPU and memory usage against allocatable capacity, readiness condition counts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/nodes/list
- Lists Kubernetes nodes over a time range, each with its CPU and memory usage against allocatable capacity, readiness condition counts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yNodeListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yNodeListOut>
*/
open class func postO11yNodesListWithRequestBuilder(o11yNodeListRequest: O11yNodeListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yNodeListOut> {
let localVariablePath = "/v1/o11y/nodes/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yNodeListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yNodeListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes pods over a time range, each with its CPU and memory usage against request and limit, restart count, phase counts and attributes; filterable, groupable and paginated.
- parameter o11yPodListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPodListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yPodsList(o11yPodListRequest: O11yPodListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPodListOut {
return try await postO11yPodsListWithRequestBuilder(o11yPodListRequest: o11yPodListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes pods over a time range, each with its CPU and memory usage against request and limit, restart count, phase counts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/pods/list
- Lists Kubernetes pods over a time range, each with its CPU and memory usage against request and limit, restart count, phase counts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPodListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPodListOut>
*/
open class func postO11yPodsListWithRequestBuilder(o11yPodListRequest: O11yPodListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPodListOut> {
let localVariablePath = "/v1/o11y/pods/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPodListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPodListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists monitored processes over a time range, each with its name, PID, command line and CPU and memory usage; filterable, groupable and paginated.
- parameter o11yProcessListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yProcessListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yProcessesList(o11yProcessListRequest: O11yProcessListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yProcessListOut {
return try await postO11yProcessesListWithRequestBuilder(o11yProcessListRequest: o11yProcessListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists monitored processes over a time range, each with its name, PID, command line and CPU and memory usage; filterable, groupable and paginated.
- POST /v1/o11y/processes/list
- Lists monitored processes over a time range, each with its name, PID, command line and CPU and memory usage; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yProcessListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yProcessListOut>
*/
open class func postO11yProcessesListWithRequestBuilder(o11yProcessListRequest: O11yProcessListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yProcessListOut> {
let localVariablePath = "/v1/o11y/processes/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yProcessListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yProcessListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes persistent volume claims over a time range, each with its available, capacity and used bytes, inode counts and attributes; filterable, groupable and paginated.
- parameter o11yVolumeListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yPvcListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yPvcsList(o11yVolumeListRequest: O11yVolumeListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yPvcListOut {
return try await postO11yPvcsListWithRequestBuilder(o11yVolumeListRequest: o11yVolumeListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes persistent volume claims over a time range, each with its available, capacity and used bytes, inode counts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/pvcs/list
- Lists Kubernetes persistent volume claims over a time range, each with its available, capacity and used bytes, inode counts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yVolumeListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yPvcListOut>
*/
open class func postO11yPvcsListWithRequestBuilder(o11yVolumeListRequest: O11yVolumeListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yPvcListOut> {
let localVariablePath = "/v1/o11y/pvcs/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yVolumeListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yPvcListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Analyzes a query and extracts the metric names it reads and the columns it groups by.
- parameter o11yO11yAnalyzeIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAnalyzeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yQueryFilterAnalyze(o11yO11yAnalyzeIn: O11yO11yAnalyzeIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAnalyzeOut {
return try await postO11yQueryFilterAnalyzeWithRequestBuilder(o11yO11yAnalyzeIn: o11yO11yAnalyzeIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Analyzes a query and extracts the metric names it reads and the columns it groups by.
- POST /v1/o11y/query_filter/analyze
- Analyzes a query and extracts the metric names it reads and the columns it groups by. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yAnalyzeIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAnalyzeOut>
*/
open class func postO11yQueryFilterAnalyzeWithRequestBuilder(o11yO11yAnalyzeIn: O11yO11yAnalyzeIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAnalyzeOut> {
let localVariablePath = "/v1/o11y/query_filter/analyze"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yAnalyzeIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAnalyzeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Executes a composite query over a time range: builder queries over traces, logs and metrics, formulas, trace operators, PromQL and Datastore SQL, answering time series, scalars or raw records as the request type asks.
- parameter o11yQueryRangeRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yQueryRange(o11yQueryRangeRequest: O11yQueryRangeRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeOut {
return try await postO11yQueryRangeWithRequestBuilder(o11yQueryRangeRequest: o11yQueryRangeRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Executes a composite query over a time range: builder queries over traces, logs and metrics, formulas, trace operators, PromQL and Datastore SQL, answering time series, scalars or raw records as the request type asks.
- POST /v1/o11y/query_range
- Executes a composite query over a time range: builder queries over traces, logs and metrics, formulas, trace operators, PromQL and Datastore SQL, answering time series, scalars or raw records as the request type asks. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yQueryRangeRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeOut>
*/
open class func postO11yQueryRangeWithRequestBuilder(o11yQueryRangeRequest: O11yQueryRangeRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeOut> {
let localVariablePath = "/v1/o11y/query_range"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yQueryRangeRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Parses a builder query and echoes it back normalized to the v3 shape — the endpoint the UI uses to canonicalize a query without running it.
- parameter o11yQueryRangeParamsV3: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangeFormatOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yQueryRangeFormat(o11yQueryRangeParamsV3: O11yQueryRangeParamsV3, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangeFormatOut {
return try await postO11yQueryRangeFormatWithRequestBuilder(o11yQueryRangeParamsV3: o11yQueryRangeParamsV3, apiConfiguration: apiConfiguration).execute().body
}
/**
Parses a builder query and echoes it back normalized to the v3 shape — the endpoint the UI uses to canonicalize a query without running it.
- POST /v1/o11y/query_range/format
- Parses a builder query and echoes it back normalized to the v3 shape — the endpoint the UI uses to canonicalize a query without running it. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yQueryRangeParamsV3: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangeFormatOut>
*/
open class func postO11yQueryRangeFormatWithRequestBuilder(o11yQueryRangeParamsV3: O11yQueryRangeParamsV3, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangeFormatOut> {
let localVariablePath = "/v1/o11y/query_range/format"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yQueryRangeParamsV3, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangeFormatOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Validates a composite query and renders the Datastore statements it would run WITHOUT executing it — a dry run for agentic and tooling use.
- parameter o11yO11yQueryRangePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yQueryRangePreviewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yQueryRangePreview(o11yO11yQueryRangePreviewIn: O11yO11yQueryRangePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yQueryRangePreviewOut {
return try await postO11yQueryRangePreviewWithRequestBuilder(o11yO11yQueryRangePreviewIn: o11yO11yQueryRangePreviewIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Validates a composite query and renders the Datastore statements it would run WITHOUT executing it — a dry run for agentic and tooling use.
- POST /v1/o11y/query_range/preview
- Validates a composite query and renders the Datastore statements it would run WITHOUT executing it — a dry run for agentic and tooling use. verbose=false trades the rendered SQL and EXPLAIN for a lightweight per-query verdict. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yQueryRangePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yQueryRangePreviewOut>
*/
open class func postO11yQueryRangePreviewWithRequestBuilder(o11yO11yQueryRangePreviewIn: O11yO11yQueryRangePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yQueryRangePreviewOut> {
let localVariablePath = "/v1/o11y/query_range/preview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yQueryRangePreviewIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yQueryRangePreviewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates the FIRST organization and its admin user.
- parameter o11yO11yRegisterIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRegisterOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yRegister(o11yO11yRegisterIn: O11yO11yRegisterIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRegisterOut {
return try await postO11yRegisterWithRequestBuilder(o11yO11yRegisterIn: o11yO11yRegisterIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates the FIRST organization and its admin user.
- POST /v1/o11y/register
- Creates the FIRST organization and its admin user. It is open by design — there is nobody to be signed in as yet — and refuses once setup has completed, after which new users arrive by invitation only. Open by design; the runtime's own gate is OpenAccess.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yRegisterIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRegisterOut>
*/
open class func postO11yRegisterWithRequestBuilder(o11yO11yRegisterIn: O11yO11yRegisterIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRegisterOut> {
let localVariablePath = "/v1/o11y/register"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRegisterIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRegisterOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a human-review queue in the caller's org and project.
- parameter o11yCreateQueueReq: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnQueueView
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yReviews(o11yCreateQueueReq: O11yCreateQueueReq, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnQueueView {
return try await postO11yReviewsWithRequestBuilder(o11yCreateQueueReq: o11yCreateQueueReq, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a human-review queue in the caller's org and project.
- POST /v1/o11y/reviews
- Creates a human-review queue in the caller's org and project. A name already used by another queue in the same project is a 409.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yCreateQueueReq: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnQueueView>
*/
open class func postO11yReviewsWithRequestBuilder(o11yCreateQueueReq: O11yCreateQueueReq, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnQueueView> {
let localVariablePath = "/v1/o11y/reviews"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yCreateQueueReq, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnQueueView>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Enqueues traces, observations or sessions on a review queue.
- parameter id: (path) ID is the annotation queue to add to, from the path.
- parameter o11yAddItemsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yAnnItemsCreated
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yReviewsByIdItems(id: String, o11yAddItemsIn: O11yAddItemsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yAnnItemsCreated {
return try await postO11yReviewsByIdItemsWithRequestBuilder(id: id, o11yAddItemsIn: o11yAddItemsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Enqueues traces, observations or sessions on a review queue.
- POST /v1/o11y/reviews/{id}/items
- Enqueues traces, observations or sessions on a review queue. Each item names exactly one object, either by traceId / observationId / sessionId or by objectType plus objectId; every item enters PENDING. A queue id belonging to another org is a 404.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the annotation queue to add to, from the path.
- parameter o11yAddItemsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yAnnItemsCreated>
*/
open class func postO11yReviewsByIdItemsWithRequestBuilder(id: String, o11yAddItemsIn: O11yAddItemsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yAnnItemsCreated> {
var localVariablePath = "/v1/o11y/reviews/{id}/items"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yAddItemsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yAnnItemsCreated>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Aggregates a project's captured errors into a table — the caller names the filters, the groupings and the aggregations, and gets back the columns and rows they asked for.
- parameter o11yO11yDiscoverIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDiscoverOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySentinelDiscover(o11yO11yDiscoverIn: O11yO11yDiscoverIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDiscoverOut {
return try await postO11ySentinelDiscoverWithRequestBuilder(o11yO11yDiscoverIn: o11yO11yDiscoverIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Aggregates a project's captured errors into a table — the caller names the filters, the groupings and the aggregations, and gets back the columns and rows they asked for.
- POST /v1/o11y/sentinel/discover
- Aggregates a project's captured errors into a table — the caller names the filters, the groupings and the aggregations, and gets back the columns and rows they asked for. The project is mandatory and is checked against the caller's own org before it scopes anything, so a project id belonging to someone else reads as absent rather than as data.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDiscoverIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDiscoverOut>
*/
open class func postO11ySentinelDiscoverWithRequestBuilder(o11yO11yDiscoverIn: O11yO11yDiscoverIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDiscoverOut> {
let localVariablePath = "/v1/o11y/sentinel/discover"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDiscoverIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDiscoverOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Creates a Sentry project under the caller's org and returns it, DSN included.
- parameter o11yO11ySentryPostableProject: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryProjectOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySentinelProjects(o11yO11ySentryPostableProject: O11yO11ySentryPostableProject, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryProjectOut {
return try await postO11ySentinelProjectsWithRequestBuilder(o11yO11ySentryPostableProject: o11yO11ySentryPostableProject, apiConfiguration: apiConfiguration).execute().body
}
/**
Creates a Sentry project under the caller's org and returns it, DSN included.
- POST /v1/o11y/sentinel/projects
- Creates a Sentry project under the caller's org and returns it, DSN included. Only the name, and optionally a slug and platform, are the caller's to set; the org, id and key are server-assigned. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11ySentryPostableProject: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryProjectOut>
*/
open class func postO11ySentinelProjectsWithRequestBuilder(o11yO11ySentryPostableProject: O11yO11ySentryPostableProject, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryProjectOut> {
let localVariablePath = "/v1/o11y/sentinel/projects"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySentryPostableProject, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryProjectOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySentryProjectOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySentinelProjectsByIdKeysRotate(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySentryProjectOut {
return try await postO11ySentinelProjectsByIdKeysRotateWithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.
- POST /v1/o11y/sentinel/projects/{id}/keys/rotate
- Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the project id.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySentryProjectOut>
*/
open class func postO11ySentinelProjectsByIdKeysRotateWithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySentryProjectOut> {
var localVariablePath = "/v1/o11y/sentinel/projects/{id}/keys/rotate"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySentryProjectOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one service's entry-point operations with the same latency and error profile topOperations reports.
- parameter o11yO11yOperationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOperationsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yServiceEntryPointOperations(o11yO11yOperationsIn: O11yO11yOperationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOperationsOut {
return try await postO11yServiceEntryPointOperationsWithRequestBuilder(o11yO11yOperationsIn: o11yO11yOperationsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one service's entry-point operations with the same latency and error profile topOperations reports.
- POST /v1/o11y/service/entry_point_operations
- Returns one service's entry-point operations with the same latency and error profile topOperations reports.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yOperationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOperationsOut>
*/
open class func postO11yServiceEntryPointOperationsWithRequestBuilder(o11yO11yOperationsIn: O11yO11yOperationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOperationsOut> {
let localVariablePath = "/v1/o11y/service/entry_point_operations"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yOperationsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOperationsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Maps each service to its entry-point span names — for the one service named in the request, or for every service when none is.
- parameter o11yO11yTopLevelOpsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: [String: [String]]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yServiceTopLevelOperations(o11yO11yTopLevelOpsIn: O11yO11yTopLevelOpsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [String: [String]] {
return try await postO11yServiceTopLevelOperationsWithRequestBuilder(o11yO11yTopLevelOpsIn: o11yO11yTopLevelOpsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Maps each service to its entry-point span names — for the one service named in the request, or for every service when none is.
- POST /v1/o11y/service/top_level_operations
- Maps each service to its entry-point span names — for the one service named in the request, or for every service when none is.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yTopLevelOpsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[String: [String]]>
*/
open class func postO11yServiceTopLevelOperationsWithRequestBuilder(o11yO11yTopLevelOpsIn: O11yO11yTopLevelOpsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[String: [String]]> {
let localVariablePath = "/v1/o11y/service/top_level_operations"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yTopLevelOpsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[String: [String]]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one service's heaviest operations in the window, each with p50/p95/p99 latency, how often it ran and how often it errored.
- parameter o11yO11yOperationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yOperationsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yServiceTopOperations(o11yO11yOperationsIn: O11yO11yOperationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yOperationsOut {
return try await postO11yServiceTopOperationsWithRequestBuilder(o11yO11yOperationsIn: o11yO11yOperationsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one service's heaviest operations in the window, each with p50/p95/p99 latency, how often it ran and how often it errored.
- POST /v1/o11y/service/top_operations
- Returns one service's heaviest operations in the window, each with p50/p95/p99 latency, how often it ran and how often it errored.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yOperationsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yOperationsOut>
*/
open class func postO11yServiceTopOperationsWithRequestBuilder(o11yO11yOperationsIn: O11yO11yOperationsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yOperationsOut> {
let localVariablePath = "/v1/o11y/service/top_operations"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yOperationsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yOperationsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the instrumented services seen in the window, each with the request profile of its entry-point spans: p99 and average latency, call and error rates, and the entry-point operations the numbers were computed over.
- parameter o11yO11yServicesIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yServicesOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yServices(o11yO11yServicesIn: O11yO11yServicesIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yServicesOut {
return try await postO11yServicesWithRequestBuilder(o11yO11yServicesIn: o11yO11yServicesIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the instrumented services seen in the window, each with the request profile of its entry-point spans: p99 and average latency, call and error rates, and the entry-point operations the numbers were computed over.
- POST /v1/o11y/services
- Lists the instrumented services seen in the window, each with the request profile of its entry-point spans: p99 and average latency, call and error rates, and the entry-point operations the numbers were computed over.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yServicesIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yServicesOut>
*/
open class func postO11yServicesWithRequestBuilder(o11yO11yServicesIn: O11yO11yServicesIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yServicesOut> {
let localVariablePath = "/v1/o11y/services"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yServicesIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yServicesOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets one service's apdex threshold and the status codes excluded from its score.
- parameter o11yO11yApdexSetIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yApdexSetOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySettingsApdex(o11yO11yApdexSetIn: O11yO11yApdexSetIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yApdexSetOut {
return try await postO11ySettingsApdexWithRequestBuilder(o11yO11yApdexSetIn: o11yO11yApdexSetIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets one service's apdex threshold and the status codes excluded from its score.
- POST /v1/o11y/settings/apdex
- Sets one service's apdex threshold and the status codes excluded from its score. Admin only, as the mux tree has always gated it (AdminAccess); the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yApdexSetIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yApdexSetOut>
*/
open class func postO11ySettingsApdexWithRequestBuilder(o11yO11yApdexSetIn: O11yO11yApdexSetIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yApdexSetOut> {
let localVariablePath = "/v1/o11y/settings/apdex"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yApdexSetIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yApdexSetOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets the org's retention policy for one signal: the default TTL in days, ordered per-label retention rules, and optional cold-storage settings.
- parameter o11yO11yRetentionSetIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRetentionSetOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySettingsTtl(o11yO11yRetentionSetIn: O11yO11yRetentionSetIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRetentionSetOut {
return try await postO11ySettingsTtlWithRequestBuilder(o11yO11yRetentionSetIn: o11yO11yRetentionSetIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets the org's retention policy for one signal: the default TTL in days, ordered per-label retention rules, and optional cold-storage settings.
- POST /v1/o11y/settings/ttl
- Sets the org's retention policy for one signal: the default TTL in days, ordered per-label retention rules, and optional cold-storage settings. Admin only, as the mux tree has always gated it (AdminAccess); the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yRetentionSetIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRetentionSetOut>
*/
open class func postO11ySettingsTtlWithRequestBuilder(o11yO11yRetentionSetIn: O11yO11yRetentionSetIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRetentionSetOut> {
let localVariablePath = "/v1/o11y/settings/ttl"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRetentionSetIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRetentionSetOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Places one span's duration among its peers: the p50/p90/p99 durations of like spans, and the percentile the given duration lands at.
- parameter o11yO11ySpanPercentileIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySpanPercentileOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySpanPercentile(o11yO11ySpanPercentileIn: O11yO11ySpanPercentileIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySpanPercentileOut {
return try await postO11ySpanPercentileWithRequestBuilder(o11yO11ySpanPercentileIn: o11yO11ySpanPercentileIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Places one span's duration among its peers: the p50/p90/p99 durations of like spans, and the percentile the given duration lands at.
- POST /v1/o11y/span_percentile
- Places one span's duration among its peers: the p50/p90/p99 durations of like spans, and the percentile the given duration lands at. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11ySpanPercentileIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySpanPercentileOut>
*/
open class func postO11ySpanPercentileWithRequestBuilder(o11yO11ySpanPercentileIn: O11yO11ySpanPercentileIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySpanPercentileOut> {
let localVariablePath = "/v1/o11y/span_percentile"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySpanPercentileIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySpanPercentileOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists Kubernetes statefulsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- parameter o11yStatefulSetListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yStatefulSetListOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yStatefulsetsList(o11yStatefulSetListRequest: O11yStatefulSetListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yStatefulSetListOut {
return try await postO11yStatefulsetsListWithRequestBuilder(o11yStatefulSetListRequest: o11yStatefulSetListRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists Kubernetes statefulsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- POST /v1/o11y/statefulsets/list
- Lists Kubernetes statefulsets over a time range, each with the CPU and memory its pods used against request and limit, desired and available replica counts, restarts and attributes; filterable, groupable and paginated.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yStatefulSetListRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yStatefulSetListOut>
*/
open class func postO11yStatefulsetsListWithRequestBuilder(o11yStatefulSetListRequest: O11yStatefulSetListRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yStatefulSetListOut> {
let localVariablePath = "/v1/o11y/statefulsets/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yStatefulSetListRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yStatefulSetListOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Substitutes a query's variables and returns the resolved request, without running it — what a dashboard does before it queries.
- parameter o11yQueryRangeRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySubstituteVarsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11ySubstituteVars(o11yQueryRangeRequest: O11yQueryRangeRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySubstituteVarsOut {
return try await postO11ySubstituteVarsWithRequestBuilder(o11yQueryRangeRequest: o11yQueryRangeRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Substitutes a query's variables and returns the resolved request, without running it — what a dashboard does before it queries.
- POST /v1/o11y/substitute_vars
- Substitutes a query's variables and returns the resolved request, without running it — what a dashboard does before it queries. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yQueryRangeRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySubstituteVarsOut>
*/
open class func postO11ySubstituteVarsWithRequestBuilder(o11yQueryRangeRequest: O11yQueryRangeRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySubstituteVarsOut> {
let localVariablePath = "/v1/o11y/substitute_vars"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yQueryRangeRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySubstituteVarsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one external domain's endpoint-level breakdown — each endpoint with its rate, error and latency columns over the window.
- parameter o11yO11yDomainsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDomainsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yThirdPartyApisOverviewDomain(o11yO11yDomainsIn: O11yO11yDomainsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDomainsOut {
return try await postO11yThirdPartyApisOverviewDomainWithRequestBuilder(o11yO11yDomainsIn: o11yO11yDomainsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one external domain's endpoint-level breakdown — each endpoint with its rate, error and latency columns over the window.
- POST /v1/o11y/third-party-apis/overview/domain
- Returns one external domain's endpoint-level breakdown — each endpoint with its rate, error and latency columns over the window.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDomainsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDomainsOut>
*/
open class func postO11yThirdPartyApisOverviewDomainWithRequestBuilder(o11yO11yDomainsIn: O11yO11yDomainsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDomainsOut> {
let localVariablePath = "/v1/o11y/third-party-apis/overview/domain"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDomainsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDomainsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the external domains the instrumented services call, with request rate, error percentage and latency per domain.
- parameter o11yO11yDomainsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDomainsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yThirdPartyApisOverviewList(o11yO11yDomainsIn: O11yO11yDomainsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDomainsOut {
return try await postO11yThirdPartyApisOverviewListWithRequestBuilder(o11yO11yDomainsIn: o11yO11yDomainsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the external domains the instrumented services call, with request rate, error percentage and latency per domain.
- POST /v1/o11y/third-party-apis/overview/list
- Lists the external domains the instrumented services call, with request rate, error percentage and latency per domain. Rows whose domain is a bare IP address are dropped unless show_ip asks for them.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDomainsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDomainsOut>
*/
open class func postO11yThirdPartyApisOverviewListWithRequestBuilder(o11yO11yDomainsIn: O11yO11yDomainsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDomainsOut> {
let localVariablePath = "/v1/o11y/third-party-apis/overview/list"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDomainsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDomainsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Evaluates a dashboard variable query and returns the values the variable may take.
- parameter o11yO11yDashboardVarsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardVarsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postO11yVariablesQuery(o11yO11yDashboardVarsIn: O11yO11yDashboardVarsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardVarsOut {
return try await postO11yVariablesQueryWithRequestBuilder(o11yO11yDashboardVarsIn: o11yO11yDashboardVarsIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Evaluates a dashboard variable query and returns the values the variable may take.
- POST /v1/o11y/variables/query
- Evaluates a dashboard variable query and returns the values the variable may take. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDashboardVarsIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardVarsOut>
*/
open class func postO11yVariablesQueryWithRequestBuilder(o11yO11yDashboardVarsIn: O11yO11yDashboardVarsIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardVarsOut> {
let localVariablePath = "/v1/o11y/variables/query"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardVarsIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardVarsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Estimates the series reduction and the dashboards and alerts a candidate volume-control rule would touch, without persisting it.
- parameter o11yO11yReductionRulePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionRulePreviewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func previewMetricReductionRule(o11yO11yReductionRulePreviewIn: O11yO11yReductionRulePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionRulePreviewOut {
return try await previewMetricReductionRuleWithRequestBuilder(o11yO11yReductionRulePreviewIn: o11yO11yReductionRulePreviewIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Estimates the series reduction and the dashboards and alerts a candidate volume-control rule would touch, without persisting it.
- POST /v1/o11y/metric_reduction_rules/preview
- Estimates the series reduction and the dashboards and alerts a candidate volume-control rule would touch, without persisting it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yReductionRulePreviewIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionRulePreviewOut>
*/
open class func previewMetricReductionRuleWithRequestBuilder(o11yO11yReductionRulePreviewIn: O11yO11yReductionRulePreviewIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionRulePreviewOut> {
let localVariablePath = "/v1/o11y/metric_reduction_rules/preview"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yReductionRulePreviewIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionRulePreviewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Records the deployment's host in Zeus, overwriting any prior one.
- parameter o11yPostableHost: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func putHost(o11yPostableHost: O11yPostableHost, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await putHostWithRequestBuilder(o11yPostableHost: o11yPostableHost, apiConfiguration: apiConfiguration).execute().body
}
/**
Records the deployment's host in Zeus, overwriting any prior one.
- PUT /v1/o11y/zeus/hosts
- Records the deployment's host in Zeus, overwriting any prior one. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableHost: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func putHostWithRequestBuilder(o11yPostableHost: O11yPostableHost, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/zeus/hosts"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableHost, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces one saved explorer view by id with the given view and echoes it back.
- parameter viewId: (path) ViewID is the id of the view to replace, taken from the URL.
- parameter o11yO11ySavedViewUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11ySavedViewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func putO11yExplorerViewsByViewid(viewId: String, o11yO11ySavedViewUpdateIn: O11yO11ySavedViewUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11ySavedViewOut {
return try await putO11yExplorerViewsByViewidWithRequestBuilder(viewId: viewId, o11yO11ySavedViewUpdateIn: o11yO11ySavedViewUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces one saved explorer view by id with the given view and echoes it back.
- PUT /v1/o11y/explorer/views/{viewId}
- Replaces one saved explorer view by id with the given view and echoes it back. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter viewId: (path) ViewID is the id of the view to replace, taken from the URL.
- parameter o11yO11ySavedViewUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11ySavedViewOut>
*/
open class func putO11yExplorerViewsByViewidWithRequestBuilder(viewId: String, o11yO11ySavedViewUpdateIn: O11yO11ySavedViewUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11ySavedViewOut> {
var localVariablePath = "/v1/o11y/explorer/views/{viewId}"
let viewIdPreEscape = "\(APIHelper.mapValueToPathItem(viewId))"
let viewIdPostEscape = viewIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{viewId}", with: viewIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySavedViewUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11ySavedViewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue.
- parameter id: (path) ID is the issue id.
- parameter o11yO11ySentryUpdateIssueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yErrorIssueOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func putO11ySentinelIssuesById(id: String, o11yO11ySentryUpdateIssueIn: O11yO11ySentryUpdateIssueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yErrorIssueOut {
return try await putO11ySentinelIssuesByIdWithRequestBuilder(id: id, o11yO11ySentryUpdateIssueIn: o11yO11ySentryUpdateIssueIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue.
- PUT /v1/o11y/sentinel/issues/{id}
- Changes an issue's lifecycle — resolve, ignore, reopen or assign — and returns the updated issue. Fields left unset are left unchanged. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the issue id.
- parameter o11yO11ySentryUpdateIssueIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yErrorIssueOut>
*/
open class func putO11ySentinelIssuesByIdWithRequestBuilder(id: String, o11yO11ySentryUpdateIssueIn: O11yO11ySentryUpdateIssueIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yErrorIssueOut> {
var localVariablePath = "/v1/o11y/sentinel/issues/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySentryUpdateIssueIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yErrorIssueOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Records the deployment's profile in Zeus — how the team uses observability today and what they plan — overwriting any prior one.
- parameter o11yPostableProfile: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func putProfile(o11yPostableProfile: O11yPostableProfile, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await putProfileWithRequestBuilder(o11yPostableProfile: o11yPostableProfile, apiConfiguration: apiConfiguration).execute().body
}
/**
Records the deployment's profile in Zeus — how the team uses observability today and what they plan — overwriting any prior one.
- PUT /v1/o11y/zeus/profiles
- Records the deployment's profile in Zeus — how the team uses observability today and what they plan — overwriting any prior one. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yPostableProfile: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func putProfileWithRequestBuilder(o11yPostableProfile: O11yPostableProfile, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/zeus/profiles"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yPostableProfile, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Takes a role away from one org member, by user id and role id — someone else, never the caller.
- parameter id: (path)
- parameter roleId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func removeUserRoleByUserIDAndRoleID(id: String, roleId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await removeUserRoleByUserIDAndRoleIDWithRequestBuilder(id: id, roleId: roleId, apiConfiguration: apiConfiguration).execute().body
}
/**
Takes a role away from one org member, by user id and role id — someone else, never the caller.
- DELETE /v1/o11y/users/{id}/roles/{roleId}
- Takes a role away from one org member, by user id and role id — someone else, never the caller. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter roleId: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func removeUserRoleByUserIDAndRoleIDWithRequestBuilder(id: String, roleId: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/users/{id}/roles/{roleId}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))"
let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{roleId}", with: roleIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets a new password for whoever the reset token was minted for, consuming the token.
- parameter o11yO11yResetPasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func resetPassword(o11yO11yResetPasswordIn: O11yO11yResetPasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await resetPasswordWithRequestBuilder(o11yO11yResetPasswordIn: o11yO11yResetPasswordIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets a new password for whoever the reset token was minted for, consuming the token.
- POST /v1/o11y/resetPassword
- Sets a new password for whoever the reset token was minted for, consuming the token. Unauthenticated: the token is the proof.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yResetPasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func resetPasswordWithRequestBuilder(o11yO11yResetPasswordIn: O11yO11yResetPasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/resetPassword"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yResetPasswordIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Revokes an API key.
- parameter id: (path)
- parameter fid: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func revokeServiceAccountKey(id: String, fid: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await revokeServiceAccountKeyWithRequestBuilder(id: id, fid: fid, apiConfiguration: apiConfiguration).execute().body
}
/**
Revokes an API key.
- DELETE /v1/o11y/service_accounts/{id}/keys/{fid}
- Revokes an API key. Revocation is immediate and permanent.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter fid: (path)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func revokeServiceAccountKeyWithRequestBuilder(id: String, fid: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/keys/{fid}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let fidPreEscape = "\(APIHelper.mapValueToPathItem(fid))"
let fidPostEscape = fidPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{fid}", with: fidPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Exchanges a refresh token for a fresh token pair, retiring the old pair.
- parameter o11yO11yRotateSessionIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTokenOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func rotateSession(o11yO11yRotateSessionIn: O11yO11yRotateSessionIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTokenOut {
return try await rotateSessionWithRequestBuilder(o11yO11yRotateSessionIn: o11yO11yRotateSessionIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Exchanges a refresh token for a fresh token pair, retiring the old pair.
- POST /v1/o11y/sessions/rotate
- Exchanges a refresh token for a fresh token pair, retiring the old pair. The access token being rotated identifies the session.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yRotateSessionIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTokenOut>
*/
open class func rotateSessionWithRequestBuilder(o11yO11yRotateSessionIn: O11yO11yRotateSessionIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTokenOut> {
let localVariablePath = "/v1/o11y/sessions/rotate"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRotateSessionIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTokenOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the workspace's ingestion keys whose name matches the search, paginated.
- parameter name: (query) Name is the substring to match ingestion-key names against. (optional)
- parameter page: (query) Page is the 1-based page number. (optional)
- parameter perPage: (query) PerPage is the page size. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIngestionKeysOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func searchIngestionKeys(name: String? = nil, page: Int64? = nil, perPage: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIngestionKeysOut {
return try await searchIngestionKeysWithRequestBuilder(name: name, page: page, perPage: perPage, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the workspace's ingestion keys whose name matches the search, paginated.
- GET /v1/o11y/gateway/ingestion_keys/search
- Lists the workspace's ingestion keys whose name matches the search, paginated. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter name: (query) Name is the substring to match ingestion-key names against. (optional)
- parameter page: (query) Page is the 1-based page number. (optional)
- parameter perPage: (query) PerPage is the page size. (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIngestionKeysOut>
*/
open class func searchIngestionKeysWithRequestBuilder(name: String? = nil, page: Int64? = nil, perPage: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIngestionKeysOut> {
let localVariablePath = "/v1/o11y/gateway/ingestion_keys/search"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"per_page": (wrappedValue: perPage?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIngestionKeysOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Returns one trace's spans as a column/row table, optionally centred on a span and walked a fixed number of levels up and down from it — the read the trace explorer opens a trace with.
- parameter traceId: (path)
- parameter spanId: (query) (optional)
- parameter levelUp: (query) (optional)
- parameter levelDown: (query) (optional)
- parameter spanRenderLimit: (query) (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: [O11yO11yTraceSpanWindow]
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func searchTraces(traceId: String, spanId: String? = nil, levelUp: Int64? = nil, levelDown: Int64? = nil, spanRenderLimit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> [O11yO11yTraceSpanWindow] {
return try await searchTracesWithRequestBuilder(traceId: traceId, spanId: spanId, levelUp: levelUp, levelDown: levelDown, spanRenderLimit: spanRenderLimit, apiConfiguration: apiConfiguration).execute().body
}
/**
Returns one trace's spans as a column/row table, optionally centred on a span and walked a fixed number of levels up and down from it — the read the trace explorer opens a trace with.
- GET /v1/o11y/traces/{traceId}
- Returns one trace's spans as a column/row table, optionally centred on a span and walked a fixed number of levels up and down from it — the read the trace explorer opens a trace with. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter traceId: (path)
- parameter spanId: (query) (optional)
- parameter levelUp: (query) (optional)
- parameter levelDown: (query) (optional)
- parameter spanRenderLimit: (query) (optional)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<[O11yO11yTraceSpanWindow]>
*/
open class func searchTracesWithRequestBuilder(traceId: String, spanId: String? = nil, levelUp: Int64? = nil, levelDown: Int64? = nil, spanRenderLimit: Int64? = nil, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<[O11yO11yTraceSpanWindow]> {
var localVariablePath = "/v1/o11y/traces/{traceId}"
let traceIdPreEscape = "\(APIHelper.mapValueToPathItem(traceId))"
let traceIdPostEscape = traceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{traceId}", with: traceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"spanId": (wrappedValue: spanId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"levelUp": (wrappedValue: levelUp?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"levelDown": (wrappedValue: levelDown?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
"spanRenderLimit": (wrappedValue: spanRenderLimit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
])
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<[O11yO11yTraceSpanWindow]>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Assigns a role, by role name, to one org member — someone else, never the caller.
- parameter id: (path)
- parameter o11yO11ySetRoleIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yAck
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func setRoleByUserID(id: String, o11yO11ySetRoleIn: O11yO11ySetRoleIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yAck {
return try await setRoleByUserIDWithRequestBuilder(id: id, o11yO11ySetRoleIn: o11yO11ySetRoleIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Assigns a role, by role name, to one org member — someone else, never the caller.
- POST /v1/o11y/users/{id}/roles
- Assigns a role, by role name, to one org member — someone else, never the caller. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11ySetRoleIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yAck>
*/
open class func setRoleByUserIDWithRequestBuilder(id: String, o11yO11ySetRoleIn: O11yO11ySetRoleIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yAck> {
var localVariablePath = "/v1/o11y/users/{id}/roles"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySetRoleIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yAck>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sends a test notification to the posted receiver.
- parameter o11yAlertmanagertypesReceiver: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func testChannel(o11yAlertmanagertypesReceiver: O11yAlertmanagertypesReceiver, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await testChannelWithRequestBuilder(o11yAlertmanagertypesReceiver: o11yAlertmanagertypesReceiver, apiConfiguration: apiConfiguration).execute().body
}
/**
Sends a test notification to the posted receiver.
- POST /v1/o11y/channels/test
- Sends a test notification to the posted receiver. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yAlertmanagertypesReceiver: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func testChannelWithRequestBuilder(o11yAlertmanagertypesReceiver: O11yAlertmanagertypesReceiver, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/channels/test"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yAlertmanagertypesReceiver, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sends a test notification to the posted receiver.
- parameter o11yAlertmanagertypesReceiver: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func testChannelDeprecated(o11yAlertmanagertypesReceiver: O11yAlertmanagertypesReceiver, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await testChannelDeprecatedWithRequestBuilder(o11yAlertmanagertypesReceiver: o11yAlertmanagertypesReceiver, apiConfiguration: apiConfiguration).execute().body
}
/**
Sends a test notification to the posted receiver.
- POST /v1/o11y/testChannel
- Sends a test notification to the posted receiver. The legacy path; prefer /channels/test. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yAlertmanagertypesReceiver: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func testChannelDeprecatedWithRequestBuilder(o11yAlertmanagertypesReceiver: O11yAlertmanagertypesReceiver, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/testChannel"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yAlertmanagertypesReceiver, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Fires a test notification for a rule definition without saving it, answering with how many series would alert.
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTestRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func testRule(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTestRuleOut {
return try await testRuleWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body
}
/**
Fires a test notification for a rule definition without saving it, answering with how many series would alert.
- POST /v1/o11y/rules/test
- Fires a test notification for a rule definition without saving it, answering with how many series would alert. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTestRuleOut>
*/
open class func testRuleWithRequestBuilder(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTestRuleOut> {
let localVariablePath = "/v1/o11y/rules/test"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTestRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Fires a test notification for the posted rule definition and answers with how many series alerted and a status message.
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yTestNotificationOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func testRuleNotification(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yTestNotificationOut {
return try await testRuleNotificationWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body
}
/**
Fires a test notification for the posted rule definition and answers with how many series alerted and a status message.
- POST /v1/o11y/testRule
- Fires a test notification for the posted rule definition and answers with how many series alerted and a status message. The legacy path; prefer /rules/test. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yTestNotificationOut>
*/
open class func testRuleNotificationWithRequestBuilder(body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yTestNotificationOut> {
let localVariablePath = "/v1/o11y/testRule"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yTestNotificationOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes an integration from the caller's org by id.
- parameter o11yUninstallIntegrationRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yIntegrationAck
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func uninstallIntegration(o11yUninstallIntegrationRequest: O11yUninstallIntegrationRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yIntegrationAck {
return try await uninstallIntegrationWithRequestBuilder(o11yUninstallIntegrationRequest: o11yUninstallIntegrationRequest, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes an integration from the caller's org by id.
- POST /v1/o11y/integrations/uninstall
- Removes an integration from the caller's org by id. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yUninstallIntegrationRequest: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yIntegrationAck>
*/
open class func uninstallIntegrationWithRequestBuilder(o11yUninstallIntegrationRequest: O11yUninstallIntegrationRequest, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yIntegrationAck> {
let localVariablePath = "/v1/o11y/integrations/uninstall"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yUninstallIntegrationRequest, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yIntegrationAck>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Unlocks a v2-shape dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func unlockDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await unlockDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Unlocks a v2-shape dashboard.
- DELETE /v1/o11y/dashboards/{id}/lock
- Unlocks a v2-shape dashboard. Only the dashboard's creator or an org admin may lock or unlock. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func unlockDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboards/{id}/lock"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Removes the caller's pin for a dashboard.
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func unpinDashboardV2(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await unpinDashboardV2WithRequestBuilder(id: id, apiConfiguration: apiConfiguration).execute().body
}
/**
Removes the caller's pin for a dashboard.
- DELETE /v1/o11y/users/me/dashboards/{id}/pins
- Removes the caller's pin for a dashboard. Idempotent — unpinning a dashboard that was not pinned still succeeds. Callers need the viewer role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the resource id from the path.
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func unpinDashboardV2WithRequestBuilder(id: String, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/users/me/dashboards/{id}/pins"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters: [String: any Sendable]? = nil
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
:
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes a connected account's configuration for the given provider, by id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter o11yO11yUpdateAccountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateAccount(cloudProvider: String, id: String, o11yO11yUpdateAccountIn: O11yO11yUpdateAccountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateAccountWithRequestBuilder(cloudProvider: cloudProvider, id: id, o11yO11yUpdateAccountIn: o11yO11yUpdateAccountIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes a connected account's configuration for the given provider, by id.
- PUT /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}
- Changes a connected account's configuration for the given provider, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter o11yO11yUpdateAccountIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateAccountWithRequestBuilder(cloudProvider: String, id: String, o11yO11yUpdateAccountIn: O11yO11yUpdateAccountIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdateAccountIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces one auth domain's SSO configuration, by id.
- parameter id: (path)
- parameter o11yO11yUpdatableAuthDomain: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateAuthDomain(id: String, o11yO11yUpdatableAuthDomain: O11yO11yUpdatableAuthDomain, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateAuthDomainWithRequestBuilder(id: id, o11yO11yUpdatableAuthDomain: o11yO11yUpdatableAuthDomain, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces one auth domain's SSO configuration, by id.
- PUT /v1/o11y/domains/{id}
- Replaces one auth domain's SSO configuration, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yUpdatableAuthDomain: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateAuthDomainWithRequestBuilder(id: String, o11yO11yUpdatableAuthDomain: O11yO11yUpdatableAuthDomain, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/domains/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdatableAuthDomain, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a notification channel's receiver, by id.
- parameter id: (path)
- parameter o11yO11yChannelUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateChannelByID(id: String, o11yO11yChannelUpdateIn: O11yO11yChannelUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateChannelByIDWithRequestBuilder(id: id, o11yO11yChannelUpdateIn: o11yO11yChannelUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a notification channel's receiver, by id.
- PUT /v1/o11y/channels/{id}
- Replaces a notification channel's receiver, by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yChannelUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateChannelByIDWithRequestBuilder(id: String, o11yO11yChannelUpdateIn: O11yO11yChannelUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/channels/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yChannelUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Updates a v2-shape dashboard's metadata, spec and tag set.
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yDashboardUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateDashboardV2(id: String, o11yO11yDashboardUpdateIn: O11yO11yDashboardUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardOut {
return try await updateDashboardV2WithRequestBuilder(id: id, o11yO11yDashboardUpdateIn: o11yO11yDashboardUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Updates a v2-shape dashboard's metadata, spec and tag set.
- PUT /v1/o11y/dashboards/{id}
- Updates a v2-shape dashboard's metadata, spec and tag set. The name is immutable and locked dashboards are rejected. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yDashboardUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardOut>
*/
open class func updateDashboardV2WithRequestBuilder(id: String, o11yO11yDashboardUpdateIn: O11yO11yDashboardUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardOut> {
var localVariablePath = "/v1/o11y/dashboards/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a saved view's name and data.
- parameter id: (path) ID is the saved view id from the path.
- parameter o11yO11yDashboardViewUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDashboardViewOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateDashboardView(id: String, o11yO11yDashboardViewUpdateIn: O11yO11yDashboardViewUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDashboardViewOut {
return try await updateDashboardViewWithRequestBuilder(id: id, o11yO11yDashboardViewUpdateIn: o11yO11yDashboardViewUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a saved view's name and data.
- PUT /v1/o11y/dashboard_views/{id}
- Replaces a saved view's name and data. Saved views are shared org-wide. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the saved view id from the path.
- parameter o11yO11yDashboardViewUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDashboardViewOut>
*/
open class func updateDashboardViewWithRequestBuilder(id: String, o11yO11yDashboardViewUpdateIn: O11yO11yDashboardViewUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDashboardViewOut> {
var localVariablePath = "/v1/o11y/dashboard_views/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDashboardViewUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDashboardViewOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a planned maintenance window, by id.
- parameter id: (path)
- parameter o11yO11yDowntimeUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateDowntimeScheduleByID(id: String, o11yO11yDowntimeUpdateIn: O11yO11yDowntimeUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateDowntimeScheduleByIDWithRequestBuilder(id: id, o11yO11yDowntimeUpdateIn: o11yO11yDowntimeUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a planned maintenance window, by id.
- PUT /v1/o11y/downtime_schedules/{id}
- Replaces a planned maintenance window, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yDowntimeUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateDowntimeScheduleByIDWithRequestBuilder(id: String, o11yO11yDowntimeUpdateIn: O11yO11yDowntimeUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/downtime_schedules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDowntimeUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes an ingestion key, by id.
- parameter keyId: (path)
- parameter o11yO11yUpdateIngestionKeyIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateIngestionKey(keyId: String, o11yO11yUpdateIngestionKeyIn: O11yO11yUpdateIngestionKeyIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateIngestionKeyWithRequestBuilder(keyId: keyId, o11yO11yUpdateIngestionKeyIn: o11yO11yUpdateIngestionKeyIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes an ingestion key, by id.
- PATCH /v1/o11y/gateway/ingestion_keys/{keyId}
- Changes an ingestion key, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter keyId: (path)
- parameter o11yO11yUpdateIngestionKeyIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateIngestionKeyWithRequestBuilder(keyId: String, o11yO11yUpdateIngestionKeyIn: O11yO11yUpdateIngestionKeyIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/gateway/ingestion_keys/{keyId}"
let keyIdPreEscape = "\(APIHelper.mapValueToPathItem(keyId))"
let keyIdPostEscape = keyIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{keyId}", with: keyIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdateIngestionKeyIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes an ingestion key limit, by limit id.
- parameter limitId: (path)
- parameter o11yO11yUpdateLimitIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateIngestionKeyLimit(limitId: String, o11yO11yUpdateLimitIn: O11yO11yUpdateLimitIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateIngestionKeyLimitWithRequestBuilder(limitId: limitId, o11yO11yUpdateLimitIn: o11yO11yUpdateLimitIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes an ingestion key limit, by limit id.
- PATCH /v1/o11y/gateway/ingestion_keys/limits/{limitId}
- Changes an ingestion key limit, by limit id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter limitId: (path)
- parameter o11yO11yUpdateLimitIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateIngestionKeyLimitWithRequestBuilder(limitId: String, o11yO11yUpdateLimitIn: O11yO11yUpdateLimitIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/gateway/ingestion_keys/limits/{limitId}"
let limitIdPreEscape = "\(APIHelper.mapValueToPathItem(limitId))"
let limitIdPostEscape = limitIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{limitId}", with: limitIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdateLimitIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Updates one metric's metadata — description, type, unit, temporality, monotonicity — and answers with the bare success envelope.
- parameter o11yO11yMetricMetadataSaveIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yMetricAckOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMetricMetadata(o11yO11yMetricMetadataSaveIn: O11yO11yMetricMetadataSaveIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yMetricAckOut {
return try await updateMetricMetadataWithRequestBuilder(o11yO11yMetricMetadataSaveIn: o11yO11yMetricMetadataSaveIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Updates one metric's metadata — description, type, unit, temporality, monotonicity — and answers with the bare success envelope.
- POST /v1/o11y/metrics/metadata
- Updates one metric's metadata — description, type, unit, temporality, monotonicity — and answers with the bare success envelope.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yMetricMetadataSaveIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yMetricAckOut>
*/
open class func updateMetricMetadataWithRequestBuilder(o11yO11yMetricMetadataSaveIn: O11yO11yMetricMetadataSaveIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yMetricAckOut> {
let localVariablePath = "/v1/o11y/metrics/metadata"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yMetricMetadataSaveIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yMetricAckOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Updates the match type and labels of a volume-control rule by its id; the metric name is immutable.
- parameter id: (path) ID is the rule&#39;s id.
- parameter o11yO11yReductionRuleSaveIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yReductionRuleOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMetricReductionRuleByID(id: String, o11yO11yReductionRuleSaveIn: O11yO11yReductionRuleSaveIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yReductionRuleOut {
return try await updateMetricReductionRuleByIDWithRequestBuilder(id: id, o11yO11yReductionRuleSaveIn: o11yO11yReductionRuleSaveIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Updates the match type and labels of a volume-control rule by its id; the metric name is immutable.
- PUT /v1/o11y/metric_reduction_rules/{id}
- Updates the match type and labels of a volume-control rule by its id; the metric name is immutable.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the rule&#39;s id.
- parameter o11yO11yReductionRuleSaveIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yReductionRuleOut>
*/
open class func updateMetricReductionRuleByIDWithRequestBuilder(id: String, o11yO11yReductionRuleSaveIn: O11yO11yReductionRuleSaveIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yReductionRuleOut> {
var localVariablePath = "/v1/o11y/metric_reduction_rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yReductionRuleSaveIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yReductionRuleOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Rewrites the caller's own organization record — display name, name, alias — always addressed as \"me\", never by id.
- parameter o11yO11yOrganization: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMyOrganization(o11yO11yOrganization: O11yO11yOrganization, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateMyOrganizationWithRequestBuilder(o11yO11yOrganization: o11yO11yOrganization, apiConfiguration: apiConfiguration).execute().body
}
/**
Rewrites the caller's own organization record — display name, name, alias — always addressed as \"me\", never by id.
- PUT /v1/o11y/orgs/me
- Rewrites the caller's own organization record — display name, name, alias — always addressed as \"me\", never by id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yOrganization: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateMyOrganizationWithRequestBuilder(o11yO11yOrganization: O11yO11yOrganization, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/orgs/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yOrganization, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces the calling user's password, refusing when the old one does not match.
- parameter o11yO11yChangePasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMyPassword(o11yO11yChangePasswordIn: O11yO11yChangePasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateMyPasswordWithRequestBuilder(o11yO11yChangePasswordIn: o11yO11yChangePasswordIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces the calling user's password, refusing when the old one does not match.
- PUT /v1/o11y/users/me/factor_password
- Replaces the calling user's password, refusing when the old one does not match. Open to any authenticated caller.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yChangePasswordIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateMyPasswordWithRequestBuilder(o11yO11yChangePasswordIn: O11yO11yChangePasswordIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/users/me/factor_password"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yChangePasswordIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames the calling service account.
- parameter o11yO11yMyServiceAccountUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMyServiceAccount(o11yO11yMyServiceAccountUpdateIn: O11yO11yMyServiceAccountUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateMyServiceAccountWithRequestBuilder(o11yO11yMyServiceAccountUpdateIn: o11yO11yMyServiceAccountUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames the calling service account.
- PUT /v1/o11y/service_accounts/me
- Renames the calling service account.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yMyServiceAccountUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateMyServiceAccountWithRequestBuilder(o11yO11yMyServiceAccountUpdateIn: O11yO11yMyServiceAccountUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/service_accounts/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yMyServiceAccountUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames the calling user.
- parameter o11yO11yUpdatableUser: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateMyUserV2(o11yO11yUpdatableUser: O11yO11yUpdatableUser, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateMyUserV2WithRequestBuilder(o11yO11yUpdatableUser: o11yO11yUpdatableUser, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames the calling user.
- PUT /v1/o11y/users/me
- Renames the calling user. Open to any authenticated caller.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yUpdatableUser: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateMyUserV2WithRequestBuilder(o11yO11yUpdatableUser: O11yO11yUpdatableUser, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/users/me"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdatableUser, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets one org-scoped preference, by name.
- parameter name: (path)
- parameter o11yO11yUpdatablePreference: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateOrgPreference(name: String, o11yO11yUpdatablePreference: O11yO11yUpdatablePreference, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateOrgPreferenceWithRequestBuilder(name: name, o11yO11yUpdatablePreference: o11yO11yUpdatablePreference, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets one org-scoped preference, by name.
- PUT /v1/o11y/org/preferences/{name}
- Sets one org-scoped preference, by name. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter name: (path)
- parameter o11yO11yUpdatablePreference: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateOrgPreferenceWithRequestBuilder(name: String, o11yO11yUpdatablePreference: O11yO11yUpdatablePreference, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/org/preferences/{name}"
let namePreEscape = "\(APIHelper.mapValueToPathItem(name))"
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdatablePreference, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Updates the public-sharing config for a dashboard.
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yPublicDashboardWriteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updatePublicDashboard(id: String, o11yO11yPublicDashboardWriteIn: O11yO11yPublicDashboardWriteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updatePublicDashboardWithRequestBuilder(id: id, o11yO11yPublicDashboardWriteIn: o11yO11yPublicDashboardWriteIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Updates the public-sharing config for a dashboard.
- PUT /v1/o11y/dashboards/{id}/public
- Updates the public-sharing config for a dashboard. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path) ID is the dashboard id from the path.
- parameter o11yO11yPublicDashboardWriteIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updatePublicDashboardWithRequestBuilder(id: String, o11yO11yPublicDashboardWriteIn: O11yO11yPublicDashboardWriteIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/dashboards/{id}/public"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yPublicDashboardWriteIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces the org's quick filters for one signal with the attribute list given.
- parameter o11yO11yUpdatableQuickFilters: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateQuickFilters(o11yO11yUpdatableQuickFilters: O11yO11yUpdatableQuickFilters, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateQuickFiltersWithRequestBuilder(o11yO11yUpdatableQuickFilters: o11yO11yUpdatableQuickFilters, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces the org's quick filters for one signal with the attribute list given.
- PUT /v1/o11y/orgs/me/filters
- Replaces the org's quick filters for one signal with the attribute list given. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yUpdatableQuickFilters: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateQuickFiltersWithRequestBuilder(o11yO11yUpdatableQuickFilters: O11yO11yUpdatableQuickFilters, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/orgs/me/filters"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdatableQuickFilters, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a custom role's description and transaction groups.
- parameter id: (path)
- parameter o11yO11yRoleUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateRole(id: String, o11yO11yRoleUpdateIn: O11yO11yRoleUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateRoleWithRequestBuilder(id: id, o11yO11yRoleUpdateIn: o11yO11yRoleUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a custom role's description and transaction groups.
- PUT /v1/o11y/roles/{id}
- Replaces a custom role's description and transaction groups. Both fields are mandatory — send an empty string or an empty array to clear one — and managed roles cannot be edited.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRoleUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateRoleWithRequestBuilder(id: String, o11yO11yRoleUpdateIn: O11yO11yRoleUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/roles/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRoleUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a route policy, by id, answering with the stored policy.
- parameter id: (path)
- parameter o11yO11yRoutePolicyUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yRoutePolicyOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateRoutePolicy(id: String, o11yO11yRoutePolicyUpdateIn: O11yO11yRoutePolicyUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yRoutePolicyOut {
return try await updateRoutePolicyWithRequestBuilder(id: id, o11yO11yRoutePolicyUpdateIn: o11yO11yRoutePolicyUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a route policy, by id, answering with the stored policy.
- PUT /v1/o11y/route_policies/{id}
- Replaces a route policy, by id, answering with the stored policy. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yRoutePolicyUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yRoutePolicyOut>
*/
open class func updateRoutePolicyWithRequestBuilder(id: String, o11yO11yRoutePolicyUpdateIn: O11yO11yRoutePolicyUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yRoutePolicyOut> {
var localVariablePath = "/v1/o11y/route_policies/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yRoutePolicyUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yRoutePolicyOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces an alert rule's definition, by id.
- parameter id: (path)
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateRuleByID(id: String, body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateRuleByIDWithRequestBuilder(id: id, body: body, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces an alert rule's definition, by id.
- PUT /v1/o11y/rules/{id}
- Replaces an alert rule's definition, by id. Editor gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter body: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateRuleByIDWithRequestBuilder(id: String, body: JSONValue, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/rules/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes a service's configuration for one connected account of the given provider, by account id and service id.
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter serviceId: (path)
- parameter o11yO11yUpdateServiceIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateService(cloudProvider: String, id: String, serviceId: String, o11yO11yUpdateServiceIn: O11yO11yUpdateServiceIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateServiceWithRequestBuilder(cloudProvider: cloudProvider, id: id, serviceId: serviceId, o11yO11yUpdateServiceIn: o11yO11yUpdateServiceIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes a service's configuration for one connected account of the given provider, by account id and service id.
- PUT /v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services/{service_id}
- Changes a service's configuration for one connected account of the given provider, by account id and service id. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter cloudProvider: (path)
- parameter id: (path)
- parameter serviceId: (path)
- parameter o11yO11yUpdateServiceIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateServiceWithRequestBuilder(cloudProvider: String, id: String, serviceId: String, o11yO11yUpdateServiceIn: O11yO11yUpdateServiceIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/cloud_integrations/{cloud_provider}/accounts/{id}/services/{service_id}"
let cloudProviderPreEscape = "\(APIHelper.mapValueToPathItem(cloudProvider))"
let cloudProviderPostEscape = cloudProviderPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{cloud_provider}", with: cloudProviderPostEscape, options: .literal, range: nil)
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let serviceIdPreEscape = "\(APIHelper.mapValueToPathItem(serviceId))"
let serviceIdPostEscape = serviceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{service_id}", with: serviceIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdateServiceIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames a service account.
- parameter id: (path)
- parameter o11yO11yServiceAccountUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateServiceAccount(id: String, o11yO11yServiceAccountUpdateIn: O11yO11yServiceAccountUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateServiceAccountWithRequestBuilder(id: id, o11yO11yServiceAccountUpdateIn: o11yO11yServiceAccountUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames a service account.
- PUT /v1/o11y/service_accounts/{id}
- Renames a service account.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yServiceAccountUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateServiceAccountWithRequestBuilder(id: String, o11yO11yServiceAccountUpdateIn: O11yO11yServiceAccountUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yServiceAccountUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames an API key or moves its expiry.
- parameter id: (path)
- parameter fid: (path)
- parameter o11yO11yAPIKeyUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateServiceAccountKey(id: String, fid: String, o11yO11yAPIKeyUpdateIn: O11yO11yAPIKeyUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateServiceAccountKeyWithRequestBuilder(id: id, fid: fid, o11yO11yAPIKeyUpdateIn: o11yO11yAPIKeyUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames an API key or moves its expiry.
- PUT /v1/o11y/service_accounts/{id}/keys/{fid}
- Renames an API key or moves its expiry.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter fid: (path)
- parameter o11yO11yAPIKeyUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateServiceAccountKeyWithRequestBuilder(id: String, fid: String, o11yO11yAPIKeyUpdateIn: O11yO11yAPIKeyUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/service_accounts/{id}/keys/{fid}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let fidPreEscape = "\(APIHelper.mapValueToPathItem(fid))"
let fidPostEscape = fidPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{fid}", with: fidPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yAPIKeyUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes a mapper's field context, config or enabled state.
- parameter groupId: (path)
- parameter mapperId: (path)
- parameter o11yO11ySpanMapperUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateSpanMapper(groupId: String, mapperId: String, o11yO11ySpanMapperUpdateIn: O11yO11ySpanMapperUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateSpanMapperWithRequestBuilder(groupId: groupId, mapperId: mapperId, o11yO11ySpanMapperUpdateIn: o11yO11ySpanMapperUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes a mapper's field context, config or enabled state.
- PATCH /v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}
- Changes a mapper's field context, config or enabled state. Every field is optional and only the ones sent are applied. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter mapperId: (path)
- parameter o11yO11ySpanMapperUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateSpanMapperWithRequestBuilder(groupId: String, mapperId: String, o11yO11ySpanMapperUpdateIn: O11yO11ySpanMapperUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let mapperIdPreEscape = "\(APIHelper.mapValueToPathItem(mapperId))"
let mapperIdPostEscape = mapperIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{mapperId}", with: mapperIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySpanMapperUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes a group's name, condition or enabled state.
- parameter groupId: (path)
- parameter o11yO11ySpanMapperGroupUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateSpanMapperGroup(groupId: String, o11yO11ySpanMapperGroupUpdateIn: O11yO11ySpanMapperGroupUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateSpanMapperGroupWithRequestBuilder(groupId: groupId, o11yO11ySpanMapperGroupUpdateIn: o11yO11ySpanMapperGroupUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes a group's name, condition or enabled state.
- PATCH /v1/o11y/span_mapper_groups/{groupId}
- Changes a group's name, condition or enabled state. Every field is optional and only the ones sent are applied. Callers need the admin role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter groupId: (path)
- parameter o11yO11ySpanMapperGroupUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateSpanMapperGroupWithRequestBuilder(groupId: String, o11yO11ySpanMapperGroupUpdateIn: O11yO11ySpanMapperGroupUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/span_mapper_groups/{groupId}"
let groupIdPreEscape = "\(APIHelper.mapValueToPathItem(groupId))"
let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11ySpanMapperGroupUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Changes how one span field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back.
- parameter o11yO11yFieldSetting: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFieldSetting
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateTraceField(o11yO11yFieldSetting: O11yO11yFieldSetting, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFieldSetting {
return try await updateTraceFieldWithRequestBuilder(o11yO11yFieldSetting: o11yO11yFieldSetting, apiConfiguration: apiConfiguration).execute().body
}
/**
Changes how one span field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back.
- POST /v1/o11y/traces/fields
- Changes how one span field is stored — selects or deselects it as a materialized column and tunes its index — and echoes the setting back. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yFieldSetting: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFieldSetting>
*/
open class func updateTraceFieldWithRequestBuilder(o11yO11yFieldSetting: O11yO11yFieldSetting, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFieldSetting> {
let localVariablePath = "/v1/o11y/traces/fields"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFieldSetting, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFieldSetting>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames a funnel or rewrites its description, answering the funnel as it now stands.
- parameter funnelId: (path)
- parameter o11yO11yFunnelUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateTraceFunnel(funnelId: String, o11yO11yFunnelUpdateIn: O11yO11yFunnelUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelOut {
return try await updateTraceFunnelWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelUpdateIn: o11yO11yFunnelUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames a funnel or rewrites its description, answering the funnel as it now stands.
- PUT /v1/o11y/trace-funnels/{funnel_id}
- Renames a funnel or rewrites its description, answering the funnel as it now stands. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelOut>
*/
open class func updateTraceFunnelWithRequestBuilder(funnelId: String, o11yO11yFunnelUpdateIn: O11yO11yFunnelUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Replaces a funnel's steps — the funnel is named in the body rather than the path — and answers the funnel as it now stands.
- parameter o11yO11yFunnelStepsUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateTraceFunnelSteps(o11yO11yFunnelStepsUpdateIn: O11yO11yFunnelStepsUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelOut {
return try await updateTraceFunnelStepsWithRequestBuilder(o11yO11yFunnelStepsUpdateIn: o11yO11yFunnelStepsUpdateIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Replaces a funnel's steps — the funnel is named in the body rather than the path — and answers the funnel as it now stands.
- PUT /v1/o11y/trace-funnels/steps/update
- Replaces a funnel's steps — the funnel is named in the body rather than the path — and answers the funnel as it now stands. A name or description sent alongside is applied too; an empty one leaves it as it was. Callers need the editor role; the runtime's own gate enforces it.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yFunnelStepsUpdateIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelOut>
*/
open class func updateTraceFunnelStepsWithRequestBuilder(o11yO11yFunnelStepsUpdateIn: O11yO11yFunnelStepsUpdateIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelOut> {
let localVariablePath = "/v1/o11y/trace-funnels/steps/update"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelStepsUpdateIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames one org member, by user id — someone else, never the caller, who renames themselves through updateMyUser.
- parameter id: (path)
- parameter o11yO11yUserUpdate: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateUser(id: String, o11yO11yUserUpdate: O11yO11yUserUpdate, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateUserWithRequestBuilder(id: id, o11yO11yUserUpdate: o11yO11yUserUpdate, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames one org member, by user id — someone else, never the caller, who renames themselves through updateMyUser.
- PUT /v1/o11y/users/{id}
- Renames one org member, by user id — someone else, never the caller, who renames themselves through updateMyUser. Admin gate.
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yUserUpdate: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateUserWithRequestBuilder(id: String, o11yO11yUserUpdate: O11yO11yUserUpdate, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/users/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUserUpdate, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Renames one org member and may move their legacy role, answering with the updated record.
- parameter id: (path)
- parameter o11yO11yDeprecatedUserUpdate: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yDeprecatedUserOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateUserDeprecated(id: String, o11yO11yDeprecatedUserUpdate: O11yO11yDeprecatedUserUpdate, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yDeprecatedUserOut {
return try await updateUserDeprecatedWithRequestBuilder(id: id, o11yO11yDeprecatedUserUpdate: o11yO11yDeprecatedUserUpdate, apiConfiguration: apiConfiguration).execute().body
}
/**
Renames one org member and may move their legacy role, answering with the updated record.
- PUT /v1/o11y/user/{id}
- Renames one org member and may move their legacy role, answering with the updated record. Admins may update anyone; a non-admin only themselves (the runtime's self-access gate).
- Bearer Token:
- type: http
- name: bearer
- parameter id: (path)
- parameter o11yO11yDeprecatedUserUpdate: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yDeprecatedUserOut>
*/
open class func updateUserDeprecatedWithRequestBuilder(id: String, o11yO11yDeprecatedUserUpdate: O11yO11yDeprecatedUserUpdate, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yDeprecatedUserOut> {
var localVariablePath = "/v1/o11y/user/{id}"
let idPreEscape = "\(APIHelper.mapValueToPathItem(id))"
let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{id}", with: idPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDeprecatedUserUpdate, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yDeprecatedUserOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Sets one preference of the calling user, by name.
- parameter name: (path)
- parameter o11yO11yUpdatablePreference: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func updateUserPreference(name: String, o11yO11yUpdatablePreference: O11yO11yUpdatablePreference, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await updateUserPreferenceWithRequestBuilder(name: name, o11yO11yUpdatablePreference: o11yO11yUpdatablePreference, apiConfiguration: apiConfiguration).execute().body
}
/**
Sets one preference of the calling user, by name.
- PUT /v1/o11y/user/preferences/{name}
- Sets one preference of the calling user, by name. Viewer gate.
- Bearer Token:
- type: http
- name: bearer
- parameter name: (path)
- parameter o11yO11yUpdatablePreference: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func updateUserPreferenceWithRequestBuilder(name: String, o11yO11yUpdatablePreference: O11yO11yUpdatablePreference, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
var localVariablePath = "/v1/o11y/user/preferences/{name}"
let namePreEscape = "\(APIHelper.mapValueToPathItem(name))"
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yUpdatablePreference, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the traces that match a funnel described inline — the builder's \"try this\" before anything is saved.
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func validateDraftFunnelTraces(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await validateDraftFunnelTracesWithRequestBuilder(o11yO11yDraftFunnelIn: o11yO11yDraftFunnelIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the traces that match a funnel described inline — the builder's \"try this\" before anything is saved.
- POST /v1/o11y/trace-funnels/analytics/validate
- Lists the traces that match a funnel described inline — the builder's \"try this\" before anything is saved.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yDraftFunnelIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func validateDraftFunnelTracesWithRequestBuilder(o11yO11yDraftFunnelIn: O11yO11yDraftFunnelIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
let localVariablePath = "/v1/o11y/trace-funnels/analytics/validate"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yDraftFunnelIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Lists the traces that match a saved funnel over a window — the read that answers \"is this funnel finding anything at all\".
- parameter funnelId: (path)
- parameter o11yO11yFunnelWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: O11yO11yFunnelRowsOut
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func validateTraceFunnelTraces(funnelId: String, o11yO11yFunnelWindowIn: O11yO11yFunnelWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> O11yO11yFunnelRowsOut {
return try await validateTraceFunnelTracesWithRequestBuilder(funnelId: funnelId, o11yO11yFunnelWindowIn: o11yO11yFunnelWindowIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Lists the traces that match a saved funnel over a window — the read that answers \"is this funnel finding anything at all\".
- POST /v1/o11y/trace-funnels/{funnel_id}/analytics/validate
- Lists the traces that match a saved funnel over a window — the read that answers \"is this funnel finding anything at all\".
- Bearer Token:
- type: http
- name: bearer
- parameter funnelId: (path)
- parameter o11yO11yFunnelWindowIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<O11yO11yFunnelRowsOut>
*/
open class func validateTraceFunnelTracesWithRequestBuilder(funnelId: String, o11yO11yFunnelWindowIn: O11yO11yFunnelWindowIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<O11yO11yFunnelRowsOut> {
var localVariablePath = "/v1/o11y/trace-funnels/{funnel_id}/analytics/validate"
let funnelIdPreEscape = "\(APIHelper.mapValueToPathItem(funnelId))"
let funnelIdPostEscape = funnelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
localVariablePath = localVariablePath.replacingOccurrences(of: "{funnel_id}", with: funnelIdPostEscape, options: .literal, range: nil)
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yFunnelWindowIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<O11yO11yFunnelRowsOut>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
/**
Checks that a reset-password token exists and has not expired, without consuming it.
- parameter o11yO11yResetTokenRef: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Void
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func verifyResetPasswordToken(o11yO11yResetTokenRef: O11yO11yResetTokenRef, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) {
return try await verifyResetPasswordTokenWithRequestBuilder(o11yO11yResetTokenRef: o11yO11yResetTokenRef, apiConfiguration: apiConfiguration).execute().body
}
/**
Checks that a reset-password token exists and has not expired, without consuming it.
- POST /v1/o11y/reset_password_tokens/verify
- Checks that a reset-password token exists and has not expired, without consuming it. Unauthenticated: the token is the proof.
- Bearer Token:
- type: http
- name: bearer
- parameter o11yO11yResetTokenRef: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Void>
*/
open class func verifyResetPasswordTokenWithRequestBuilder(o11yO11yResetTokenRef: O11yO11yResetTokenRef, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Void> {
let localVariablePath = "/v1/o11y/reset_password_tokens/verify"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: o11yO11yResetTokenRef, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Void>.Type = apiConfiguration.requestBuilderFactory.getNonDecodableBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
}