Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,561 changes: 3,405 additions & 2,156 deletions schema/openapispec-upsun.json

Large diffs are not rendered by default.

356 changes: 344 additions & 12 deletions src/Api/BlackfireMonitoringApi.php

Large diffs are not rendered by default.

30 changes: 12 additions & 18 deletions src/Api/BlackfireProfilingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
use Psr\Http\Message\StreamFactoryInterface;
use Upsun\Api\Serializer\ObjectSerializer;
use Upsun\Core\OAuthProvider;
use Upsun\Model\BlackfireProfileGraph200Response;
use Upsun\Model\BlackfireProfileProfile200Response;
use Upsun\Model\BlackfireProfilesList200Response;
use Upsun\Model\BlackfireProfilesRecommendations200Response;
use Upsun\Model\BlackfireProfileSubprofiles200Response;
use Upsun\Model\BlackfireProfileTimeline200Response;
use Upsun\Model\FilterSelect;

/**
Expand Down Expand Up @@ -72,7 +66,7 @@ public function blackfireProfileGraph(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileGraph200Response {
): mixed {
return $this->blackfireProfileGraphWithHttpInfo(
$projectId,
$environmentId,
Expand All @@ -94,7 +88,7 @@ private function blackfireProfileGraphWithHttpInfo(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileGraph200Response {
): mixed {
$request = $this->blackfireProfileGraphRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -295,7 +289,7 @@ public function blackfireProfileProfile(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileProfile200Response {
): mixed {
return $this->blackfireProfileProfileWithHttpInfo(
$projectId,
$environmentId,
Expand All @@ -317,7 +311,7 @@ private function blackfireProfileProfileWithHttpInfo(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileProfile200Response {
): mixed {
$request = $this->blackfireProfileProfileRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -518,7 +512,7 @@ public function blackfireProfileSubprofiles(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileSubprofiles200Response {
): mixed {
return $this->blackfireProfileSubprofilesWithHttpInfo(
$projectId,
$environmentId,
Expand All @@ -540,7 +534,7 @@ private function blackfireProfileSubprofilesWithHttpInfo(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileSubprofiles200Response {
): mixed {
$request = $this->blackfireProfileSubprofilesRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -741,7 +735,7 @@ public function blackfireProfileTimeline(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileTimeline200Response {
): mixed {
return $this->blackfireProfileTimelineWithHttpInfo(
$projectId,
$environmentId,
Expand All @@ -763,7 +757,7 @@ private function blackfireProfileTimelineWithHttpInfo(
string $projectId,
string $environmentId,
string $uuid
): BlackfireProfileTimeline200Response {
): mixed {
$request = $this->blackfireProfileTimelineRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -989,7 +983,7 @@ public function blackfireProfilesList(
?FilterSelect $languages = null,
?FilterSelect $frameworks = null,
?int $itemsPerPage = null
): BlackfireProfilesList200Response {
): mixed {
return $this->blackfireProfilesListWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1049,7 +1043,7 @@ private function blackfireProfilesListWithHttpInfo(
?FilterSelect $languages = null,
?FilterSelect $frameworks = null,
?int $itemsPerPage = null
): BlackfireProfilesList200Response {
): mixed {
$request = $this->blackfireProfilesListRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1502,7 +1496,7 @@ public function blackfireProfilesRecommendations(
?int $to = null,
?string $transaction = null,
?int $limit = null
): BlackfireProfilesRecommendations200Response {
): mixed {
return $this->blackfireProfilesRecommendationsWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1533,7 +1527,7 @@ private function blackfireProfilesRecommendationsWithHttpInfo(
?int $to = null,
?string $transaction = null,
?int $limit = null
): BlackfireProfilesRecommendations200Response {
): mixed {
$request = $this->blackfireProfilesRecommendationsRequest(
$projectId,
$environmentId,
Expand Down
20 changes: 8 additions & 12 deletions src/Api/ContinuousProfilingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\StreamFactoryInterface;
use SplFileObject;
use Upsun\Api\Serializer\ObjectSerializer;
use Upsun\Core\OAuthProvider;
use Upsun\Model\GetApplicationFilter200Response;
use Upsun\Model\GetApplicationTimeline200Response;
use Upsun\Model\ListApplications200Response;

/**
* Low level ContinuousProfilingApi (auto-generated)
Expand Down Expand Up @@ -96,7 +92,7 @@ public function getApplicationFilter(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): GetApplicationFilter200Response {
): mixed {
return $this->getApplicationFilterWithHttpInfo(
$projectId,
$envId,
Expand Down Expand Up @@ -157,7 +153,7 @@ private function getApplicationFilterWithHttpInfo(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): GetApplicationFilter200Response {
): mixed {
$request = $this->getApplicationFilterRequest(
$projectId,
$envId,
Expand Down Expand Up @@ -596,7 +592,7 @@ public function getApplicationMerge(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): SplFileObject {
): mixed {
return $this->getApplicationMergeWithHttpInfo(
$projectId,
$envId,
Expand Down Expand Up @@ -660,7 +656,7 @@ private function getApplicationMergeWithHttpInfo(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): SplFileObject {
): mixed {
$request = $this->getApplicationMergeRequest(
$projectId,
$envId,
Expand Down Expand Up @@ -1113,7 +1109,7 @@ public function getApplicationTimeline(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): GetApplicationTimeline200Response {
): mixed {
return $this->getApplicationTimelineWithHttpInfo(
$projectId,
$envId,
Expand Down Expand Up @@ -1174,7 +1170,7 @@ private function getApplicationTimelineWithHttpInfo(
?array $runtimeOs = null,
?int $probeVersionMode = null,
?array $probeVersion = null
): GetApplicationTimeline200Response {
): mixed {
$request = $this->getApplicationTimelineRequest(
$projectId,
$envId,
Expand Down Expand Up @@ -1587,7 +1583,7 @@ public function listApplications(
string $envId,
?int $from = null,
?int $to = null
): ListApplications200Response {
): mixed {
return $this->listApplicationsWithHttpInfo(
$projectId,
$envId,
Expand All @@ -1612,7 +1608,7 @@ private function listApplicationsWithHttpInfo(
string $envId,
?int $from = null,
?int $to = null
): ListApplications200Response {
): mixed {
$request = $this->listApplicationsRequest(
$projectId,
$envId,
Expand Down
5 changes: 2 additions & 3 deletions src/Api/EntrypointApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Psr\Http\Message\StreamFactoryInterface;
use Upsun\Api\Serializer\ObjectSerializer;
use Upsun\Core\OAuthProvider;
use Upsun\Model\ObservabilityEntrypoint200Response;

/**
* Low level EntrypointApi (auto-generated)
Expand Down Expand Up @@ -66,7 +65,7 @@ public function __construct(
public function observabilityEntrypoint(
string $projectId,
string $environmentId
): ObservabilityEntrypoint200Response {
): mixed {
return $this->observabilityEntrypointWithHttpInfo(
$projectId,
$environmentId
Expand All @@ -85,7 +84,7 @@ public function observabilityEntrypoint(
private function observabilityEntrypointWithHttpInfo(
string $projectId,
string $environmentId
): ObservabilityEntrypoint200Response {
): mixed {
$request = $this->observabilityEntrypointRequest(
$projectId,
$environmentId
Expand Down
37 changes: 18 additions & 19 deletions src/Api/HttpTrafficApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
use Psr\Http\Message\StreamFactoryInterface;
use Upsun\Api\Serializer\ObjectSerializer;
use Upsun\Core\OAuthProvider;
use Upsun\Model\HttpMetricsOverview200Response;
use Upsun\Model\HttpMetricsTimelineIps200Response;
use Upsun\Model\HttpMetricsTimelineUrls200Response;
use Upsun\Model\HttpMetricsTimelineUserAgents200Response;

/**
* Low level HttpTrafficApi (auto-generated)
Expand Down Expand Up @@ -77,7 +73,7 @@ public function httpMetricsOverview(
int $from,
int $to,
?int $topUrlsCount = null
): HttpMetricsOverview200Response {
): mixed {
return $this->httpMetricsOverviewWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -105,7 +101,7 @@ private function httpMetricsOverviewWithHttpInfo(
int $from,
int $to,
?int $topUrlsCount = null
): HttpMetricsOverview200Response {
): mixed {
$request = $this->httpMetricsOverviewRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -344,8 +340,9 @@ private function httpMetricsOverviewRequest(
*
* Returns HTTP traffic analytics grouped by IP address with IPs ranked by impact (response time × request count).
* Use limit parameter to control total items returned (default: 200, max: 300) and top_hits_count to control how
* many are tracked in timelines (default: 15, max: 15). Items have a top_hit boolean indicating whether they appear
* in timeline data.
* many items are flagged as top hits and tracked in the timeline (default: 10, max: 15). Items with index <
* top_hits_count are flagged with top_hit: true and tracked in top_hits_timeline; the remainder (up to limit) are
* returned with top_hit: false.
*
* @param string $projectId (required)
* @param string $environmentId (required)
Expand Down Expand Up @@ -389,7 +386,7 @@ public function httpMetricsTimelineIps(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineIps200Response {
): mixed {
return $this->httpMetricsTimelineIpsWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -456,7 +453,7 @@ private function httpMetricsTimelineIpsWithHttpInfo(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineIps200Response {
): mixed {
$request = $this->httpMetricsTimelineIpsRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -917,9 +914,10 @@ private function httpMetricsTimelineIpsRequest(
*
* Returns HTTP traffic analytics with URLs ranked by impact (response time × request count), aggregated metrics
* (average, median, p96 response times in milliseconds), status code distributions, and time-series data. Use limit
* parameter to control total items returned (default: 200, max: 300) and top_hits_count to control how many are
* tracked in timelines (default: 15, max: 15). Items have a top_hit boolean indicating whether they appear in
* timeline data.
* parameter to control total items returned (default: 200, max: 300) and top_hits_count to control how many items
* are flagged as top hits and tracked in the timeline (default: 10, max: 15). Items with index < top_hits_count are
* flagged with top_hit: true and tracked in top_hits_timeline; the remainder (up to limit) are returned with
* top_hit: false.
*
* @param string $projectId (required)
* @param string $environmentId (required)
Expand Down Expand Up @@ -963,7 +961,7 @@ public function httpMetricsTimelineUrls(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineUrls200Response {
): mixed {
return $this->httpMetricsTimelineUrlsWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1030,7 +1028,7 @@ private function httpMetricsTimelineUrlsWithHttpInfo(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineUrls200Response {
): mixed {
$request = $this->httpMetricsTimelineUrlsRequest(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1491,8 +1489,9 @@ private function httpMetricsTimelineUrlsRequest(
*
* Returns HTTP traffic analytics grouped by User Agent with User Agents ranked by impact (response time × request
* count). Use limit parameter to control total items returned (default: 200, max: 300) and top_hits_count to
* control how many are tracked in timelines (default: 15, max: 15). Items have a top_hit boolean indicating whether
* they appear in timeline data.
* control how many items are flagged as top hits and tracked in the timeline (default: 10, max: 15). Items with
* index < top_hits_count are flagged with top_hit: true and tracked in top_hits_timeline; the remainder (up to
* limit) are returned with top_hit: false.
*
* @param string $projectId (required)
* @param string $environmentId (required)
Expand Down Expand Up @@ -1536,7 +1535,7 @@ public function httpMetricsTimelineUserAgents(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineUserAgents200Response {
): mixed {
return $this->httpMetricsTimelineUserAgentsWithHttpInfo(
$projectId,
$environmentId,
Expand Down Expand Up @@ -1603,7 +1602,7 @@ private function httpMetricsTimelineUserAgentsWithHttpInfo(
?string $codesMode = null,
?array $requestDurationSlots = null,
?string $requestDurationSlotsMode = null
): HttpMetricsTimelineUserAgents200Response {
): mixed {
$request = $this->httpMetricsTimelineUserAgentsRequest(
$projectId,
$environmentId,
Expand Down
Loading
Loading