> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# System Status

> Get real-time status of TensorOne platform services, infrastructure, and operational metrics

Monitor the health and operational status of the TensorOne platform, including API services, GPU infrastructure, and system components. Essential for understanding platform availability and performance.

## Request Parameters

**services** `array`

Specific services to check status for:

* `api` - Core API services
* `clusters` - GPU cluster infrastructure
* `endpoints` - Serverless endpoints
* `training` - ML training services
* `ai-services` - AI generation services
* `storage` - File and data storage
* `database` - Database services
* `monitoring` - Monitoring and logging systems

**regions** `array`

Specific regions to check:

* `us-east-1` - US East (Virginia)
* `us-west-2` - US West (Oregon)
* `eu-west-1` - Europe (Ireland)
* `ap-southeast-1` - Asia Pacific (Singapore)
* `global` - Global services

**includeMetrics** `boolean` (default: false)

Whether to include detailed performance metrics

**includeIncidents** `boolean` (default: true)

Whether to include current incident information

## Response

**overallStatus** `string`

Overall platform status: `operational`, `degraded`, `partial_outage`, `major_outage`, `maintenance`

**lastUpdated** `string`

ISO 8601 timestamp of last status update

**services** `array`

Status of individual services

**Service Status**

**name** `string`

Service name (e.g., "API", "GPU Clusters")

**status** `string`

Service status: `operational`, `degraded`, `partial_outage`, `major_outage`, `maintenance`

**uptime** `number`

Service uptime percentage (0-100)

**responseTime** `number`

Average response time in milliseconds

**lastIncident** `string`

Timestamp of last recorded incident

**description** `string`

Current status description

**regions** `array`

Regional status breakdown

**Regional Status**

**region** `string`

Region identifier

**status** `string`

Regional service status

**latency** `number`

Average latency in milliseconds

**incidents** `array`

Current and recent incidents

**Incident**

**id** `string`

Unique incident identifier

**title** `string`

Incident title/summary

**status** `string`

Incident status: `investigating`, `identified`, `monitoring`, `resolved`

**severity** `string`

Incident severity: `low`, `medium`, `high`, `critical`

**startedAt** `string`

ISO 8601 timestamp when incident started

**updatedAt** `string`

ISO 8601 timestamp of last incident update

**affectedServices** `array`

List of affected services

**description** `string`

Current incident description

**maintenanceWindows** `array`

Scheduled maintenance information

**Maintenance Window**

**id** `string`

Maintenance window identifier

**title** `string`

Maintenance title/description

**startTime** `string`

ISO 8601 timestamp of maintenance start

**endTime** `string`

ISO 8601 timestamp of maintenance end

**affectedServices** `array`

Services affected by maintenance

**impact** `string`

Expected impact: `none`, `minimal`, `moderate`, `significant`

**status** `string`

Maintenance status: `scheduled`, `in_progress`, `completed`, `cancelled`

**metrics** `object`

System performance metrics (if requested)

**System Metrics**

**apiRequests** `object`

API request statistics

**API Metrics**

**total** `integer`

Total requests in last 24 hours

**successful** `integer`

Successful requests (2xx responses)

**failed** `integer`

Failed requests (4xx/5xx responses)

**averageResponseTime** `number`

Average response time in milliseconds

**resourceUsage** `object`

Infrastructure resource usage

**Resource Usage**

**cpuUtilization** `number`

Average CPU utilization percentage

**memoryUtilization** `number`

Average memory utilization percentage

**storageUsage** `number`

Storage usage percentage

**networkThroughput** `object`

Network traffic statistics

**gpuClusters** `object`

GPU cluster statistics

**GPU Metrics**

**totalClusters** `integer`

Total number of GPU clusters

**activeClusters** `integer`

Currently active clusters

**averageUtilization** `number`

Average GPU utilization percentage

**queueLength** `integer`

Number of clusters in queue

## Example

```bash cURL
curl -X GET "https://api.tensorone.ai/v2/monitoring/system-status" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -G \
  -d "includeMetrics=true" \
  -d "includeIncidents=true" \
  -d "services[]=api&services[]=clusters&services[]=ai-services"
```

```python Python
import requests
from datetime import datetime

def get_system_status(include_metrics=False, services=None, regions=None):
    params = {
        'includeMetrics': include_metrics,
        'includeIncidents': True
    }
    
    if services:
        params['services'] = services
    if regions:
        params['regions'] = regions
    
    response = requests.get(
        "https://api.tensorone.ai/v2/monitoring/system-status",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        params=params
    )
    
    return response.json()

# Get overall system status
status = get_system_status(include_metrics=True, services=['api', 'clusters', 'ai-services'])

print(f"Overall Status: {status['overallStatus']}")
print(f"Last Updated: {status['lastUpdated']}")

# Check individual services
print("\nService Status:")
for service in status['services']:
    print(f"  {service['name']}: {service['status']} ({service['uptime']:.1f}% uptime)")
    if service.get('responseTime'):
        print(f"    Response Time: {service['responseTime']}ms")

# Check for incidents
if status['incidents']:
    print(f"\nActive Incidents ({len(status['incidents'])}):")
    for incident in status['incidents']:
        print(f"  {incident['title']} - {incident['status']} ({incident['severity']})")
        print(f"    Started: {incident['startedAt']}")
        print(f"    Affected: {', '.join(incident['affectedServices'])}")
else:
    print("\nNo active incidents")

# Check maintenance windows
if status['maintenanceWindows']:
    print(f"\nScheduled Maintenance ({len(status['maintenanceWindows'])}):")
    for maintenance in status['maintenanceWindows']:
        print(f"  {maintenance['title']}")
        print(f"    {maintenance['startTime']} - {maintenance['endTime']}")
        print(f"    Impact: {maintenance['impact']}")

# Display metrics if available
if 'metrics' in status:
    metrics = status['metrics']
    print(f"\nSystem Metrics:")
    
    if 'apiRequests' in metrics:
        api_metrics = metrics['apiRequests']
        success_rate = (api_metrics['successful'] / api_metrics['total']) * 100
        print(f"  API Success Rate: {success_rate:.1f}%")
        print(f"  Average Response Time: {api_metrics['averageResponseTime']}ms")
    
    if 'gpuClusters' in metrics:
        gpu_metrics = metrics['gpuClusters']
        print(f"  GPU Clusters: {gpu_metrics['activeClusters']}/{gpu_metrics['totalClusters']} active")
        print(f"  Average GPU Utilization: {gpu_metrics['averageUtilization']}%")
```

```javascript JavaScript
const getSystemStatus = async (options = {}) => {
  const params = new URLSearchParams({
    includeMetrics: options.includeMetrics || false,
    includeIncidents: options.includeIncidents !== false
  });

  if (options.services) {
    options.services.forEach(service => params.append('services[]', service));
  }

  if (options.regions) {
    options.regions.forEach(region => params.append('regions[]', region));
  }

  const response = await fetch(`https://api.tensorone.ai/v2/monitoring/system-status?${params}`, {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  });

  return await response.json();
};

