У меня Java на основе Azure Функция. Я хотел бы сохранить сообщение служебной шины в хранилище Azure.
Я создал вывод больших двоичных объектов, и теперь я привязал добавление метки времени к имени файла, но это не удается.
ОШИБКА:
System.Private.CoreLib: Exception while executing function: Functions.TopicTriggerDatalakeOutput.
Microsoft.Azure.WebJobs.Host: No value for named parameter 'timestamp'.
РАБОТАЕТ:
public void run(
@ServiceBusTopicTrigger(
name = "message",
topicName = "MyTopic",
subscriptionName = "MyTopicSubscription",
connection = "sbconnstring"
)
String message,
@BlobOutput(
name = "target",
connection = "connstring",
path = "cont/blob.csv")
OutputBinding<String> outputItem,
final ExecutionContext context
)
НЕ РАБОТАЕТ:
public void run(
@ServiceBusTopicTrigger(
name = "message",
topicName = "MyTopic",
subscriptionName = "MyTopicSubscription",
connection = "sbconnstring"
)
String message,
@BlobOutput(
name = "target",
connection = "connstring",
path = "cont/{timestamp}blob.csv")
OutputBinding<String> outputItem,
final ExecutionContext context
)