All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.messaging.eventgrid.systemevents.MediaLiveEventIngestHeartbeatEventData Maven / Gradle / Ivy

There is a newer version: 4.27.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/**
 * Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a
 * Microsoft.Media.LiveEventIngestHeartbeat event.
 */
@Immutable
public final class MediaLiveEventIngestHeartbeatEventData {
    /*
     * Gets the type of the track (Audio / Video).
     */
    @JsonProperty(value = "trackType", access = JsonProperty.Access.WRITE_ONLY)
    private String trackType;

    /*
     * Gets the track name.
     */
    @JsonProperty(value = "trackName", access = JsonProperty.Access.WRITE_ONLY)
    private String trackName;

    /*
     * Gets the Live Transcription language.
     */
    @JsonProperty(value = "transcriptionLanguage", access = JsonProperty.Access.WRITE_ONLY)
    private String transcriptionLanguage;

    /*
     * Gets the Live Transcription state.
     */
    @JsonProperty(value = "transcriptionState", access = JsonProperty.Access.WRITE_ONLY)
    private String transcriptionState;

    /*
     * Gets the bitrate of the track.
     */
    @JsonProperty(value = "bitrate", access = JsonProperty.Access.WRITE_ONLY)
    private Long bitrate;

    /*
     * Gets the incoming bitrate.
     */
    @JsonProperty(value = "incomingBitrate", access = JsonProperty.Access.WRITE_ONLY)
    private Long incomingBitrate;

    /*
     * Gets the track ingest drift value.
     */
    @JsonProperty(value = "ingestDriftValue", access = JsonProperty.Access.WRITE_ONLY)
    private String ingestDriftValue;

    /*
     * Gets the arrival UTC time of the last fragment.
     */
    @JsonProperty(value = "lastFragmentArrivalTime", access = JsonProperty.Access.WRITE_ONLY)
    private String lastFragmentArrivalTime;

    /*
     * Gets the last timestamp.
     */
    @JsonProperty(value = "lastTimestamp", access = JsonProperty.Access.WRITE_ONLY)
    private String lastTimestamp;

    /*
     * Gets the timescale of the last timestamp.
     */
    @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY)
    private String timescale;

    /*
     * Gets the fragment Overlap count.
     */
    @JsonProperty(value = "overlapCount", access = JsonProperty.Access.WRITE_ONLY)
    private Long overlapCount;

    /*
     * Gets the fragment Discontinuity count.
     */
    @JsonProperty(value = "discontinuityCount", access = JsonProperty.Access.WRITE_ONLY)
    private Long discontinuityCount;

    /*
     * Gets Non increasing count.
     */
    @JsonProperty(value = "nonincreasingCount", access = JsonProperty.Access.WRITE_ONLY)
    private Long nonincreasingCount;

    /*
     * Gets a value indicating whether unexpected bitrate is present or not.
     */
    @JsonProperty(value = "unexpectedBitrate", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean unexpectedBitrate;

    /*
     * Gets the state of the live event.
     */
    @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
    private String state;

    /*
     * Gets a value indicating whether preview is healthy or not.
     */
    @JsonProperty(value = "healthy", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean healthy;

    static final ClientLogger LOGGER = new ClientLogger(MediaLiveEventIngestHeartbeatEventData.class);

    /** Creates an instance of MediaLiveEventIngestHeartbeatEventData class. */
    public MediaLiveEventIngestHeartbeatEventData() {}

    /**
     * Get the trackType property: Gets the type of the track (Audio / Video).
     *
     * @return the trackType value.
     */
    public String getTrackType() {
        return this.trackType;
    }

    /**
     * Get the trackName property: Gets the track name.
     *
     * @return the trackName value.
     */
    public String getTrackName() {
        return this.trackName;
    }

    /**
     * Get the transcriptionLanguage property: Gets the Live Transcription language.
     *
     * @return the transcriptionLanguage value.
     */
    public String getTranscriptionLanguage() {
        return this.transcriptionLanguage;
    }

    /**
     * Get the transcriptionState property: Gets the Live Transcription state.
     *
     * @return the transcriptionState value.
     */
    public String getTranscriptionState() {
        return this.transcriptionState;
    }

    /**
     * Get the bitrate property: Gets the bitrate of the track.
     *
     * @return the bitrate value.
     */
    public Long getBitrate() {
        return this.bitrate;
    }

    /**
     * Get the incomingBitrate property: Gets the incoming bitrate.
     *
     * @return the incomingBitrate value.
     */
    public Long getIncomingBitrate() {
        return this.incomingBitrate;
    }

    /**
     * Get the ingestDriftValue property: Gets the track ingest drift value.
     *
     * @return the ingestDriftValue value.
     */
    public Integer getIngestDriftValue() {
        if ("n/a".equals(this.ingestDriftValue)) {
            return null;
        }
        try {
            return Integer.parseInt(this.ingestDriftValue);
        } catch (NumberFormatException ex) {
            LOGGER.logExceptionAsError(ex);
            return null;
        }
    }

    /**
     * Get the lastFragmentArrivalTime property: Gets the arrival UTC time of the last fragment.
     *
     * @return the lastFragmentArrivalTime value.
     */
    public OffsetDateTime getLastFragmentArrivalTime() {
        return OffsetDateTime.parse(this.lastFragmentArrivalTime);
    }

    /**
     * Get the lastTimestamp property: Gets the last timestamp.
     *
     * @return the lastTimestamp value.
     */
    public String getLastTimestamp() {
        return this.lastTimestamp;
    }

    /**
     * Get the timescale property: Gets the timescale of the last timestamp.
     *
     * @return the timescale value.
     */
    public String getTimescale() {
        return this.timescale;
    }

    /**
     * Get the overlapCount property: Gets the fragment Overlap count.
     *
     * @return the overlapCount value.
     */
    public Long getOverlapCount() {
        return this.overlapCount;
    }

    /**
     * Get the discontinuityCount property: Gets the fragment Discontinuity count.
     *
     * @return the discontinuityCount value.
     */
    public Long getDiscontinuityCount() {
        return this.discontinuityCount;
    }

    /**
     * Get the nonincreasingCount property: Gets Non increasing count.
     *
     * @return the nonincreasingCount value.
     */
    public Long getNonincreasingCount() {
        return this.nonincreasingCount;
    }

    /**
     * Get the unexpectedBitrate property: Gets a value indicating whether unexpected bitrate is present or not.
     *
     * @return the unexpectedBitrate value.
     */
    public Boolean isUnexpectedBitrate() {
        return this.unexpectedBitrate;
    }

    /**
     * Get the state property: Gets the state of the live event.
     *
     * @return the state value.
     */
    public String getState() {
        return this.state;
    }

    /**
     * Get the healthy property: Gets a value indicating whether preview is healthy or not.
     *
     * @return the healthy value.
     */
    public Boolean isHealthy() {
        return this.healthy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy