AvailabilityTelemetry クラス

  • java.lang.Object
    • com.microsoft.applicationinsights.telemetry.BaseTelemetry
      • com.microsoft.applicationinsights.telemetry.BaseSampleSourceTelemetry
        • com.microsoft.bot.applicationinsights.AvailabilityTelemetry

public final class AvailabilityTelemetry
extends com.microsoft.applicationinsights.telemetry.BaseSampleSourceTelemetry<com.microsoft.applicationinsights.internal.schemav2.AvailabilityData>

https://github.com/microsoft/ApplicationInsights-Java/issues/1099 からこのクラスを取得しました。これは、ApplicationInsights-Java ライブラリにまだ移行されていないためです。

フィールドの概要

修飾子と型 フィールドと説明
static final java.lang.String BASE_TYPE
static final java.lang.String ENVELOPE_NAME

コンストラクターの概要

コンストラクター 説明
AvailabilityTelemetry()

AvailabilityTelemetry クラスの新しいインスタンスを初期化します。

AvailabilityTelemetry(String name, Duration duration, String runLocation, String message, boolean success, ConcurrentMap<String,Double> measurements, ConcurrentMap<String,String> properties)

指定した名前、タイム スタンプ、期間、HTTP 応答コード、成功プロパティ値を使用して、AvailabilityTelemetry クラスの新しいインスタンスを初期化します。

メソッドの概要

修飾子と型 メソッドと説明
protected void additionalSanitize()
java.lang.String getBaseTypeName()
protected com.microsoft.applicationinsights.internal.schemav2.AvailabilityData getData()
com.microsoft.applicationinsights.telemetry.Duration getDuration()

アプリケーションが要求を処理するのにかかった時間を取得します。

java.lang.String getEnvelopName()
java.lang.String getId()

要求の一意識別子を取得します。

java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> getMetrics()

アプリケーション定義の要求メトリックのマップを取得します。

java.lang.String getName()

要求されたページの人間が判読できる名前を取得または取得します。

java.lang.String getRunLocation()

実行場所の人間が判読できる名前を取得または取得します。

java.lang.Double getSamplingPercentage()
int getVer()

データ オブジェクトから ver 値を取得します。

boolean isSuccess()

アプリケーションが要求を正常に処理したかどうかを示す値を取得します。

void setDuration(Duration duration)

アプリケーションが要求を処理するのにかかった時間を設定します。

void setId(String id)

要求の一意識別子を設定します。

void setName(String name)

要求されたページの人間が判読できる名前を設定します。

void setRunLocation(String runLocation)

実行場所の人間が判読できる名前を設定します。

void setSamplingPercentage(Double samplingPercentage)
void setSuccess(boolean success)

アプリケーションが要求を正常に処理したかどうかを示す値を設定します。

void setTimestamp(Date timestamp)

StartTime を設定します。

メソッドの継承元: com.microsoft.applicationinsights.telemetry.BaseSampleSourceTelemetry

com.microsoft.applicationinsights.telemetry.BaseSampleSourceTelemetry.reset com.microsoft.applicationinsights.telemetry.BaseSampleSourceTelemetry.setSampleRate

メソッドの継承元: com.microsoft.applicationinsights.telemetry.BaseTelemetry

com.microsoft.applicationinsights.telemetry.BaseTelemetry.additionalSanitize com.microsoft.applicationinsights.telemetry.BaseTelemetry.getBaseTypeName com.microsoft.applicationinsights.telemetry.BaseTelemetry.getContext com.microsoft.applicationinsights.telemetry.BaseTelemetry.getData com.microsoft.applicationinsights.telemetry.BaseTelemetry.getEnvelopName com.microsoft.applicationinsights.telemetry.BaseTelemetry.getProperties com.microsoft.applicationinsights.telemetry.BaseTelemetry.getSequence com.microsoft.applicationinsights.telemetry.BaseTelemetry.getTelemetryName com.microsoft.applicationinsights.telemetry.BaseTelemetry.getTimestamp com.microsoft.applicationinsights.telemetry.BaseTelemetry.getVer com.microsoft.applicationinsights.telemetry.BaseTelemetry.initialize com.microsoft.applicationinsights.telemetry.BaseTelemetry.normalizeInstrumentationKey com.microsoft.applicationinsights.telemetry.BaseTelemetry.sanitize com.microsoft.applicationinsights.telemetry.BaseTelemetry.serialize com.microsoft.applicationinsights.telemetry.BaseTelemetry.setSequence com.microsoft.applicationinsights.telemetry.BaseTelemetry.setTimestamp com.microsoft.applicationinsights.telemetry.BaseTelemetry.toString

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

フィールドの詳細

BASE_TYPE

public static final String BASE_TYPE

ENVELOPE_NAME

public static final String ENVELOPE_NAME

コンストラクターの詳細

AvailabilityTelemetry

public AvailabilityTelemetry()

AvailabilityTelemetry クラスの新しいインスタンスを初期化します。

AvailabilityTelemetry

public AvailabilityTelemetry(String name, Duration duration, String runLocation, String message, boolean success, ConcurrentMap measurements, ConcurrentMap properties)

指定された名前、タイム スタンプ、期間、HTTP 応答コード、成功プロパティ値を使用して、AvailabilityTelemetry クラスの新しいインスタンスを初期化します。

パラメーター:

name - 要求のわかりやすい名前。
duration - 要求の時刻。
runLocation - 要求処理の期間 (ミリ秒単位)。
message - HTTP 応答コード。
success - 要求が成功した場合は 'true'、それ以外の場合は 'false' です。
measurements - 測定値。
properties - 対応するプロパティ。

メソッドの詳細

additionalSanitize


protected void additionalSanitize()

上書き:

AvailabilityTelemetry.additionalSanitize()

getBaseTypeName

public String getBaseTypeName()

上書き:

AvailabilityTelemetry.getBaseTypeName()

getData

protected AvailabilityData getData()

上書き:

AvailabilityTelemetry.getData()

getDuration

public Duration getDuration()

アプリケーションが要求を処理するのにかかった時間を取得します。

戻り値:

ミリ秒単位の時間。

getEnvelopName

public String getEnvelopName()

上書き:

AvailabilityTelemetry.getEnvelopName()

getId

public String getId()

要求の一意識別子を取得します。

戻り値:

一意識別子。

getMetrics

public ConcurrentMap getMetrics()

アプリケーション定義の要求メトリックのマップを取得します。

戻り値:

メトリックのマップ

getName

public String getName()

要求されたページの人間が判読できる名前を取得または取得します。

戻り値:

人間が判読できる名前。

getRunLocation

public String getRunLocation()

実行場所の人間が判読できる名前を取得または取得します。

戻り値:

人間が判読できる名前。

getSamplingPercentage

public Double getSamplingPercentage()

getVer

public int getVer()

データ オブジェクトから ver 値を取得します。

上書き:

AvailabilityTelemetry.getVer()

戻り値:

ver 値。

isSuccess

public boolean isSuccess()

アプリケーションが要求を正常に処理したかどうかを示す値を取得します。

戻り値:

成功の兆候。

setDuration

public void setDuration(Duration duration)

アプリケーションが要求を処理するのにかかった時間を設定します。

パラメーター:

duration - com.microsoft.applicationinsights.telemetry.Durationでキャプチャされた時間。

setId

public void setId(String id)

要求の一意識別子を設定します。

パラメーター:

id - 一意識別子。

setName

public void setName(String name)

要求されたページの人間が判読できる名前を設定します。

パラメーター:

name - 人間が判読できる名前。

setRunLocation

public void setRunLocation(String runLocation)

実行場所の人間が判読できる名前を設定します。

パラメーター:

runLocation - 人間が判読できる名前

setSamplingPercentage

public void setSamplingPercentage(Double samplingPercentage)

パラメーター:

samplingPercentage

setSuccess

public void setSuccess(boolean success)

アプリケーションが要求を正常に処理したかどうかを示す値を設定します。

パラメーター:

success - 成功の兆候。

setTimestamp

public void setTimestamp(Date timestamp)

StartTime を設定します。 既定の動作を使用し、'data' 開始時刻にプロパティを設定します。

上書き:

AvailabilityTelemetry.setTimestamp(Date timestamp)

パラメーター:

timestamp - 日付としてのタイムスタンプ。

適用対象