Pobierz listę zdarzeń partycjiGet Partitions Event List
Pobiera wszystkie zdarzenia związane z partycjami.Gets all Partitions-related events.
Odpowiedź jest lista PartitionEvent obiektów.The response is list of PartitionEvent objects.
ŻądanieRequest
MetodaMethod | Identyfikator URI żądaniaRequest URI |
---|---|
GETGET | /EventsStore/Partitions/Events?api-version=6.2-preview&timeout={timeout}&StartTimeUtc={StartTimeUtc}&EndTimeUtc={EndTimeUtc}&EventsTypesFilter={EventsTypesFilter}&ExcludeAnalysisEvents={ExcludeAnalysisEvents}&SkipCorrelationLookup={SkipCorrelationLookup} |
ParametryParameters
NazwaName | TypType | WymaganyRequired | LokalizacjaLocation |
---|---|---|---|
api-version |
ciągstring | TakYes | ZapytanieQuery |
timeout |
całkowita (int64)integer (int64) | NieNo | ZapytanieQuery |
StartTimeUtc |
ciągstring | TakYes | ZapytanieQuery |
EndTimeUtc |
ciągstring | TakYes | ZapytanieQuery |
EventsTypesFilter |
ciągstring | NieNo | ZapytanieQuery |
ExcludeAnalysisEvents |
wartość logicznaboolean | NieNo | ZapytanieQuery |
SkipCorrelationLookup |
wartość logicznaboolean | NieNo | ZapytanieQuery |
api-version
Typ: ciąg znakówType: string
Wymagane: TakRequired: Yes
Domyślnie:6.2-preview
Default: 6.2-preview
Wersja interfejsu API.The version of the API. Ten parametr jest wymagany, a jego wartość musi wynosić "6.2-preview".This parameter is required and its value must be '6.2-preview'.
timeout
Typ: całkowita (int64)Type: integer (int64)
Wymagane: NieRequired: No
Domyślnie:60
Default: 60
WłącznieMaximum:4294967295
InclusiveMaximum: 4294967295
InclusiveMinimum:1
InclusiveMinimum: 1
Limit czasu serwera do wykonania operacji w sekundach.The server timeout for performing the operation in seconds. Ten limit czasu określa czas trwania, który klient chce czekać na żądaną operację, aby zakończyć.This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. Wartość domyślna dla tego parametru wynosi 60 sekund.The default value for this parameter is 60 seconds.
StartTimeUtc
Typ: ciąg znakówType: string
Wymagane: TakRequired: Yes
Godzina rozpoczęcia kwerendy odnośnej w iso UTC yyyy-MM-ddTHH:mm:ssZ.The start time of a lookup query in ISO UTC yyyy-MM-ddTHH:mm:ssZ.
EndTimeUtc
Typ: ciąg znakówType: string
Wymagane: TakRequired: Yes
Godzina zakończenia kwerendy odnośnika w iso UTC yyyy-MM-ddTHH:mm:ssZ.The end time of a lookup query in ISO UTC yyyy-MM-ddTHH:mm:ssZ.
EventsTypesFilter
Typ: ciąg znakówType: string
Wymagane: NieRequired: No
Jest to ciąg oddzielony przecinkami określający typy FabricEvents, które powinny być uwzględnione tylko w odpowiedzi.This is a comma separated string specifying the types of FabricEvents that should only be included in the response.
ExcludeAnalysisEvents
Typ: booleanType: boolean
Wymagane: NieRequired: No
Ten param wyłącza pobieranie AnalysisEvents jeśli true jest przekazywana.This param disables the retrieval of AnalysisEvents if true is passed.
SkipCorrelationLookup
Typ: booleanType: boolean
Wymagane: NieRequired: No
Ten param wyłącza wyszukiwanie informacji CorrelatedEvents, jeśli prawda jest przekazywana.This param disables the search of CorrelatedEvents information if true is passed. w przeciwnym razie CorrelationEvents uzyskać przetwarzane i HasCorrelatedEvents pola w każdym FabricEvent zostanie wypełniona.otherwise the CorrelationEvents get processed and HasCorrelatedEvents field in every FabricEvent gets populated.
OdpowiedziResponses
Kod stanu HTTPHTTP Status Code | OpisDescription | Response SchemaResponse Schema |
---|---|---|
200 (OK)200 (OK) | Lista obiektów zdarzeń o typie podstawowym PartitionEvent.List of events objects with base type PartitionEvent. |
tablica PartitionEventarray of PartitionEvent |
Wszystkie inne kody stanuAll other status codes | Szczegółowa odpowiedź na błąd.The detailed error response. |
Producent tkaninFabricError |
PrzykładyExamples
Pobierz zdarzenia związane z partycjamiGet Partitions-related events
W tym przykładzie pokazano, jak uzyskać wszystkie zdarzenia związane z partycjami w określonym oknie czasu.This example shows how to get all partitions-related events during a certain time window.
ŻądanieRequest
GET http://localhost:19080/EventsStore/Partitions/Events?api-version=6.2-preview&StartTimeUtc=2018-04-03T18:00:00Z&EndTimeUtc=2018-04-04T18:00:00Z
200 Odpowiedź200 Response
TreśćBody
[
{
"Kind": "PartitionReconfigurationCompleted",
"NodeName": "node1",
"NodeInstanceId": "ba001a8bb353543e646be031afb10f1e",
"ServiceType": "Svc1Type",
"CcEpochDataLossVersion": "131672604833413100",
"CcEpochConfigVersion": "8589934595",
"ReconfigType": "Other",
"Result": "Completed",
"Phase0DurationMs": "0",
"Phase1DurationMs": "0",
"Phase2DurationMs": "203.1935",
"Phase3DurationMs": "0.0262",
"Phase4DurationMs": "628.8527",
"TotalDurationMs": "832.0724",
"PartitionId": "f2a6a893-39be-4c7d-b07f-72bc2d36de89",
"EventInstanceId": "e00fa5b7-f747-40dd-9e09-f5a031e96de4",
"TimeStamp": "2018-04-03T20:21:47.3778996Z",
"HasCorrelatedEvents": true
},
{
"Kind": "PartitionReconfigurationCompleted",
"NodeName": "node2",
"NodeInstanceId": "ba0459d257b028296deba8bd5add33cb",
"ServiceType": "Svc1Type",
"CcEpochDataLossVersion": "131672604833413100",
"CcEpochConfigVersion": "8589934596",
"ReconfigType": "Other",
"Result": "Completed",
"Phase0DurationMs": "0",
"Phase1DurationMs": "0",
"Phase2DurationMs": "205.667",
"Phase3DurationMs": "407.7781",
"Phase4DurationMs": "630.0935",
"TotalDurationMs": "1243.5386",
"PartitionId": "e12acfb3-2a43-4a1a-a252-aa5388ef1aec",
"EventInstanceId": "9aeb234a-16ef-4e8a-974e-26c60d6f2b86",
"TimeStamp": "2018-04-03T20:21:49.5155104Z",
"HasCorrelatedEvents": false
}
]