azure-messaging-eventhubs
Loading...
Searching...
No Matches
management_models.hpp
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3#pragma once
4
5#include <azure/core/datetime.hpp>
6
7#include <cstdint>
8#include <string>
9#include <vector>
10
11namespace Azure { namespace Messaging { namespace EventHubs { namespace Models {
15 struct EventHubProperties final
16 {
18 Azure::DateTime CreatedOn;
20 std::string Name;
21
23 std::vector<std::string> PartitionIds;
24 };
25 std::ostream& operator<<(std::ostream&, EventHubProperties const&);
26
30 {
33 std::string Name;
34
36 std::string PartitionId;
37
45
47 Azure::DateTime LastEnqueuedTimeUtc;
48
50 bool IsEmpty{};
51 };
52 std::ostream& operator<<(std::ostream&, EventHubPartitionProperties const&);
53
54}}}} // namespace Azure::Messaging::EventHubs::Models
EventHubPartitionProperties represents properties of an Event Hub partition.
Definition management_models.hpp:30
std::string Name
Definition management_models.hpp:33
std::string PartitionId
Definition management_models.hpp:36
int64_t LastEnqueuedSequenceNumber
Definition management_models.hpp:42
Azure::DateTime LastEnqueuedTimeUtc
Definition management_models.hpp:47
int64_t BeginningSequenceNumber
Definition management_models.hpp:40
int64_t LastEnqueuedOffset
Definition management_models.hpp:44
EventHubProperties represents properties of the Event Hub, like the number of partitions.
Definition management_models.hpp:16
std::vector< std::string > PartitionIds
A list of the partitions in the Event Hub.
Definition management_models.hpp:23
std::string Name
The name of the Event Hub.
Definition management_models.hpp:20
Azure::DateTime CreatedOn
Time when the Event Hub was created.
Definition management_models.hpp:18