// Monitor system status
getSystemStatus({
  includeMetrics: true,
  services: ['api', 'clusters', 'ai-services'],
  regions: ['us-east-1', 'us-west-2']
}).then(status => {
  console.log('Overall Status:', status.overallStatus);
  
  // Check service health
  status.services.forEach(service => {
    console.log(`${service.name}: ${service.status} (${service.uptime}% uptime)`);
  });
  
  // Check for incidents
  if (status.incidents.length > 0) {
    console.log('\nActive Incidents:');
    status.incidents.forEach(incident => {
      console.log(`- ${incident.title} (${incident.severity})`);
    });
  }
});
```

```json Response
{
  "overallStatus": "operational",
  "lastUpdated": "2024-01-16T18:30:00Z",
  "services": [
    {
      "name": "API",
      "status": "operational",
      "uptime": 99.97,
      "responseTime": 85,
      "lastIncident": "2024-01-10T14:22:00Z",
      "description": "All API endpoints are functioning normally",
      "regions": [
        {
          "region": "us-east-1",
          "status": "operational",
          "latency": 78
        },
        {
          "region": "us-west-2", 
          "status": "operational",
          "latency": 92
        }
      ]
    },
    {
      "name": "GPU Clusters",
      "status": "operational",
      "uptime": 99.95,
      "responseTime": 1200,
      "lastIncident": "2024-01-08T09:15:00Z",
      "description": "GPU infrastructure operating normally",
      "regions": [
        {
          "region": "us-east-1",
          "status": "operational",
          "latency": 1150
        },
        {
          "region": "us-west-2",
          "status": "operational", 
          "latency": 1250
        }
      ]
    },
    {
      "name": "AI Services",
      "status": "degraded",
      "uptime": 98.5,
      "responseTime": 3200,
      "lastIncident": "2024-01-16T17:45:00Z",
      "description": "Text-to-video generation experiencing higher latency",
      "regions": [
        {
          "region": "us-east-1",
          "status": "degraded",
          "latency": 3800
        },
        {
          "region": "us-west-2",
          "status": "operational",
          "latency": 2600
        }
      ]
    }
  ],
  "incidents": [
    {
      "id": "INC-2024-001",
      "title": "Increased latency in text-to-video generation",
      "status": "monitoring",
      "severity": "medium",
      "startedAt": "2024-01-16T17:45:00Z",
      "updatedAt": "2024-01-16T18:15:00Z",
      "affectedServices": ["AI Services"],
      "description": "We are monitoring increased response times for text-to-video requests. The issue appears to be isolated to the US East region."
    }
  ],
  "maintenanceWindows": [
    {
      "id": "MAINT-2024-002",
      "title": "Database optimization and indexing",
      "startTime": "2024-01-18T06:00:00Z",
      "endTime": "2024-01-18T08:00:00Z",
      "affectedServices": ["API", "Training Services"],
      "impact": "minimal",
      "status": "scheduled"
    }
  ],
  "metrics": {
    "apiRequests": {
      "total": 2486532,
      "successful": 2461204,
      "failed": 25328,
      "averageResponseTime": 127
    },
    "resourceUsage": {
      "cpuUtilization": 67.2,
      "memoryUtilization": 78.5,
      "storageUsage": 45.8,
      "networkThroughput": {
        "inbound": "2.3 Gbps",
        "outbound": "4.7 Gbps"
      }
    },
    "gpuClusters": {
      "totalClusters": 1247,
      "activeClusters": 892,
      "averageUtilization": 82.4,
      "queueLength": 23
    }
  }
}
```

## Status Monitoring Dashboard

Create a real-time status monitoring dashboard:

```python Python
import time
import matplotlib.pyplot as plt
from datetime import datetime, timedelta

class StatusMonitor:
    def __init__(self, api_key):
        self.api_key = api_key
        self.status_history = []
    
    def check_status(self):
        """Get current system status"""
        response = requests.get(
            "https://api.tensorone.ai/v2/monitoring/system-status",
            headers={"Authorization": f"Bearer {self.api_key}"},
            params={"includeMetrics": True}
        )
        
        status = response.json()
        status['timestamp'] = datetime.now()
        self.status_history.append(status)
        
        return status
    
    def get_service_health(self, service_name):
        """Get health status for specific service"""
        latest_status = self.status_history[-1] if self.status_history else self.check_status()
        
        for service in latest_status['services']:
            if service['name'].lower() == service_name.lower():
                return service
        
        return None
    
    def monitor_continuously(self, interval=60, duration=3600):
        """Monitor status continuously"""
        end_time = datetime.now() + timedelta(seconds=duration)
        
        print(f"Starting continuous monitoring for {duration/60:.0f} minutes...")
        
        while datetime.now() < end_time:
            try:
                status = self.check_status()
                self._print_status_summary(status)
                
                # Alert on status changes
                if len(self.status_history) > 1:
                    previous = self.status_history[-2]
                    if status['overallStatus'] != previous['overallStatus']:
                        print(f"🚨 ALERT: Overall status changed from {previous['overallStatus']} to {status['overallStatus']}")
                
                time.sleep(interval)
                
            except KeyboardInterrupt:
                print("Monitoring stopped by user")
                break
            except Exception as e:
                print(f"Error during monitoring: {e}")
                time.sleep(interval)
    
    def _print_status_summary(self, status):
        timestamp = status['timestamp'].strftime("%H:%M:%S")
        overall = status['overallStatus'].upper()
        
        print(f"\n[{timestamp}] Overall Status: {overall}")
        
        for service in status['services']:
            status_emoji = {
                'operational': '✅',
                'degraded': '⚠️',
                'partial_outage': '🔶',
                'major_outage': '🔴',
                'maintenance': '🔧'
            }.get(service['status'], '❓')
            
            print(f"  {status_emoji} {service['name']}: {service['status']} ({service['uptime']:.1f}%)")
        
        if status.get('incidents'):
            print(f"  📋 Active Incidents: {len(status['incidents'])}")

