pub struct WebServer {
pub client: Client,
}Expand description
Web Server Service
The web-server service provides a GraphQL gateway to Taskcluster APIs, as well as profiler endpoints that generate Firefox Profiler–compatible profiles from task group metadata and task logs.
Fields§
§client: ClientThe underlying client used to make API calls for this service.
Implementations§
Source§impl WebServer
impl WebServer
Sourcepub fn new<CB: Into<ClientBuilder>>(client_builder: CB) -> Result<Self, Error>
pub fn new<CB: Into<ClientBuilder>>(client_builder: CB) -> Result<Self, Error>
Create a new WebServer instance, based on the given client builder
Sourcepub async fn ping(&self) -> Result<(), Error>
pub async fn ping(&self) -> Result<(), Error>
Ping Server
Respond without doing anything. This endpoint is used to check that the service is up.
Sourcepub fn ping_signed_url(&self, ttl: Duration) -> Result<String, Error>
pub fn ping_signed_url(&self, ttl: Duration) -> Result<String, Error>
Generate a signed URL for the ping endpoint
Sourcepub async fn lbheartbeat(&self) -> Result<(), Error>
pub async fn lbheartbeat(&self) -> Result<(), Error>
Load Balancer Heartbeat
Respond without doing anything. This endpoint is used to check that the service is up.
Sourcepub fn lbheartbeat_url(&self) -> Result<String, Error>
pub fn lbheartbeat_url(&self) -> Result<String, Error>
Generate an unsigned URL for the lbheartbeat endpoint
Sourcepub fn lbheartbeat_signed_url(&self, ttl: Duration) -> Result<String, Error>
pub fn lbheartbeat_signed_url(&self, ttl: Duration) -> Result<String, Error>
Generate a signed URL for the lbheartbeat endpoint
Sourcepub async fn version(&self) -> Result<(), Error>
pub async fn version(&self) -> Result<(), Error>
Taskcluster Version
Respond with the JSON version object. https://github.com/mozilla-services/Dockerflow/blob/main/docs/version_object.md
Sourcepub fn version_url(&self) -> Result<String, Error>
pub fn version_url(&self) -> Result<String, Error>
Generate an unsigned URL for the version endpoint
Sourcepub fn version_signed_url(&self, ttl: Duration) -> Result<String, Error>
pub fn version_signed_url(&self, ttl: Duration) -> Result<String, Error>
Generate a signed URL for the version endpoint
Sourcepub async fn taskGroupProfile(&self, taskGroupId: &str) -> Result<(), Error>
pub async fn taskGroupProfile(&self, taskGroupId: &str) -> Result<(), Error>
Task Group Profile
Generate a Firefox Profiler–compatible profile from a task group. The profile contains scheduling and execution timing for all tasks.
Sourcepub fn taskGroupProfile_url(&self, taskGroupId: &str) -> Result<String, Error>
pub fn taskGroupProfile_url(&self, taskGroupId: &str) -> Result<String, Error>
Generate an unsigned URL for the taskGroupProfile endpoint
Sourcepub fn taskGroupProfile_signed_url(
&self,
taskGroupId: &str,
ttl: Duration,
) -> Result<String, Error>
pub fn taskGroupProfile_signed_url( &self, taskGroupId: &str, ttl: Duration, ) -> Result<String, Error>
Generate a signed URL for the taskGroupProfile endpoint
Sourcepub async fn taskProfile(&self, taskId: &str) -> Result<(), Error>
pub async fn taskProfile(&self, taskId: &str) -> Result<(), Error>
Task Log Profile
Generate a Firefox Profiler–compatible profile from a task’s log output.
Parses public/logs/live.log (or live_backing.log) for timing data.
Sourcepub fn taskProfile_url(&self, taskId: &str) -> Result<String, Error>
pub fn taskProfile_url(&self, taskId: &str) -> Result<String, Error>
Generate an unsigned URL for the taskProfile endpoint
Sourcepub fn taskProfile_signed_url(
&self,
taskId: &str,
ttl: Duration,
) -> Result<String, Error>
pub fn taskProfile_signed_url( &self, taskId: &str, ttl: Duration, ) -> Result<String, Error>
Generate a signed URL for the taskProfile endpoint
Sourcepub async fn heartbeat(&self) -> Result<(), Error>
pub async fn heartbeat(&self) -> Result<(), Error>
Heartbeat
Respond with a service heartbeat.
This endpoint is used to check on backing services this service depends on.
Sourcepub fn heartbeat_url(&self) -> Result<String, Error>
pub fn heartbeat_url(&self) -> Result<String, Error>
Generate an unsigned URL for the heartbeat endpoint