/* tslint:disable */
/* eslint-disable */
/**
 * RMI Backend
 * Rug Munch Intelligence — institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
 *
 * The version of the OpenAPI document: 2026.06.21
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface AlertmanagerAlert
 */
export interface AlertmanagerAlert {
    /**
     * 
     * @type {string}
     * @memberof AlertmanagerAlert
     */
    status: string;
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof AlertmanagerAlert
     */
    labels?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof AlertmanagerAlert
     */
    annotations?: { [key: string]: string; };
    /**
     * 
     * @type {string}
     * @memberof AlertmanagerAlert
     */
    startsAt?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AlertmanagerAlert
     */
    endsAt?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AlertmanagerAlert
     */
    generatorURL?: string | null;
}

/**
 * Check if a given object implements the AlertmanagerAlert interface.
 */
export function instanceOfAlertmanagerAlert(value: object): value is AlertmanagerAlert {
    if (!('status' in value) || value['status'] === undefined) return false;
    return true;
}

export function AlertmanagerAlertFromJSON(json: any): AlertmanagerAlert {
    return AlertmanagerAlertFromJSONTyped(json, false);
}

export function AlertmanagerAlertFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertmanagerAlert {
    if (json == null) {
        return json;
    }
    return {
        
        'status': json['status'],
        'labels': json['labels'] == null ? undefined : json['labels'],
        'annotations': json['annotations'] == null ? undefined : json['annotations'],
        'startsAt': json['startsAt'] == null ? undefined : json['startsAt'],
        'endsAt': json['endsAt'] == null ? undefined : json['endsAt'],
        'generatorURL': json['generatorURL'] == null ? undefined : json['generatorURL'],
    };
}

export function AlertmanagerAlertToJSON(json: any): AlertmanagerAlert {
    return AlertmanagerAlertToJSONTyped(json, false);
}

export function AlertmanagerAlertToJSONTyped(value?: AlertmanagerAlert | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'status': value['status'],
        'labels': value['labels'],
        'annotations': value['annotations'],
        'startsAt': value['startsAt'],
        'endsAt': value['endsAt'],
        'generatorURL': value['generatorURL'],
    };
}