# Usage
monitor = StatusMonitor("YOUR_API_KEY")

# Single status check
current_status = monitor.check_status()
print(f"Overall Status: {current_status['overallStatus']}")

# Check specific service
api_health = monitor.get_service_health("API")
if api_health:
    print(f"API Health: {api_health['status']} - {api_health['uptime']}% uptime")

# Continuous monitoring (uncomment to run)
# monitor.monitor_continuously(interval=30, duration=1800)  # Monitor for 30 minutes
```

## Regional Status Check

Check status across different regions:

```python Python
def check_regional_status():
    regions = ['us-east-1', 'us-west-2', 'eu-west-1', 'ap-southeast-1']
    regional_status = {}
    
    for region in regions:
        response = requests.get(
            "https://api.tensorone.ai/v2/monitoring/system-status",
            headers={"Authorization": "Bearer YOUR_API_KEY"},
            params={
                "regions": [region],
                "includeMetrics": True
            }
        )
        
        regional_status[region] = response.json()
    
    return regional_status

def analyze_regional_performance(regional_status):
    print("Regional Performance Analysis:")
    print("=" * 50)
    
    for region, status in regional_status.items():
        print(f"\n{region.upper()}:")
        print(f"  Overall Status: {status['overallStatus']}")
        
        # Calculate average response time across services
        response_times = [s['responseTime'] for s in status['services'] if s.get('responseTime')]
        avg_response_time = sum(response_times) / len(response_times) if response_times else 0
        
        print(f"  Average Response Time: {avg_response_time:.0f}ms")
        
        # Check for region-specific incidents
        regional_incidents = [i for i in status.get('incidents', []) if region in i.get('affectedRegions', [])]
        if regional_incidents:
            print(f"  Regional Incidents: {len(regional_incidents)}")
        
        # Resource utilization
        if 'metrics' in status and 'resourceUsage' in status['metrics']:
            usage = status['metrics']['resourceUsage']
            print(f"  CPU Utilization: {usage['cpuUtilization']}%")
            print(f"  Memory Utilization: {usage['memoryUtilization']}%")

# Analyze regional performance
regional_data = check_regional_status()
analyze_regional_performance(regional_data)
```

## Service Dependency Mapping

Check dependencies between services:

```python Python
def get_service_dependencies():
    response = requests.get(
        "https://api.tensorone.ai/v2/monitoring/service-dependencies",
        headers={"Authorization": "Bearer YOUR_API_KEY"}
    )
    return response.json()

def analyze_impact(failing_service, dependencies):
    """Analyze potential impact of a failing service"""
    impacted_services = []
    
    def find_dependent_services(service, deps, visited=None):
        if visited is None:
            visited = set()
        
        if service in visited:
            return []
        
        visited.add(service)
        dependents = []
        
        for dep_service, dep_info in deps.items():
            if service in dep_info.get('dependencies', []):
                dependents.append(dep_service)
                dependents.extend(find_dependent_services(dep_service, deps, visited))
        
        return dependents
    
    return find_dependent_services(failing_service, dependencies)

# Get service dependencies
dependencies = get_service_dependencies()

# Analyze impact of API service failure
if 'API' in dependencies:
    impacted = analyze_impact('API', dependencies)
    print(f"If API service fails, these services may be impacted:")
    for service in impacted:
        print(f"  - {service}")
```

## Automated Status Notifications

Set up automated notifications for status changes:

```python Python
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

class StatusNotifier:
    def __init__(self, api_key, email_config=None, webhook_url=None):
        self.api_key = api_key
        self.email_config = email_config
        self.webhook_url = webhook_url
        self.last_status = None
    
    def check_and_notify(self):
        """Check status and send notifications if changed"""
        current_status = requests.get(
            "https://api.tensorone.ai/v2/monitoring/system-status",
            headers={"Authorization": f"Bearer {self.api_key}"}
        ).json()
        
        if self.last_status and self._status_changed(current_status):
            self._send_notifications(current_status)
        
        self.last_status = current_status
        return current_status
    
    def _status_changed(self, current_status):
        """Check if status has changed significantly"""
        if current_status['overallStatus'] != self.last_status['overallStatus']:
            return True
        
        # Check for new incidents
        current_incidents = {i['id'] for i in current_status.get('incidents', [])}
        last_incidents = {i['id'] for i in self.last_status.get('incidents', [])}
        
        return current_incidents != last_incidents
    
    def _send_notifications(self, status):
        """Send notifications via configured channels"""
        message = self._format_status_message(status)
        
        if self.email_config:
            self._send_email(message)
        
        if self.webhook_url:
            self._send_webhook(message, status)
    
    def _format_status_message(self, status):
        """Format status for notifications"""
        message = f"TensorOne Status Update\n"
        message += f"Overall Status: {status['overallStatus']}\n"
        message += f"Time: {status['lastUpdated']}\n\n"
        
        if status.get('incidents'):
            message += "Active Incidents:\n"
            for incident in status['incidents']:
                message += f"- {incident['title']} ({incident['severity']})\n"
        
        return message
    
    def _send_email(self, message):
        """Send email notification"""
        try:
            msg = MIMEMultipart()
            msg['From'] = self.email_config['sender']
            msg['To'] = self.email_config['recipient']
            msg['Subject'] = "TensorOne Status Alert"
            
            msg.attach(MIMEText(message, 'plain'))
            
            server = smtplib.SMTP(self.email_config['smtp_server'], self.email_config['port'])
            server.starttls()
            server.login(self.email_config['sender'], self.email_config['password'])
            
            text = msg.as_string()
            server.sendmail(self.email_config['sender'], self.email_config['recipient'], text)
            server.quit()
            
            print("Email notification sent")
        except Exception as e:
            print(f"Failed to send email: {e}")
    
    def _send_webhook(self, message, status):
        """Send webhook notification"""
        try:
            webhook_data = {
                "text": message,
                "status": status['overallStatus'],
                "timestamp": status['lastUpdated'],
                "incidents": len(status.get('incidents', []))
            }
            
            response = requests.post(self.webhook_url, json=webhook_data)
            if response.status_code == 200:
                print("Webhook notification sent")
            else:
                print(f"Webhook failed: {response.status_code}")
        except Exception as e:
            print(f"Failed to send webhook: {e}")

# Setup notifications
email_config = {
    'sender': 'alerts@yourcompany.com',
    'recipient': 'admin@yourcompany.com',
    'smtp_server': 'smtp.gmail.com',
    'port': 587,
    'password': 'your_app_password'
}

notifier = StatusNotifier(
    api_key="YOUR_API_KEY",
    email_config=email_config,
    webhook_url="https://hooks.slack.com/your/webhook/url"
)

# Check status and notify if changed
status = notifier.check_and_notify()
```

## Best Practices

### Monitoring Strategy

* **Regular Checks**: Monitor status every 1-5 minutes for critical applications
* **Regional Awareness**: Check multiple regions if you operate globally
* **Service Dependencies**: Understand which services depend on others
* **Alerting Thresholds**: Set appropriate thresholds for different severity levels

### Integration Patterns

* **Health Checks**: Integrate status checks into your application health endpoints
* **Circuit Breakers**: Use status information to implement circuit breaker patterns
* **Fallback Strategies**: Plan fallback strategies for different outage scenarios
* **User Communication**: Keep users informed about service status

### Performance Optimization

* **Cache Status**: Cache status responses for appropriate durations
* **Selective Monitoring**: Only request metrics and services you need
* **Batch Requests**: Group multiple monitoring requests where possible
* **Rate Limiting**: Respect API rate limits for monitoring endpoints

> [!NOTE]
>
> System status is updated every 30 seconds. Historical status data is available for up to 90 days through the monitoring dashboard.

> [!TIP]
>
> Set up monitoring alerts for status changes rather than polling continuously. Use webhooks or email notifications to get real-time updates on system status changes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.